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 Archive

apikey = 'your-key'
server = 'http://127.0.0.1:3000'
api = LANraragiAPI(server, key=apikey)

archives: list[Archive] = 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).

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.41.0.tar.gz (25.7 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.41.0-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lanraragi_api-0.9.41.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for lanraragi_api-0.9.41.0.tar.gz
Algorithm Hash digest
SHA256 25694907901aa4d639574aa92d0ac193909bbd905a3e117d614d376f2a48a98f
MD5 4f33f1114fe3dfd7b37361d2f50886da
BLAKE2b-256 0751da92a3a091432b6f3bad740a144e6daa3ac355e83878a34570c908a05e1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lanraragi_api-0.9.41.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c6c5329c535daf32956039b21e7f81073c95c80cb7bbc9b6e4d0d2de7ec4930
MD5 f6ba2ce91d88973a58f03c883b224e3b
BLAKE2b-256 2b763ec737d2bb8e4a6ab7dd61dd7708b5ca95e962f75939cd148a2081e1593e

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