Skip to main content

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.mdQUICK_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.6.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

mepybase-0.1.6-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file mepybase-0.1.6.tar.gz.

File metadata

  • Download URL: mepybase-0.1.6.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for mepybase-0.1.6.tar.gz
Algorithm Hash digest
SHA256 b724a9f3def90fa26ce9b2fb5627b0698560fc68b53eeecd133bf52bae645d2b
MD5 64ef2f54653c18043bd92dae775beb01
BLAKE2b-256 4c0e5b381b65c7313844fcf2c8e290feed66d7433e5a05cf38bd1264504be21b

See more details on using hashes here.

File details

Details for the file mepybase-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: mepybase-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for mepybase-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 217aae10f89f80fee5c21909f6e002db1855a841c9af7008882fc96f92f11a65
MD5 30cf365b0e655fca19e1fab74497678d
BLAKE2b-256 a14d857f829a5673a57e00a6109d9e599cfb6e6fe879ea4d8e8a6a65ce84a211

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