Shared library for TiebaMeow services
Project description
tiebameow
Tiebameow 项目通用模块
简介
tiebameow 是在 Tiebameow 项目内使用的通用模块,提供了通用的数据模型、序列化/反序列化工具、日志模块以及辅助函数。
目录
client: 包含增强的aiotieba.Client与httpx客户端。models: 定义了通用数据交换模型和 ORM 数据模型。parser: 提供解析和处理aiotieba数据的解析器。renderer: 提供将 DTO 内容或简单文本渲染为图片的功能。schemas: 定义了各种数据片段与审查规则的 Pydantic 模型。serializer: 提供数据交换模型的序列化和反序列化方法。utils: 包含通用日志模块和一些辅助函数和工具类。
安装
推荐使用 uv 进行环境管理和依赖安装。
仅安装基础功能:
uv add tiebameow
如需使用数据库模型,请安装 orm 额外依赖:
uv add tiebameow[orm]
如需使用渲染功能,请安装 renderer 额外依赖和 Playwright 所需浏览器:
uv add tiebameow[renderer]
uv run playwright install chromium-headless-shell
开发指南
欢迎贡献代码,请确保遵循项目的编码规范,并在提交前运行 pre-commit hooks:
uv sync --dev
pre-commit install
pre-commit run --all-files
有关详细信息,请参阅 CONTRIBUTING.md 文件。
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
tiebameow-0.1.0rc5.tar.gz
(4.2 MB
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 tiebameow-0.1.0rc5.tar.gz.
File metadata
- Download URL: tiebameow-0.1.0rc5.tar.gz
- Upload date:
- Size: 4.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa9f1013266779115eff73a0735d231f78ada37e9cb5ca1e528bda8217ef3a74
|
|
| MD5 |
497beaa6fde4186a0564b207e4d48453
|
|
| BLAKE2b-256 |
0710e349c09fd97654c838ee2c8eb9d0a154920d37a2080f47f1ddf51ba35e78
|
File details
Details for the file tiebameow-0.1.0rc5-py3-none-any.whl.
File metadata
- Download URL: tiebameow-0.1.0rc5-py3-none-any.whl
- Upload date:
- Size: 4.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
620d189066aee6784fd8fb1f01152ec426ce276dfe224b9dec45ac90dc77dd51
|
|
| MD5 |
6dca517d479828d4ae4dd82535cb051e
|
|
| BLAKE2b-256 |
115ed71fd3f4a5e2b6c87cff3f75d37f8272840ec373ca9d29808e7eb3d4cd84
|