Skip to main content

A Python library for LANraragi API.

Project description

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.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lanraragi_api-0.9.81.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lanraragi_api-0.9.81.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file lanraragi_api-0.9.81.0.tar.gz.

File metadata

  • Download URL: lanraragi_api-0.9.81.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for lanraragi_api-0.9.81.0.tar.gz
Algorithm Hash digest
SHA256 f528b3e5d615362cd6b31bd4a5e05b5dfd2f9f803d5aa349533e42e23c5d8bf1
MD5 2ebab6e22d494c3b68b4eacee46e2f9a
BLAKE2b-256 ff4f3bc07692350c146311f941828a0df90830400b10bd4b22c5db05e8ee89d4

See more details on using hashes here.

File details

Details for the file lanraragi_api-0.9.81.0-py3-none-any.whl.

File metadata

  • Download URL: lanraragi_api-0.9.81.0-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for lanraragi_api-0.9.81.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3bb38f84cd7e23d09310aff0531e695dc8bd77d114eb4857f7e9853325145db
MD5 a2a78d08339e50a145aeb7ea1c4954ec
BLAKE2b-256 c009e98e0f1d0ad7d1a112fb37f60f815ef3a4f141d3a74b8fe9693d13ccbe93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page