Skip to main content

A flexible data layer for applications working with Magic: the Gathering cards and decks.

Project description

scooze

CI pypi versions license Pydantic v2

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.


Scavenging Ooze

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

scooze-2.0.4.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

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

scooze-2.0.4-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

File details

Details for the file scooze-2.0.4.tar.gz.

File metadata

  • Download URL: scooze-2.0.4.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.11.3 Linux/6.17.0-1010-azure

File hashes

Hashes for scooze-2.0.4.tar.gz
Algorithm Hash digest
SHA256 32bc67bfe74261bfcba6b7a1568be0bee49372ac696c039126e6ec9fe7b5b583
MD5 20ba48fcd22a223d8b5795b83bd33533
BLAKE2b-256 118b69f406e3e02202d6bcbf82adb982728f773805f18375c11152be4c4d3ae0

See more details on using hashes here.

File details

Details for the file scooze-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: scooze-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 60.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.11.3 Linux/6.17.0-1010-azure

File hashes

Hashes for scooze-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ed25b140de7e1124b3809b9e9495e55fe4a59d26f2f7b2409ac4ea4531b741fe
MD5 651f6019fc3fcbbf34fc4e614b5ed000
BLAKE2b-256 6101fa95b62a73c9ff7a88da4aa013d5f3568ff2e4fa28cccde2fbb25a4a79b6

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