semvec/pypi-packages huggingface dataset:
copytree-cli 0.2.0
A tool to copy directory trees
Requires Python: >=3.6

![Banner](https://github.com/meepstertron/copyTree/blob/06518d6a1b43f927ea23be05dd605e8a21b95d8f/copytree-banner.png?raw=true)

# CopyTree

CopyTree is a command-line tool for creating ASCII file trees and replicating file trees using `.ct` files. It allows you to easily visualize and duplicate directory structures.

## Features

- Generate ASCII representations of directory trees
- Replicate directory structures using `.ct` files
- Export directory structures to `.ct` files
- Enable pirate-speak mode for fun logging messages
- uhh copytree = cool

## Installation

To install CopyTree, you can use pip:

### Install via pip

```sh
pip install copytree-cli
```

## Usage

To use CopyTree, run the following command:

```sh
copytree [options]
```

or
```sh
ct [options]
```

### Options

- `-v, --verbose` : Enable verbose output
- `-e, --export [file]` : Export the structure to a file (default: export.ct)
- `-d, --directory [directory]` : Directory to copy
- `-b, --build [file]` : Build structure based on a `.ct` file
- `-h, --help` : Display help information

## Examples

Generate an ASCII file tree for the current directory:

```sh
copytree
```

Replicate a directory tree from a `.ct` file:

```sh
copytree -b tree.ct
```

Export the current directory structure to a `.ct` file:

```sh
copytree -e my_structure.ct
```

## Configuration

CopyTree uses a configuration file located at `~/.copytree/config.json`. The configuration file allows you to customize the appearance of the ASCII tree and enable pirate-speak mode.

### Default Configuration

```json
{
    "folder-prefix": "/",
    "sub-file-indicator": "â”œâ”€â”€",
    "end-cap-indicator": "â””â”€â”€",
    "indent-space-indicator": "â”‚",
    "pirate-speak": false
}
```

### Configuration Options

- `folder-prefix`: The prefix used for folders in the ASCII tree.
- `sub-file-indicator`: The indicator used for sub-files in the ASCII tree.
- `end-cap-indicator`: The indicator used for the end of a branch in the ASCII tree.
- `indent-space-indicator`: The indicator used for indentation in the ASCII tree.
- `pirate-speak`: Enable or disable pirate-speak mode for logging messages.

## Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Contact

For any questions or suggestions, please contact [meepstertron@gmail.com](mailto:meepstertron@gmail.com).
genesis-base 0.1.2
Genesis video processing base package
Requires Python: <4.0,>=3.12

# Genesis Base

Genesis 视频处理基础包，提供数据库连接和任务模型定义。

## 功能

- 数据库连接工具
  - MongoDB
  - MySQL
  - S3

- 任务模型
  - 预训练任务 (PretrainTask)
  - 成品任务 (ProductTask)

## 安装

```bash
pip install genesis-base
```

## 使用示例

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