CLI, new way to help keep an up-to-date MTGDC banlist
Project description
DUEL COMMANDER BANLIST
A new service to help developpers to keep an up-to-date MTGDC data.
THE SOLUTION TO KEEP THE PROJECT UPDATED
- Each banlist is stored as
JSON
file of condensed data from official source (in./banlists
folder) - Static files generated by running a script (
python mtgdc_banlist
) which uses banlists files to create the main part of the document, and adds html header/footer from static files (static/banlist_html_header.html
andstatic/banlist_html_footer.html
)
BANLIST FILE FORMAT
File name must be %Y-%m-%d.json
format with the following template:
[
{
"date": "2015-01-31",
"special": "",
"newly_banned_as_commander": [],
"newly_unbanned_as_commander": [],
"newly_banned_in_deck": [],
"newly_unbanned_in_deck": [],
"explanations": {}
}
]
HOW TO ADD NEW BANLIST
- Put banlist file
%Y-%m-%d.json
file into./banlists
- Re-run python
python mtgdc_banlist
with options--compile-html
,--compile-json
or--compile-both
Works similar to edit/delete a banlist.
REQUIREMENTS
- Python (v3.10+)
INSTALLATION
git clone https://github.com/barrins-codex/mtgdc-banlist.git
cd mtgdc-banlist
python -m venv venv
source venv/bin/activate
python -m pip install -r requirements.txt
python mtgdc_banlist --compile-both
EXAMPLE
Hosted examples of generated static html from the repo:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mtgdc_banlist-1.0.tar.gz
(80.8 kB
view hashes)
Built Distribution
Close
Hashes for mtgdc_banlist-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f3592ebf6e0da41c1f369a8358b10911e41258dd4c9b86c20ee7cb0fab18a26 |
|
MD5 | b79a78166fe78a48bf7197e149547037 |
|
BLAKE2b-256 | 07b6d0b1d866a100208f4a8a78c80b4c6b76e9af2e5a62b46c5442c35a4f4942 |