Skip to main content

loki

一个可被其它项目复用的工具库(同时包含部分 scraper)。

作为依赖安装

本地源码引用(推荐开发阶段)

pip install -e .

启用 scraper 相关依赖

pip install -e ".[scrapers]"

Playwright 还需要安装浏览器(首次一次性):

python -m playwright install chromium

在其它项目里引用

from loki.scrapers import RequestMixin, Method
from loki.scrapers.javdb import JavDB

发布 / 构建

python scripts/release.py --dry-run     # 清理 dist/build、跑测试、build、twine check,不上传
python scripts/release.py               # 上传到 PyPI,上传前会确认
python scripts/release.py --yes         # CI/确认无误时直接上传

脚本会自动删除旧的 dist/、build/、*.egg-info,并在上传前检查当前版本是否已经存在于 PyPI;如果已存在,需要先提升 pyproject.toml 里的 version。

只想本地安装刚构建的 wheel 时,可先执行 dry-run,再安装:

pip install dist/loki_cactus01-*.whl

说明

  • 依赖在 pyproject.toml 的 [project.dependencies] / [project.optional-dependencies] 中维护。
  • 命令行入口 loki 指向 loki.__main__:main(目前仅做日志初始化)。

Metadata

Release files for loki-cactus01 1.8.15

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

Source distribution (sdist)

Source distribution for loki-cactus01 1.8.15
File Size Uploaded Provenance Actions
loki_cactus01-1.8.15.tar.gz 486.0 kB Without provenance Details for loki_cactus01-1.8.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for loki-cactus01 1.8.15
File Interpreter ABI Platform Actions
loki_cactus01-1.8.15-py3-none-any.whl Python 3 none any Details for loki_cactus01-1.8.15-py3-none-any.whl

Total release size: 972.0 kB

Release files / loki_cactus01-1.8.15.tar.gz

Download URL loki_cactus01-1.8.15.tar.gz
Size 486.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7aca7b35a48ad67f90e118ae5afa12344bc624978893f118cad1364afa53ae3f
BLAKE2b-256 checksum
How to use checksums
42bb0f74fd67a78f8dfe4d7195577737d808f53f69c68744857906a597dba629
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / loki_cactus01-1.8.15-py3-none-any.whl

Download URL loki_cactus01-1.8.15-py3-none-any.whl
Size 486.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b821b6e6f5dd86dc48492249b34e9f8ba54830dadc13e231cd18312cd49b4334
BLAKE2b-256 checksum
How to use checksums
e70f197bb5a28a992f201914e7a3998e268aba0ab93c9f527eb3a9cd6a2d71f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for loki-cactus01 1.8.15

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