No description
Find a file
2025-04-10 15:53:33 +02:00
ilgen chore: Add line breaks to match VS Code's auto-formatting 2025-04-10 15:53:06 +02:00
.gitignore feat: add instance list generator 2025-03-02 18:04:00 +01:00
LICENSE feat: add instance list generator 2025-03-02 18:04:00 +01:00
pyproject.toml chore: Add line breaks to match VS Code's auto-formatting 2025-04-10 15:53:06 +02:00
README.md feat: Docs and filtering enhancements for instance list 2025-03-02 20:13:24 +01:00
renovate.json Add renovate.json 2025-03-04 16:07:50 +00:00

ILGen - The Instance List Generator

A Python script for "translating" a list of application instances from an instances.json to a Markdown table.

Installation

To install the script, you can clone the repository and run the following command:

pip install .

Usage

First, ensure that you have an instances.json file. The file should have the following structure:

[
    {
        "name": "Instance 1",
        "url": "https://example.com",
        "provider": {
            "name": "Provider 1",
            "url": "https://provider1.com"
        },
        "location": "AT", // This is the ISO 3166-1 alpha-2 country code
        "notes": "This is a note."
    },
    {
        
    }
]

Also ensure that you have a README.md file with the following placeholder:

<!-- START_INSTANCE_LIST -->
<!-- END_INSTANCE_LIST -->

To use the script, you can run the following command:

ilgen

This will insert the data from the instances.json file into the placeholder in the README.md file.

Filters

You can add filters to the placeholder to only include instances that match the filter. For example, you can add the following filter to only include instances from Austria:

<!-- START_INSTANCE_LIST location:eq="AT" -->
<!-- END_INSTANCE_LIST -->

You can also add multiple filters by separating them with a space. These types of filters are combined with an AND operation. For example, you can add the following filter to only include instances from Austria that have a note:

<!-- START_INSTANCE_LIST location:eq="AT" notes:neq="" -->
<!-- END_INSTANCE_LIST -->

The following filters are available:

  • eq: Equal to
  • ne: Not equal to
  • lt: Less than
  • lte: Less than or equal to
  • gt: Greater than
  • gte: Greater than or equal to
  • contains: Contains
  • startswith: Starts with
  • endswith: Ends with

License

This project is licensed under the MIT License - see the LICENSE file for details.