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
JSONfile of condensed data from official source (inmtgdc_banlist/banlistsfolder) - 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.htmlandstatic/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.jsonfile into./banlists - Re-run python
python mtgdc_banlistwith options--compile-html,--compile-jsonor--compile-both
Works similar to edit/delete a banlist.
REQUIREMENTS
- Python (v3.10+)
INSTALLATION
python3 -m venv venv
source venv/bin/activate
pip install mtgdc_banlist
python mtgdc_banlist --compile-both
EXAMPLE
Hosted examples of generated static html from the repo:
Release files for mtgdc-banlist 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mtgdc_banlist-1.2.tar.gz | 84.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mtgdc_banlist-1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 150.5 kB
Release files / mtgdc_banlist-1.2.tar.gz
| Download URL | mtgdc_banlist-1.2.tar.gz |
|---|---|
| Size | 84.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abbfd5f62368e93952a97d017d1ec75a8ca702b25e545429fb7b982b60dfc63d
|
|
BLAKE2b-256 checksum How to use checksums |
90d899ce3c93654205e6fee3437592993315b2c0229539f6a774eefcc53781ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.0
|
Release files / mtgdc_banlist-1.2-py3-none-any.whl
| Download URL | mtgdc_banlist-1.2-py3-none-any.whl |
|---|---|
| Size | 66.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2797d202e1ae764953793db00ece649b7f0a3abde8f2580ae00e84ddd81b8f6
|
|
BLAKE2b-256 checksum How to use checksums |
d0797153a7e68320d222d9a0708ecafceb34c33de9008b2013d101280cf0c57a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.0
|