marvelous - Marvel API wrapper for python 3
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
Metadata
Release files for marvelous 1.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| marvelous-1.4.5.tar.gz | 95.0 kB | Without provenance | Details for marvelous-1.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marvelous-1.4.5-py3-none-any.whl | Python 3 | none | any | Details for marvelous-1.4.5-py3-none-any.whl |
Total release size: 108.1 kB
Release files / marvelous-1.4.5.tar.gz
| Download URL | marvelous-1.4.5.tar.gz |
|---|---|
| Size | 95.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
825d01b3a2d08f61e65d84fa6f230e521f7cf0c4d0ac03c3aa3030e603870fe8
|
|
BLAKE2b-256 checksum How to use checksums |
32953b967afcc444e5792db0b0733655144c35dad4a9d3c489425886708ac32e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1021-azure
|
Release files / marvelous-1.4.5-py3-none-any.whl
| Download URL | marvelous-1.4.5-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e73c0042be3b7298382d3d875b4190a8f90fc3b92f24b27f35a32a6fed2c98ae
|
|
BLAKE2b-256 checksum How to use checksums |
6dd775706fd24ce29df85a5188941503dee2b66641d6a607348912a3fc3cd0ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1021-azure
|
Security for marvelous 1.4.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.