Giter VIP home page Giter VIP logo

mtgjson4's Introduction

MTGJSON

MTGJSON is an open sourced database creation and distribution tool for Magic: The Gathering cards, specifically in JSON format.

This repo contains our newest release, version 4. This version relies upon a variety of sources, such as Scryfall and Gatherer for our data.

To provide feedback and/or bug reports, please open a ticket as it is the best way for us to communicate with the public.

If you would like to join or assist the development of the project, you can join us on Discord to discuss things further.

How To Use

Note: These are the build directions to compile your own JSON files. If you are looking for pre-compiled JSON files, you can download them at MTGJSON.com.

This system was built using Python 3.7, so we can only guarantee proper functionality with this version.

1: To start, you'll need to install the MTGJSON4 package and dependencies. You can do this via:

$ pip3 install -r requirements.txt

2: Select the flags you'd like to run the program with:

Flags Descriptions
-h This prints out the help menu and exits.
-a, --all-sets This tells the program to build all sets. This supersedes the -s flag.
-s SET1 SET2 ... This tells the program to build all set codes passed, provided they exist.
-c, --compiled-outputs This tells the program to compile AllCards and AllSets, following any additional sets being built. This flag needs to be accompanied by either -a, -s, or --skip-rebuild.
--skip-rebuild This tells the program to build no sets, superseding -a and -s, and just use what is cached already. This is the equivalent of passing an empty -s flag. This is only useful with the -c flag.
--skip-cached This flag, in conjunction with -a or -s, tells the program to skips sets that have already been built, and build the remaining sets.

3: Run the program, with any flags you'd like, via:

usage: mtgjson4 [-h] [-s [SET [SET ...]]] [-a] [-c] [--skip-rebuild] [--skip-cached]
$ python3 -m mtgjson4 

mtgjson4's People

Contributors

aridtag avatar daenyth avatar fenhl avatar silasary avatar taw avatar tooomm avatar zeldazach avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.