Mellon self py base utils
Project description
mellonPyUtils
Mellon Python Utilities - 包含基础工具模块和 LLM 模型工厂。
📦 包内容
mepybase
Mellon Python Base 工具包,提供基础实用工具。
easylog- 简化日志记录llmperf- LLM 性能测试meperf- 性能分析工具
mepybase.meagno
模型工厂子模块,提供多个 LLM 提供商的统一接口。
支持的提供商:
- iFlow (多个模型版本)
- DeepSeek
- DMX
- Ollama (本地模型)
安装
pip install mepybase
如需使用模型工厂功能:
pip install mepybase[meagno]
快速开始
使用基础工具
from mepybase import easylog, meperf
使用模型工厂
from mepybase.meagno import get_model
# 获取 iFlow 模型(需要配置 IFLOW_API_KEY)
model = get_model(provider="iflow")
# 获取 DeepSeek 模型
model = get_model(provider="deepseek")
# 使用 Ollama 本地模型
model = get_model(provider="ollama")
配置
环境变量
# iFlow
export IFLOW_API_KEY="sk-xxxxxxxxxxxxx"
# DeepSeek
export DEEPSEEK_API_KEY="sk-xxxxxxxxxxxxx"
# DMX
export DMXAPI_API_KEY="sk-xxxxxxxxxxxxx"
# Ollama
export OLLAMA_HOST="http://localhost:11434" # 可选,默认值
发布和构建
详见 BUILD_GUIDE.md 和 QUICK_REFERENCE.md。
简单流程:
# 编译
bash build.sh
# 本地测试
bash install.sh
# 发布到 PyPI
bash publish.sh
许可证
MIT License
作者
mellon
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
mepybase-0.1.7.tar.gz
(12.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mepybase-0.1.7-py3-none-any.whl
(15.0 kB
view details)
File details
Details for the file mepybase-0.1.7.tar.gz.
File metadata
- Download URL: mepybase-0.1.7.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fd55296962b0ea50065b3ed3322610b4fcfe3ae4c437572c4070af31eb3cfbd
|
|
| MD5 |
5f415ab524dd9e7b1894a66d7f668f67
|
|
| BLAKE2b-256 |
b094a023d1d7fc55315b9801209c0e7402f536284dfcae968856e8fa0079036a
|
File details
Details for the file mepybase-0.1.7-py3-none-any.whl.
File metadata
- Download URL: mepybase-0.1.7-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b0f5416a46a1e0af7c921f15a8530b9d39c138ee3f5439dc1d5faf499a813fe
|
|
| MD5 |
d789a79823fa04a3c4de4c930d0cdcd7
|
|
| BLAKE2b-256 |
81bd25ecc295d03246c7d6aadfef1b9ece8f5e2a1dbbb0aebe98d6bb3c375786
|