Skip to main content

lanraragi-api

PyPI Docs License CI Coverage

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.py contains server-side functions. The code is the same to that of LANraragi, only translated from Perl to Python.
  • script.py contains 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.

Metadata

Release files for lanraragi_api 0.9.82.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lanraragi_api 0.9.82.0
File Size Uploaded Provenance Actions
lanraragi_api-0.9.82.0.tar.gz 32.4 kB Without provenance Details for lanraragi_api-0.9.82.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lanraragi_api 0.9.82.0
File Interpreter ABI Platform Actions
lanraragi_api-0.9.82.0-py3-none-any.whl Python 3 none any Details for lanraragi_api-0.9.82.0-py3-none-any.whl

Total release size: 77.5 kB

Release files / lanraragi_api-0.9.82.0.tar.gz

Download URL lanraragi_api-0.9.82.0.tar.gz
Size 32.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e823157b95126f2cb40d759ab3311522782598dd954951320222b23bedf21911
BLAKE2b-256 checksum
How to use checksums
12311afcecc197066cbd9ec54374145bb9a82a04bd471f8821f892e82d432858
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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.82.0-py3-none-any.whl

Download URL lanraragi_api-0.9.82.0-py3-none-any.whl
Size 45.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47af32690faca0a7744cb8a003229c77b305b30f06afe93d5a6bb85c64e66c99
BLAKE2b-256 checksum
How to use checksums
ed1246bcbbd48ed1ed26067bcf1dfb71c846dfe8cde3eb25b8e96b1839a2cfde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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 lanraragi_api 0.9.82.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page