An API wrapper for the MangaDexAPIv5.
Project description
MangaDex.py
An easy to use, MangaDex API Wrapper using Requests - aiming to be simple and efficient.
Installation
pip install --upgrade MangaDex.py
Quick start
Example
Logging in and getting the latest chapter from a manga:
# Import the MangaDexPy library
import MangaDexPy
cli = MangaDexPy.MangaDex()
cli.login("username", "password")
# Get manga with id b9797c5b-642e-44d9-ac40-8b31b9ae110a.
manga = cli.get_manga("b9797c5b-642e-44d9-ac40-8b31b9ae110a")
print(manga.title + "'s latest volume:")
print(manga.last_volume)
print(manga.title + "'s latest chapter:")
print(manga.last_chapter)
Here's the terminal output:
You can find more examples on this page
Explanation
cli = MangaDexPy.MangaDex()
returns the client object used to make calls.
cli.login(u ,p)
logs in to MangaDex using credentials stored in variables.
manga = cli.get_manga("b9797c5b-642e-44d9-ac40-8b31b9ae110a", full=True)
returns a Manga
object, which contains the last_volume
and last_chapter
properties.
Documentation
The full API documentation is available in this repository's wiki.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MangaDex.py-2.0.6.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for MangaDex.py-2.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb81425c7928fcadfe73d3a79bdc85fc7c08a726a99cae304786479cc1477df |
|
MD5 | 61a941b149d7892fcd0cff1284a41019 |
|
BLAKE2b-256 | 3619b3bd53f35e43d24b57afc39accd493dc943d8e23058c3d795bb9cf6547cb |