Metadata-Version: 2.1
Name: scryfall-cache
Version: 0.2.1
Summary: Scryfall Cache is a library which minimizes the number of requests made to the Scryfall API.
Home-page: https://github.com/cmeister2/scryfall_cache
Author: Max Dymond
Author-email: cmeister2@gmail.com
License: MIT license
Keywords: scryfall_cache
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: requests-ratelimit-adapter
Requires-Dist: appdirs
Requires-Dist: pony

# scryfall-cache


[![pypi version](https://img.shields.io/pypi/v/scryfall_cache.svg)](https://pypi.python.org/pypi/scryfall_cache)
[![Travis Status](https://img.shields.io/travis/cmeister2/scryfall_cache.svg)](https://travis-ci.org/cmeister2/scryfall_cache)
[![Documentation Status](https://readthedocs.org/projects/scryfall-cache/badge/?version=latest)](https://scryfall-cache.readthedocs.io/en/latest/?badge=latest)


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](https://github.com/audreyr/cookiecutter) and the [cmeister2/cookiecutter-pypackage](https://github.com/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](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added

## [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.

[Unreleased]: https://github.com/cmeister2/scryfall_cache/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/cmeister2/scryfall_cache/compare/v0.1.1...v0.2.0
[0.1.1]: https://github.com/cmeister2/scryfall_cache/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/cmeister2/scryfall_cache/tree/v0.1.0


