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:
from lanraragi_api import LANraragiAPI
apikey = "your-key"
server = "http://127.0.0.1:3000"
api = LANraragiAPI(server, key=apikey)
archives = api.search.get_random_archives()
if len(archives) > 0:
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.2
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.2.tar.gz | 30.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lanraragi_api-0.9.81.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.7 kB
Release files / lanraragi_api-0.9.81.2.tar.gz
| Download URL | lanraragi_api-0.9.81.2.tar.gz |
|---|---|
| Size | 30.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44ca0f3ad86d24ff02935f7c47c7d78f5e7535c1f6590a589ad940d35b31521f
|
|
BLAKE2b-256 checksum How to use checksums |
62ef6ff3fb9667e4de202bd3e6f41b67037afffc2a303dc20c290607b19d036b
|
| 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.2-py3-none-any.whl
| Download URL | lanraragi_api-0.9.81.2-py3-none-any.whl |
|---|---|
| Size | 45.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7e149f91ab4d84992d080bfb505e3457d003df72399cbdf7ff12d021fed75eb
|
|
BLAKE2b-256 checksum How to use checksums |
3aa3251b5971baf9d40b82e01beeb7c90556cd06d7394a6cf18c7695ef289855
|
| 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}
|