Python wrapper for the Marvel API.
Project description
esak - Python wrapper for Marvel API
This project is a fork of marvelous with the goal of supporting the full Marvel API.
Installation
pip install --user esak
Example Usage
import esak
# 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 = esak.api(public_key, private_key)
# Get all comics from this week, sorted alphabetically by title
pulls = sorted(m.comics_list({
'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(f'{comic.title} (series #{comic.series.id})')
Documentation
Bugs/Requests
Please use the GitHub issue tracker to submit bugs or request features.
Contributing
- When running a new test for the first time, set the environment variables
PUBLIC_KEYandPRIVATE_KEYto your Marvel API keys. The responses will be cached in thetests/testing_mock.sqlitedatabase without your keys.
Socials
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
esak-2.0.0.tar.gz
(336.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
esak-2.0.0-py3-none-any.whl
(17.0 kB
view details)
File details
Details for the file esak-2.0.0.tar.gz.
File metadata
- Download URL: esak-2.0.0.tar.gz
- Upload date:
- Size: 336.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3caeff8b6b69c9c2ac27990623dad4e868f631ecdcfdbb9b7c34733407cf7256
|
|
| MD5 |
8369a04ca7954ac75166b89fad13a6e6
|
|
| BLAKE2b-256 |
ec438548361d99e50883c96813e5d8a4b954ef54baf236ea28039a1fa13a9b43
|
File details
Details for the file esak-2.0.0-py3-none-any.whl.
File metadata
- Download URL: esak-2.0.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84d838d6c4472f4608169e634a330b3c375e7bbbbe2ffb804363e2608850b1b4
|
|
| MD5 |
b12eda987ae5d88748ea4de22f5b2c30
|
|
| BLAKE2b-256 |
3754da4abf304f5bd0e8efc3c5c6923fa53c750dd05207eecb8ec7445c95958c
|