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 tone: Not equal tolt: Less thanlte: Less than or equal togt: Greater thangte: Greater than or equal tocontains: Containsstartswith: Starts withendswith: Ends with
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for ilgen 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ilgen-0.1.1.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ilgen-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / ilgen-0.1.1.tar.gz
| Download URL | ilgen-0.1.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69736a6d6b4d1aa3577794d2f7691f6e1ed5ee5d6e8ae959429ffdd8cbb82a65
|
|
BLAKE2b-256 checksum How to use checksums |
1bc6c76f7cff512e1bbc22798a6db51208f6148f4a9b79227e64f359878717bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / ilgen-0.1.1-py3-none-any.whl
| Download URL | ilgen-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b39eb62f7bd2dd291c459b257e04c96f017c2604aebdbacffc33d35f410e11f
|
|
BLAKE2b-256 checksum How to use checksums |
fc0ab4a99321825f50de8a19709cc4b57724a4c8092a75e13aa1e2fba32dfb65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|