Skip to content

dmls/mtgapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTG API

Description

MTG API is an API for Magic the Gathering card data built with Python. It provides access to a collection of Magic the Gathering cards through a RESTful interface.

Setup

To set up MTG API, follow these steps:

  1. Python 3: Make sure you have Python 3 installed on your system. You can download it from here.

  2. mtgsdk Python Package: Install the mtgsdk Python package using pip:

    pip install mtgsdk
  3. MongoDB: Make sure you have MongoDB installed on your system. You can download it from here.

  4. MongoDB Collection: Create a MongoDB database and a collection called cards where the card data will be stored.

Getting Started

To get started with MTG API, follow these steps:

  1. Import Card Data: Import card data from the official API to the database by running src/importer.py. Make sure to update the database connection details in the importer script before running it.
python src/importer.py

Testing

Tests are automatically run on Github when a PR is created or updated.

To run them manually:

pipenv run pytest

About

API for Magic the Gathering card data built with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages