scryfall-cache
Scryfall Cache is a library which minimizes the number of requests made to the Scryfall API.
- Free software: MIT license
- Documentation: https://scryfall-cache.readthedocs.io.
Example
>>> from scryfall_cache import ScryfallCache, ScryfallCacheException
>>> import os
>>> cache = ScryfallCache(application="scryfall_tests")
>>> card = cache.get_card(mtgo_id=12345)
>>> str(card)
'ScryfallCard[Phyrexian Processor @ 6875ce99-badd-44da-8e5d-509600efa1d0]'
>>> # Download the card image as a PNG.
>>> image_path = card.get_image_path("png")
>>> os.path.basename(image_path)
'6875ce99-badd-44da-8e5d-509600efa1d0.png'
>>> card_two = cache.get_card(name="Black Lotus")
>>> str(card_two)
'ScryfallCard[Black Lotus @ bd8fa327-dd41-4737-8f19-2cf5eb1f7cdd]'
Credits
This package was created with Cookiecutter and the cmeister2/cookiecutter-pypackage project template.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
Added
0.2.2 - 2019-05-28
Changed
- Create a new database object when accessing a database.
0.2.1 - 2019-01-13
Changed
- Fix foil MTGO lookup.
0.2.0 - 2019-01-13
Added
- Added the ability to download images to the cache.
- Added the ability to query by name.
0.1.1 - 2019-01-09
Changed
- Fixed docs and added an example.
0.1.0 - 2019-01-09
Added
- Initial commit.
Metadata
Release files for scryfall-cache 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| scryfall_cache-0.2.2.tar.gz | 14.4 kB | Without provenance | Details for scryfall_cache-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scryfall_cache-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for scryfall_cache-0.2.2-py2.py3-none-any.whl |
Total release size: 23.3 kB
Release files / scryfall_cache-0.2.2.tar.gz
| Download URL | scryfall_cache-0.2.2.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf651a9a1518b92e6bc7a37e138d87e7475c4e0e6ce9ef6febfa29862b3fd7f5
|
|
BLAKE2b-256 checksum How to use checksums |
5818bac99803a4c4d378e12ffc2da3bab74b3e7ff0acd8e73e98e3682999e4b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3
|
Release files / scryfall_cache-0.2.2-py2.py3-none-any.whl
| Download URL | scryfall_cache-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
697b91885f7cef18eb9e9542b4680c1e25f4415b2f7761ee177252c0a3933e68
|
|
BLAKE2b-256 checksum How to use checksums |
4170f104adaa898365fd2e4f2c8dae408885a563babb65fad22c55397a72a77e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3
|
Security for scryfall-cache 0.2.2
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.