Skip to main content

A tool for creating and managing loader projects

Project description

Talos Loader

一个用于创建和管理加载器项目的工具。

安装

由于依赖关系,需要使用以下命令安装:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ talos_loader

使用方法

初始化新项目

talos_loader init

这将启动交互式向导,引导您创建一个新的加载器项目。您需要提供:

  • 项目路径(默认为 ~/Downloads)
  • 项目名称

执行后,将创建以下目录结构:

my_loader_demo/
├── README.md                # 项目说明文档
├── my_loader_demo/          # 主项目目录
│   └── loaders/             # 加载器模块
│       └── my_custom_loaders.py  # 自定义加载器实现
├── pyproject.toml           # 项目配置文件

开发

依赖

  • Python 3.10+
  • click
  • inquirer
  • jinja2
  • talos-aclient (从TestPyPI安装)
  • langchain
  • langchain-openai
  • pydantic

开发设置

# 克隆仓库
git clone https://github.com/yourusername/talos_loader.git
cd talos_loader

# 安装依赖
pip install -e .

# 运行测试
pytest

打包和发布

使用setuptools和twine打包

  1. 构建分发包:
pip install --upgrade build
python -m build
  1. 上传到TestPyPI:
pip install --upgrade twine
twine upload --repository testpypi dist/*
  1. 上传到PyPI:
twine upload dist/*

认证配置

在您的主目录下创建.pypirc文件:

[distutils]
index-servers =
    pypi
    testpypi

[pypi]
username = your_username
password = your_password

[testpypi]
repository = https://test.pypi.org/legacy/
username = your_username
password = your_password

更安全的方法是使用API令牌:

[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = your_api_token

许可证

MIT

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

talos_loader-0.0.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

talos_loader-0.0.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file talos_loader-0.0.1.tar.gz.

File metadata

  • Download URL: talos_loader-0.0.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for talos_loader-0.0.1.tar.gz
Algorithm Hash digest
SHA256 af622d8faf079ffd081d39741589ce97c6121aec6c69cb44f436d838e99ccfe9
MD5 0e779598f4404d51b173656ca6af230c
BLAKE2b-256 4a7c390b8b1a7aaaf436f5e1fd52bbbc2bcb1e83723266e450812db0c208d7c7

See more details on using hashes here.

File details

Details for the file talos_loader-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: talos_loader-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for talos_loader-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9303e7619d065f5d55f9d01ae03fc23dd6fbf8b929064e465ee9e51e875a7ca
MD5 67efdd082704bcb632fe1aa043226542
BLAKE2b-256 200d0c5c8be57c58f4a4962b77d41d49fb15f015a4399ab298c299901ce400d7

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