from marvel.client import MarvelClient
client = MarvelClient("http://gateway.marvel.com", "<api_key>", "<api_secrel>")
resp = client.get_comic(16246)
resp.json()
{'code': 200,
'status': 'Ok',
'copyright': '© 2018 MARVEL',
'attributionText': 'Data provided by Marvel. © 2018 MARVEL',
'attributionHTML': '<a href="http://marvel.com">Data provided by Marvel. © 2018 MARVEL</a>',
'etag': '0ee715261c97423ba6caa142956a1194d5ad3d66',
'data': {'offset': 0,
'limit': 20,
'total': 1,
'count': 1,
'results': [{'id': 16246,
'digitalId': 0,
'title': 'Cap Transport (2005) #7',
'issueNumber': 7,
'variantDescription': '',
'description': None,
'modified': '-0001-11-30T00:00:00-0500',
'isbn': '',
'upc': '',
'diamondCode': '',
'ean': '',
'issn': '',
'format': 'Comic',
'pageCount': 0,
'textObjects': [],
'resourceURI': 'http://gateway.marvel.com/v1/public/comics/16246',
'urls': [{'type': 'detail',
'url': 'http://marvel.com/comics/issue/16246/cap_transport_2005_7?utm_campaign=apiRef&utm_source=a1b984315df89963191b79f350c37f60'}],
'series': {'resourceURI': 'http://gateway.marvel.com/v1/public/series/2722',
'name': 'Cap Transport (2005 - 2006)'},
'variants': [],
'collections': [],
'collectedIssues': [],
'dates': [{'type': 'onsaleDate', 'date': '2029-12-31T00:00:00-0500'},
{'type': 'focDate', 'date': '-0001-11-30T00:00:00-0500'}],
'prices': [{'type': 'printPrice', 'price': 0}],
'thumbnail': {'path': 'http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available',
'extension': 'jpg'},
'images': [],
'creators': {'available': 9,
'collectionURI': 'http://gateway.marvel.com/v1/public/comics/16246/creators',
'items': [{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/2133',
'name': 'Tom Brevoort',
'role': 'editor'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/5248',
'name': 'Molly Lazer',
'role': 'editor'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/4371',
'name': 'Andy Schmidt',
'role': 'editor'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/367',
'name': 'Ed Brubaker',
'role': 'writer'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/7129',
'name': 'Virtual Calligraphy',
'role': 'letterer'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/8635',
'name': 'Vc Randy Gentile',
'role': 'letterer'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/8504',
'name': "Frank D'ARMATA",
'role': 'colorist'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/374',
'name': 'Steve Epting',
'role': 'penciler'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/creators/127',
'name': 'John Paul Leon',
'role': 'penciler'}],
'returned': 9},
'characters': {'available': 4,
'collectionURI': 'http://gateway.marvel.com/v1/public/comics/16246/characters',
'items': [{'resourceURI': 'http://gateway.marvel.com/v1/public/characters/1009220',
'name': 'Captain America'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/characters/1009475',
'name': 'Nomad'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/characters/1009565',
'name': 'Scourge'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/characters/1010791',
'name': 'Sub-Mariner'}],
'returned': 4},
'stories': {'available': 3,
'collectionURI': 'http://gateway.marvel.com/v1/public/comics/16246/stories',
'items': [{'resourceURI': 'http://gateway.marvel.com/v1/public/stories/34018',
'name': 'Cover #34018',
'type': 'cover'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/stories/34019',
'name': 'The Lonesome Death of Jack Monroe',
'type': 'interiorStory'},
{'resourceURI': 'http://gateway.marvel.com/v1/public/stories/34020',
'name': 'Freedom of Speech',
'type': 'letters'}],
'returned': 3},
'events': {'available': 0,
'collectionURI': 'http://gateway.marvel.com/v1/public/comics/16246/events',
'items': [],
'returned': 0}}]}}
Metadata
Release files for marvelapi 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marvelapi-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for marvelapi-0.0.1-py3-none-any.whl |
Release files / marvelapi-0.0.1-py3-none-any.whl
| Download URL | marvelapi-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0a85fcaefc545b71e71e63af6f9b9729531d7a336ed653e493b967fcfdf62a3
|
|
BLAKE2b-256 checksum How to use checksums |
851e7549a18bb003a35ffc860db652603719e5a3f783b160cb391718f102bb64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for marvelapi 0.0.1
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.