EasyMSE is a Python package for creating Magic: The Gathering cards from code or the command line. It interfaces with an installation of Magic Set Editor 2 and its built in CLI to make generating custom cards easier.
Installation
With Python and PIP installed, open a terminal and enter pip install ezmse
You must have Magic Set Editor 2 installed. Your working directory must contain the .exe and .com versions of MSE as well as its data and resource folder. You must also have the Magic - M15 fonts installed on your computer in order for the cards to render properly.
Usage
Generating a Card
from ezmse import Card
myCard = Card()
myCard.name = "Cheese, The Destroyer"
myCard.color = "red,black"
myCard.castingCost = "2RB"
myCard.type = "Legendary Creature - Cat"
myCard.rarity = "Rare"
myCard.superType = "Legendary"
myCard.power = 5
myCard.toughness = 6
myCard.illustrator = "Kev Walker"
myCard.setCode = "XXX-XX"
myCard.text = r"Indestructible\n<sym>T</sym>: Draw one BILLION cards"
myCard.image = "cheese.jpg"
myCard.export("cheese-the-destroyer.png")
Developing EasyMSE
Clone the repository, navigate to the root folder, and enter pip install -e .[dev]
Features that need added:
- A more genericized Card class that can generate other types of cards (Planeswalker, Saga, etc.)
- Flavor text
- More unit tests! (I'm fairly new to them)
- A way to make pyfakefs a development-only dependency (only including it in the dev section of setup.py makes the unit tests error out upon deployment)
Metadata
Release files for ezmse 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ezmse-0.1.2.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ezmse-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / ezmse-0.1.2.tar.gz
| Download URL | ezmse-0.1.2.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95b07ed3e9e8d178abaaf461c2c5c037912db99015b6a61ae56c17b0c4ff05dc
|
|
BLAKE2b-256 checksum How to use checksums |
e049c07abe63f0713a9748ca35dbc597d22cee31b9241e4d41178efddf8c3382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / ezmse-0.1.2-py3-none-any.whl
| Download URL | ezmse-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1abfe07e8f4c471a8cdfb449929d2cb4819e3ac4bc50b2ffa306952d3b5aa767
|
|
BLAKE2b-256 checksum How to use checksums |
4651f75043684085b2c02702b0af39a1e0be2588106e2c55b4efae7532b5eec7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|