Genesis Base
Genesis 视频处理基础包,提供数据库连接和任务模型定义。
功能
-
数据库连接工具
- MongoDB
- MySQL
- S3
-
任务模型
- 预训练任务 (PretrainTask)
- 成品任务 (ProductTask)
安装
pip install genesis-base
使用示例
from genesis_base.models import PretrainTask, ProductTask
# 创建预训练任务
pretrain = PretrainTask(
task_id="pretrain_001",
name="预训练任务1",
source_video_path="/data/source.mp4",
reference_video_path="/data/reference.mp4",
video_model_path="/models/video/",
reference_audio_path="/data/reference.wav",
audio_model_path="/models/audio/"
)
pretrain.save(db)
# 创建成品任务
product = ProductTask(
task_id="product_001",
name="成品任务1",
audio_model_path="/models/audio/",
reference_audio_path="/data/reference.wav",
target_text="你好,世界",
video_model_path="/models/video/"
)
product.save(db)
环境变量配置
MongoDB
MONGO_HOST: MongoDB 主机地址MONGO_PORT: MongoDB 端口MONGO_USER: MongoDB 用户名MONGO_PASSWORD: MongoDB 密码MONGO_DATABASE: MongoDB 数据库名称
MySQL
MYSQL_HOST: MySQL 主机地址MYSQL_PORT: MySQL 端口MYSQL_USER: MySQL 用户名MYSQL_PASSWORD: MySQL 密码MYSQL_DATABASE: MySQL 数据库名称
S3
S3_ENDPOINT_URL: S3 端点 URLAWS_ACCESS_KEY_ID: AWS 访问密钥 IDAWS_SECRET_ACCESS_KEY: AWS 密钥AWS_REGION: AWS 区域
Metadata
Release files for genesis-base 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genesis_base-0.1.2.tar.gz | 5.6 kB | Without provenance | Details for genesis_base-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genesis_base-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for genesis_base-0.1.2-py3-none-any.whl |
Total release size: 13.5 kB
Release files / genesis_base-0.1.2.tar.gz
| Download URL | genesis_base-0.1.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f41eedcca056d120ab7f41023e6de3b35c2381190645f39b090b11a7357c2215
|
|
BLAKE2b-256 checksum How to use checksums |
1d97a6dd18aa10705e12bb879f603a22dcda286ef1b7e88d07cfc1514120a92c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0
|
Release files / genesis_base-0.1.2-py3-none-any.whl
| Download URL | genesis_base-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
836e621e9ec5c220b3d27269c5571ebeaaf6464283856bb81a65d4a479c3042f
|
|
BLAKE2b-256 checksum How to use checksums |
00f9dbb706316a6a1c6fbca3915c0d8b6f52067a41798c0a96ac8097f7856724
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0
|
Security for genesis-base 0.1.2
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.