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.3.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.3-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scooze-2.0.3.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.3 Linux/6.11.0-1018-azure

File hashes

Hashes for scooze-2.0.3.tar.gz
Algorithm Hash digest
SHA256 bc01d7e4ac6050246a4fbd941c72ea338f6b8a6e94dea79ae53d820f4eabc2d2
MD5 b06a0639d32c53af72c5f990a5029b6e
BLAKE2b-256 bef9b6cedf6ab4339428134230aed00ca1f4beb9c42e5abfc70a15b97a33e6e2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for scooze-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 891ee187fcb7611f0b55b7b61864f00ff8e064114c1f47bb9d5144b3173029cc
MD5 3b40b149bcd3fbaf4c98ffad608fdbe6
BLAKE2b-256 ab4c59e257d6301ffdcefbc843d3a7457c38d15aac6978f0b5b189d0393ad6f4

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