Skip to main content

"A website about MtG Duel Strategy",

Project description

Barrin's Codex

A website about MtG Duel Commander Strategy

Special Thanks

I started working with lionel-panhaleux on a project during first lockdown (around April 2020). We worked on his Codex of the Damned (repo) to support internationalisation. The whole structure of this project is derived from his Codex, hence the name as a small tribute.

Contributing

Contributions are welcome.

  • Pull Requests will be merged if they respect the general style.
  • Issues will be dealt with as quickly as possible.

This site uses Flask and Babel to generate pages dynamically and handle internationalisation.

Instructions to contributors

Here are various general guidelines this website is enforcing:

  • Do not talk about yourself
  • Do not talk to the reader
  • Do not engage the reader in the talk
  • Use spaces between the call and the variable for better clarity {{ some_variable }}
  • Use mana symbols, they are emojis in the context (currently {{ W }}, {{ U }}, {{ B }}, {{ R }}, {{ G }})
  • Use card names variables, they are in the context (example {{ jace_the_mind_sculptor }} for Jace, the Mind Sculptor)
  • If a card name doesn't compile, you are free to declare the name, it is mandatory for Adventure card and some other

Installation

To install a working developpment version of the site, use pip:

python3 -m venv venv
pip install -e ".[dev]"

The first time the project is started, the page will take some time to compile a list of cards and their scryfallId to gain access to the card image. This script is also used to build a JSON version of a decklist.

Run the Codex

You can run the development version of the site using the codex entrypoint:

$ codex
* Serving Flask app "barrins_codex" (lazy loading)
* Environment: production
  WARNING: This is a development server. Do not use it in a production deployment.
  Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

You can set the DEBUG environment variable to activate the debug mode:

DEBUG=1 codex

Utils

There are some utils provided in the codex:

  • decklist to JSON
cd ./barrins_codex
python ./build_deck.py PATH_TO_FILE

Versioning

The version number take the form X.Y.Z where X, Y, and Z are non-negative integers, and do not contain leading zeroes. X is the major version, Y is the minor version, and Z is the patch version. Each element MUST increase numerically. For instance: 1.9.0 -> 1.10.0 -> 1.11.0.

Given a version number MAJOR.MINOR.PATCH, I increment the:

  1. MAJOR version when I add a section or make a backend evolution,
  2. MINOR version when I add a page or make a frontend evolution, and
  3. PATCH version when I make bug and typo fixes.

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

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

barrins_codex-3.2.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barrins_codex-3.2.0-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file barrins_codex-3.2.0.tar.gz.

File metadata

  • Download URL: barrins_codex-3.2.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for barrins_codex-3.2.0.tar.gz
Algorithm Hash digest
SHA256 6c3675ae771e3c51add1ae03af6f04bb35f6e0aad1921ac139dedcd461b4d319
MD5 cb4e02aa208d64cb499c5a7113832696
BLAKE2b-256 9cdc0df83793abac11e15a66e82c1e97f144bfd55b7bedf09a07415b38c52990

See more details on using hashes here.

File details

Details for the file barrins_codex-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: barrins_codex-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for barrins_codex-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 294779957013bcbc2dc759a687b0f7aed1069fe7c7aae0436b46bbf24ed43f76
MD5 2179cc9619d34040a6d15a4c96aab9c4
BLAKE2b-256 86b4de5eb817280c15beecc2a53ba48a657db337c96da32f9d70aed4b0943ace

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page