mangalib-python-sdk
Async Python SDK for mangalib.me: title metadata, table of contents, translations, catalog search, and chapter pages as images.
Like ranobelib-python-sdk, it talks to
the undocumented but open JSON API behind the site (api.cdnlibs.org, shared by the whole
lib.social network) instead of scraping HTML. The shared part (API client, request pacing,
cache, titles, chapters, catalog) comes from libsocial-core, installed with it, so a
process using both SDKs paces its requests to the API together.
Status: early. Titles, chapters, translations, the catalog and page downloads work; export to CBZ/PDF is planned. There is no login, so paid and early-access chapters can't be read: fetching one raises
AuthRequiredError.
Installation
uv add mangalib-python-sdk
or
pip install mangalib-python-sdk
Requires Python 3.11+.
Quickstart
from mangalib import Catalog, MangaLib
async with MangaLib("https://mangalib.me/ru/manga/7965--chainsaw-man") as lib:
info = await lib.get_info()
toc = await lib.get_table_of_contents()
# Chapter 1 has two translations: pick one (see get_translations()).
translations = await lib.get_translations(volume=1, number="1")
chapter = await lib.get_chapter(volume=1, number="1", branch_id=translations[0].branch_id)
for page in chapter.pages:
print(page.number, page.width, page.height)
images = await lib.download_pages(chapter) # list[bytes], in reading order
async with Catalog() as catalog:
page = await catalog.list_titles(query="chainsaw")
get_chapter()/get_chapters()/get_volume()/get_volumes()/download_title()return chapters withpages(Page: position, size, path on an image server).ChapterBranch.is_open(fromget_table_of_contents()/get_translations()) says whether a translation can be read without an account.download_page()/download_pages()fall back from one image server to the next; seelist_image_servers()and the API notes for whycompressis tried first.
Documentation
Full API reference: https://LLIJIYAPNIK.github.io/ranobelib-python-sdk/. What the API
returns for MangaLib, and what was checked: the "MangaLib" section of
docs/api-notes.md. CHANGELOG.md lists what
changed in each release.
License
MIT — see LICENSE.
Metadata
Release files for mangalib-python-sdk 0.1.0
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 | |
|---|---|---|---|---|
| mangalib_python_sdk-0.1.0.tar.gz | 14.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mangalib_python_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.1 kB
Release files / mangalib_python_sdk-0.1.0.tar.gz
| Download URL | mangalib_python_sdk-0.1.0.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b46a833754166bf5c57d7b60eb85495ff315c43fc65e3c50603d6607d90dd16d
|
|
BLAKE2b-256 checksum How to use checksums |
7b6a6e1582e77be81ad14cafdf0fe54a4d10c065835a603a88141e6285d30b17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mangalib_python_sdk-0.1.0-py3-none-any.whl
| Download URL | mangalib_python_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17ef71e6499299ec2c80382a59fc382527d335aa16e59ebebb3725d9d6bb39d2
|
|
BLAKE2b-256 checksum How to use checksums |
c55f74e7e8df3591b1538b2cedc81dd9471e1719ae1239f85dd4b4279e4a1494
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for mangalib-python-sdk 0.1.0
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.