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
Metadata
Release files for esak 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| esak-2.0.0.tar.gz | 336.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| esak-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 353.5 kB
Release files / esak-2.0.0.tar.gz
| Download URL | esak-2.0.0.tar.gz |
|---|---|
| Size | 336.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3caeff8b6b69c9c2ac27990623dad4e868f631ecdcfdbb9b7c34733407cf7256
|
|
BLAKE2b-256 checksum How to use checksums |
ec438548361d99e50883c96813e5d8a4b954ef54baf236ea28039a1fa13a9b43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure
|
Release files / esak-2.0.0-py3-none-any.whl
| Download URL | esak-2.0.0-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84d838d6c4472f4608169e634a330b3c375e7bbbbe2ffb804363e2608850b1b4
|
|
BLAKE2b-256 checksum How to use checksums |
3754da4abf304f5bd0e8efc3c5c6923fa53c750dd05207eecb8ec7445c95958c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure
|