A flexible data layer for applications working with Magic: the Gathering cards and decks.
Project description
scooze
A flexible data layer for applications working with Magic: the Gathering cards and decks.
Features
📊 Robust data models for representing Magic: the Gathering cards and decks
- Cards - follows the Scryfall standard
- Decks - main deck/sideboard/command zone, format legality, average words, and more
🎛️ CLI to manage a local database of Scryfall data
🐍 Python and REST APIs for interacting with the scooze database
Help
The source code can be found here.
See our documentation for more information.
Installation
Install using pip install scooze
. For more installation options, see the Install section in the documentation.
A Simple Example
from scooze import Card, Deck, Format, InThe
deck = Deck()
card1 = Card("Python")
card2 = Card("Anaconda")
swamp = Card("Swamp")
deck.add_card(card1, 25)
deck.add_card(swamp, 15)
deck.add_card(card2, 100, InThe.SIDE)
legal_limited = deck.is_legal(Format.LIMITED) # True
legal_pauper = deck.is_legal(Format.PAUPER) # False
export = deck.export()
"""
Deck:
25 Python
15 Swamp
Sideboard:
100 Anaconda
"""
See Setup and our API Documentation for more details.
Contributing
For guidance on setting up a development environment and how to make a contribution to scooze, see Contributing to scooze.
Report a Bug
If you find a bug 🐛 please open a bug report. If you have an idea for an improvement or new feature 🚀 please open a feature request.
If you find a security vulnerability, please follow the instructions here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scooze-2.0.0.tar.gz
.
File metadata
- Download URL: scooze-2.0.0.tar.gz
- Upload date:
- Size: 46.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.3 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79be66cf8aaf4bdbcd0a842118593d59bc06b3b125ec4bbbdedc1584d3a1f46e |
|
MD5 | 8ffa1d6373e5b3b1a80eeede938060a9 |
|
BLAKE2b-256 | 8a8abbb0efdec33cf99fb4662a8d07c3d212f42d54d31f69fc636e6823d3f79f |
File details
Details for the file scooze-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: scooze-2.0.0-py3-none-any.whl
- Upload date:
- Size: 60.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.3 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552400702e8a16916c46ea72fc4e6837d0e203fd17afe687fc5c62d3f664dbc8 |
|
MD5 | 70fcdbb48fb27fbb49661b8eb49a890e |
|
BLAKE2b-256 | 9c2778cb51b0596aec2183faaaee5eca4b4737a6fd7da51d2e250bdbb856a315 |