Skip to main content

Python wrapper for Metron API

Project description

https://img.shields.io/pypi/v/mokkari.svg?logo=PyPI&label=Version&style=flat-square:alt:PyPI https://img.shields.io/pypi/pyversions/mokkari.svg?logo=Python&label=Python-Versions&style=flat-square https://img.shields.io/github/license/bpepple/mokkari https://img.shields.io/badge/Code%20Style-Black-000000.svg?style=flat-square

Quick Description

A python wrapper for the metron.cloud API.

Installation

PyPi

$ pip3 install --user mokkari

Example Usage

import mokkari

# Your own config file to keep your credentials secret
from config import username, password

m = mokkari.api(username, password)

# Get all Marvel comics for the week of 2021-06-07
this_week = m.issues_list({"store_date_range_after": "2021-06-07", "store_date_range_before": "2021-06-13", "publisher_name": "marvel"})

# Print the results
for i in this_week:
    print(f"{i.id} {i.issue_name}")

# Retrieve the detail for an individual issue
asm_68 = m.issue(31660)

# Print the issue Description
print(asm_68.desc)

Documentation

Bugs/Requests

Please use the GitHub issue tracker to submit bugs or request features.

License

This project is licensed under the GPLv3 License.

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

mokkari-3.1.0.tar.gz (244.3 kB view hashes)

Uploaded Source

Built Distribution

mokkari-3.1.0-py3-none-any.whl (27.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page