Utilities and scrapers toolkit
Project description
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(目前仅做日志初始化)。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loki_cactus01-1.8.13.tar.gz
(485.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loki_cactus01-1.8.13.tar.gz.
File metadata
- Download URL: loki_cactus01-1.8.13.tar.gz
- Upload date:
- Size: 485.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
593f818ca01206012d22859c9ac1bd7c51e7fb7b39ca96eb911221eab7f3c26d
|
|
| MD5 |
58c3d0e88c5fee0d05f267bd6852e9f1
|
|
| BLAKE2b-256 |
2e3bddebb649528bb93bc28a2761e1d70110c16456cc659ecd74a8bd24368e91
|
File details
Details for the file loki_cactus01-1.8.13-py3-none-any.whl.
File metadata
- Download URL: loki_cactus01-1.8.13-py3-none-any.whl
- Upload date:
- Size: 485.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83eb1ead73c604e4725ddcf6a606f41be4582c261587721108099901b0ff9a4d
|
|
| MD5 |
bba92ad647661d3a18ea2b83239ea465
|
|
| BLAKE2b-256 |
39741a786b9d1982dd62a6ef757309940a6fbec22a4d5c96df5cef3558af75bf
|