esak-1.3.2
توضیحات
Python wrapper for the Marvel API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | esak-1.3.2 |
| نام | esak |
| نسخه کتابخانه | 1.3.2 |
| نگهدارنده | ['Brian Pepple'] |
| ایمیل نگهدارنده | ['bdpepple@gmail.com'] |
| نویسنده | Brian Pepple |
| ایمیل نویسنده | bdpepple@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/esak/ |
| مجوز | MIT |
esak - Python wrapper for Marvel API
===========================================
.. image:: https://img.shields.io/pypi/v/esak.svg?logo=PyPI&label=Version&style=flat-square :alt: PyPI
:target: https://pypi.org/project/esak
.. image:: https://img.shields.io/pypi/pyversions/esak.svg?logo=Python&label=Python-Versions&style=flat-square
:target: https://pypi.org/project/esak
.. image:: https://img.shields.io/github/license/bpepple/esak
:target: https://opensource.org/licenses/GPL-3.0
.. image:: https://codecov.io/gh/Metron-Project/esak/branch/master/graph/badge.svg?token=L1EGNX24I2
:target: https://codecov.io/gh/Metron-Project/esak
.. image:: https://img.shields.io/badge/Code%20Style-Black-000000.svg?style=flat-square
:target: https://github.com/psf/black
- `Code on Github <https://github.com/Metron-Project/esak>`_
- `Published on PyPi <https://pypi.python.org/pypi/esak>`_
- `Marvel API documentation <https://developer.marvel.com/docs>`_
This project is a fork of `marvelous <https://github.com/rkuykendall/marvelous>`_ with the goal of supporting the full Marvel API.
**To install:**
.. code-block:: bash
$ pip3 install --user esak
**Example Usage:**
.. code-block:: python
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
-------------
- `Read the project documentation <https://esak.readthedocs.io/en/stable/>`_
Bugs/Requests
-------------
Please use the `GitHub issue tracker <https://github.com/Metron-Project/esak/issues>`_ 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 any Marel API keys. The result will be
stored in the `tests/testing_mock.sqlite` database without your keys.
نیازمندی
| مقدار | نام |
|---|---|
| >=3.13.0,<4.0.0 | marshmallow |
| >=2.26.0,<3.0.0 | requests |
| >=0.5.2,<0.6.0) | sphinx-rtd-theme |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl esak-1.3.2:
pip install esak-1.3.2.whl
نصب پکیج tar.gz esak-1.3.2:
pip install esak-1.3.2.tar.gz