lanraragi-api
A Python library for LANraragi API.
Many thanks to the author of this wonderful manga server.
Quick start
Install this package:
pip install lanraragi_api
Get metadata of a random archive:
See demo.py
from lanraragi_api import LANraragiAPI
from lanraragi_api.base.archive import ArchiveMetadata
apikey = "your-key"
server = "http://127.0.0.1:3000"
api = LANraragiAPI(server, key=apikey)
archives: list[ArchiveMetadata] = api.search.get_random_archives()
print(archives[0])
How to use?
All the APIs in the lanraragi_api.base package are
from the official LANraragi document, which you will be using in most times.
Functions in the lanraragi_api.enhanced package are built on the base APIs, offering useful functionalities.
server_side.pycontains server-side functions. The code is the same to that of LANraragi, only translated from Perl to Python.script.pycontains functions for operation and management.
Release versions
Every release of lanraragi-api is made only for the corresponding release of LANraragi. So you should choose the correct lanraragi-api version based on the server version.
| LANraragi | lanraragi-api |
|---|---|
v.0.9.0 |
0.9.0.0, 0.9.0.1, ... , 0.9.0.x |
v.0.9.40 |
0.9.40.0, 0.9.40.1, ... , 0.9.40.y |
In order to make it simple, the first three version numbers are always the same, while the last version number of lanraragi-api serves as patches (just choose the latest one).
Development
Package and project manager: uv
Python version: 3.10
Use GNU Make to handle the development process. See Makefile for details.
Release files for lanraragi_api 0.9.81.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 | |
|---|---|---|---|
| lanraragi_api-0.9.81.1.tar.gz | 18.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lanraragi_api-0.9.81.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.8 kB
Release files / lanraragi_api-0.9.81.1.tar.gz
| Download URL | lanraragi_api-0.9.81.1.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3621a7e115594ff85134e2243d827ad296cb6410e5fad1c8d3083ec6b4e5b9a
|
|
BLAKE2b-256 checksum How to use checksums |
3e5017c07ffbaad6c9d28f463a2752f9bdd94d1230da05f16c20e771938068e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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 / lanraragi_api-0.9.81.1-py3-none-any.whl
| Download URL | lanraragi_api-0.9.81.1-py3-none-any.whl |
|---|---|
| Size | 25.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f494320be3f5624451780e595ce72d68a87a250203f402224298708bea87a11f
|
|
BLAKE2b-256 checksum How to use checksums |
71af35aed9205dbeae2a0cbff7d7e069cc32a9057ba03a688552486139293081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}
|