Skip to main content

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 端点 URL
  • AWS_ACCESS_KEY_ID: AWS 访问密钥 ID
  • AWS_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)

Source distribution for genesis-base 0.1.2
File Size Uploaded
genesis_base-0.1.2.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genesis-base 0.1.2
File Interpreter ABI Platform
genesis_base-0.1.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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