Generate MtG proxy sheets from mythicspoiler.com & other sites
hudsucker takes a text file specifying a list of MtG cards and generates a set of 3x3 PDF sheets.
Unless otherwise specified, the source images are pulled from mythicspoiler.com.
$ hudsucker cards.txt ./cards01.pdf
cards.txt
# Example input file, comments and blank lines are supported # Cards names are listed one per line, misspellings are okay Pia Nalaar # Inline comments are also supported Saheeli's Artistry # Spaces, capitals, and punctuation are fine # For multiples of the same card, list them multiple times Strip Mine Strip Mine # The page for the card can be specified http://mythicspoiler.com/kld/cards/wispweaverangel.html # Or the image file can be listed explicitly http://mythicspoiler.com/kld/cards/trinketmastercraft.jpg http://www.mythicspoiler.com/kld/cards/gontilordofluxury.jpg # Sites other than mythicspoiler.com can be specified # A best attempt will be made to determine the card image http://magiccards.info/vma/en/4.html # Black Lotus # Image files from any site can also be listed explicitly http://magiccards.info/scans/en/vma/1.jpg # Ancestral Recall
cards01.pdf
Installation
pip install hudsucker
If it fails with the following error message:
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
Try installing libjpeg (or equivalent for your OS):
# on OS X with homebrew brew install libjpeg
Help
usage: hudsucker [-h] [-v] [-b N] [-o DIR] [-p N] [-q N] [-s URL] [-c DIR]
[-n] [-r]
FILE [FILE ...]
Hudsucker Proxy Generator - generate MtG proxy sheets
positional arguments:
FILE each line of FILE should be a MtG card name, or a url
optional arguments:
-h, --help show this help message and exit
-v, --verbose print verbose details
proxy sheet options:
-b N, --border N border width in inches, defaults to 0.072
-o DIR, --output DIR output dir, defaults to current dir
-p N, --resolution N print resolution of output PDF, defaults to 600
-q N, --quality N quality to use for JPEG encoding, defaults to 95
-s URL, --site URL site to search for card images, defaults to
mythicspoiler.com
caching options:
NOTE: Careful turning off cache, search engines may ban your IP
-c DIR, --cache DIR cache dir, defaults to hudsucker_cache
-n, --no-cache don't cache any downloaded files
-r, --refresh force refresh of any cached downloads
Contributing
Report bugs or make pull requests on GitHub.
Metadata
Release files for hudsucker 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hudsucker-0.2.1.tar.gz | 10.0 kB | Without provenance | Details for hudsucker-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hudsucker-0.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for hudsucker-0.2.1-py2.py3-none-any.whl |
Total release size: 22.6 kB
Release files / hudsucker-0.2.1.tar.gz
| Download URL | hudsucker-0.2.1.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11483585c287ce5f26261ba2b807b54ebdc97fb9b6af0db994e92f5833dfc2f4
|
|
BLAKE2b-256 checksum How to use checksums |
b658df19c14715d2a439e46467e84c58582fff45d675c6f18a1ad07b845fd0f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / hudsucker-0.2.1-py2.py3-none-any.whl
| Download URL | hudsucker-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0522e33deafb7357c51f4fd5e5a74fdd1a31cefc32137bc47ff9f84779888cf8
|
|
BLAKE2b-256 checksum How to use checksums |
9c96a2f9b8dac39b1eaca5d41d07594d6410ccb346b3e4346f70dd623b53203a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hudsucker 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.