Skip to main content

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

Metadata

Release files for scooze 2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scooze 2.0.4
File Size Uploaded
scooze-2.0.4.tar.gz 45.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scooze 2.0.4
File Interpreter ABI Platform
scooze-2.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 106.2 kB

Release files / scooze-2.0.4.tar.gz

Download URL scooze-2.0.4.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
32bc67bfe74261bfcba6b7a1568be0bee49372ac696c039126e6ec9fe7b5b583
BLAKE2b-256 checksum
How to use checksums
118b69f406e3e02202d6bcbf82adb982728f773805f18375c11152be4c4d3ae0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.11.3 Linux/6.17.0-1010-azure

Release files / scooze-2.0.4-py3-none-any.whl

Download URL scooze-2.0.4-py3-none-any.whl
Size 60.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed25b140de7e1124b3809b9e9495e55fe4a59d26f2f7b2409ac4ea4531b741fe
BLAKE2b-256 checksum
How to use checksums
6101fa95b62a73c9ff7a88da4aa013d5f3568ff2e4fa28cccde2fbb25a4a79b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.11.3 Linux/6.17.0-1010-azure

Release history Release notifications | RSS feed

This release

2.0.4 This release

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page