aniwrap
An asynchronous wrapper for the MyAnimeList V2 API.
Aniwrap aims to make it easier to interact with MAL API.
Disclaimer
The library is still in Alpha, and the features may change at any time.
Installation
Python version 3.10 or greater is required to use aniwrap.
pip install aniwrap
Features
- Search anime and manga by name
- Fetch anime and manga details by ID
- Fetch seasonal anime
- Fetch anime and manga rankings
- Fetch forum boards and discussions
- Fetch and manipulate user's anime and manga list using user's access token
Usage
- Example of using anime and manga related actions
from aniwrap import Client
client = Client("your MAL client Id")
anime_search_result = await client.anime.search_anime("attack on titan")
manga_search_result = await client.manga.search_manga("attack on titan")
if anime_search_result.is_success:
anime_results = anime_search_result.value
if anime_search_result.is_error:
error = anime_search_result.error
if manga_search_result.is_success:
manga_results = manga_search_result.value
if manga_search_result.is_error:
error = manga_search_result.error
await client.close()
- Example of using user related actions
from aniwrap import UserClient
user_client = UserClient("user's access token")
anime_list_result = await user_client.user.get_anime_list("user's username")
manga_list_result = await user_client.user.get_manga_list("user's username")
if anime_list_result.is_success:
anime_list = anime_list_result.value
if anime_list_result.is_error:
error = anime_list_result.error
if manga_list_result.is_success:
manga_list = manga_list_result.value
if manga_list_result.is_error:
error = manga_list_result.error
await user_client.close()
You can find information on generating Client Id and user's access token used in the above examples on MAL documentation.
Issues
If you're facing any problems with the library, please open an issue here.
Credits
License
aniwrap is licensed under MIT License.
Metadata
Release files for aniwrap 1.0.1
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 |
|---|---|---|---|---|
| aniwrap-1.0.1.tar.gz | 19.8 kB | Without provenance | Details for aniwrap-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aniwrap-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for aniwrap-1.0.1-py3-none-any.whl |
Total release size: 50.5 kB
Release files / aniwrap-1.0.1.tar.gz
| Download URL | aniwrap-1.0.1.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0fd80cd5b9a8ef3af88f93ba40c418924515653a778dc48789b025edaff4c1d
|
|
BLAKE2b-256 checksum How to use checksums |
b23e9162d1e68850f7cc04a9866438a132e23a0f590a6973c7f12c9e2506fb77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.11.0 Linux/5.15.0-1037-azure
|
Release files / aniwrap-1.0.1-py3-none-any.whl
| Download URL | aniwrap-1.0.1-py3-none-any.whl |
|---|---|
| Size | 30.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7a4382eef4982458cf651eb6399829791bbd31d16d36cf5649b3a4af53cd910
|
|
BLAKE2b-256 checksum How to use checksums |
489571f5d5ad4d0512dab24e3abfa7c0aa0712e14ac06569da7a2dd80a4d0a95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.11.0 Linux/5.15.0-1037-azure
|
Security for aniwrap 1.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.