Skip to main content

Genesis video processing base package

Project description

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 区域

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genesis_base-0.1.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genesis_base-0.1.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file genesis_base-0.1.2.tar.gz.

File metadata

  • Download URL: genesis_base-0.1.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0

File hashes

Hashes for genesis_base-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f41eedcca056d120ab7f41023e6de3b35c2381190645f39b090b11a7357c2215
MD5 6704e4ca98509450eefaa1907cf7d34f
BLAKE2b-256 1d97a6dd18aa10705e12bb879f603a22dcda286ef1b7e88d07cfc1514120a92c

See more details on using hashes here.

File details

Details for the file genesis_base-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: genesis_base-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0

File hashes

Hashes for genesis_base-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 836e621e9ec5c220b3d27269c5571ebeaaf6464283856bb81a65d4a479c3042f
MD5 728027466f356f4a055530d41519b554
BLAKE2b-256 00f9dbb706316a6a1c6fbca3915c0d8b6f52067a41798c0a96ac8097f7856724

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page