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.1.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.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: genesis_base-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 18b308cc3f93bb10c55a897b09114e15943ab8d81add5923c75d4fdffb6e2215
MD5 958e272d559eb7cee41bbe69bc8d2a1e
BLAKE2b-256 b49e6a3334115bdf3568fec7a24df3d985ce151aba42fb0c1849c031bb8811c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: genesis_base-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe0edcbb89b84357025e143f81843ee9b85aaef2d76c57123c5f5e9a5b0553af
MD5 5c70b21e3f5a9335aee25507cfe6c150
BLAKE2b-256 8e91f6d35cbfac82c2bcf0130ca8ad61b127c03ebf3f73c48f07a3e13cdf5f8e

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