Marvel API wrapper for python.
Project description
To install:
pip install marvelous
Example Usage:
import marvelous
# Your own config file to keep your private key local and secret
from config import public_key, private_key
# Authenticate with Marvel, with keys I got from http://developer.marvel.com/
m = marvelous.api(public_key, private_key)
# Get all comics from this week, sorted alphabetically by title
pulls = sorted(m.comics({
'format': "comic",
'formatType': "comic",
'noVariants': True,
'dateDescriptor': "thisWeek",
'limit': 100}),
key=lambda comic: comic.title)
for comic in pulls:
# Write a line to the file with the name of the issue, and the
# id of the series
print('{} (series #{})'.format(comic.title, comic.series.id))
Output available in full documentation
Contributing
To run the test suite, run python -m nose in this folder
When running a new test for the first time, set the environment variables PUBLIC_KEY and PRIVATE_KEY to any Marel API keys. The result will be stored in the tests/testing_mock.sqlite database without your keys.
To release:
Update version number
Create tag on Github
Wait for Travis to publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
marvelous-1.4.5.tar.gz
(95.0 kB
view hashes)
Built Distribution
marvelous-1.4.5-py3-none-any.whl
(13.1 kB
view hashes)
Close
Hashes for marvelous-1.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e73c0042be3b7298382d3d875b4190a8f90fc3b92f24b27f35a32a6fed2c98ae |
|
MD5 | 28f49c9fc7633c316bd4bcb7d72fa7e2 |
|
BLAKE2b-256 | 6dd775706fd24ce29df85a5188941503dee2b66641d6a607348912a3fc3cd0ff |