Skip to main content

esak - Python wrapper for Marvel API

PyPI - Python PyPI - Version PyPI - License

pre-commit Ruff

Github - Contributors Github Action - Testing Codecov

Read the Docs

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_KEY and PRIVATE_KEY to your Marvel API keys. The responses will be cached in the tests/testing_mock.sqlite database without your keys.

Socials

Social - Matrix Social - Matrix

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)

Source distribution for esak 2.0.0
File Size Uploaded
esak-2.0.0.tar.gz 336.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for esak 2.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page