Skip to main content

用于读取InfluxDB数据库并进行趋势极值分析的软件包

Project description

#Trendgjj 作者:郭金基 Auther:Guo JinJi 这是一个用于读取 InfluxDB 数据库并进行趋势极值分析的 Python 包。 This is a Python package used to read the InfluxDB database and perform trend extremum analysis.

#功能特点 / Features

  • 连接 InfluxDB 数据库,查询时间序列数据
  • 对数据进行趋势分析,自动识别极值点
  • 基于 tkinter 的图形界面,方便交互操作
  • 支持配置管理(通过 ConfigManager)
  • 依赖常用的数据科学库:numpy, pandas, matplotlib, scipy, statsmodels

#安装 / Installation 使用 pip 直接安装: pip install trendgjj 注意:包名 trendgjj 已在 PyPI 注册,确保名称唯一。 安装后,所有依赖(如 influxdb-client、matplotlib 等)将自动安装。

#快速开始 / Quick Start

  1. 启动图形界面 在终端中直接运行以下命令(如果已配置命令行入口): trendgjj 或者通过 Python 模块方式运行: python -m trendgjj
  2. 导入使用 你可以在自己的 Python 脚本中导入该包的功能: python from trendgjj import ConfigManager, InputDialog# 创建配置管理器实例config_mgr = ConfigManager()# 启动输入对话框InputDialog(config_mgr)

#使用说明 / Usage Guide 配置文件 程序使用 configparser 管理配置。首次运行时,会自动生成默认配置文件config.ini(路径通常位于用户目录或当前工作目录,具体取决于实现)。你可以手动编辑配置文件,设置 InfluxDB 连接参数(如主机、端口、数据库、测量名称等)。 主界面 运行后会出现输入对话框,你需要填写:

  • InfluxDB 连接信息
  • 查询时间范围
  • 其他分析参数(如峰值检测阈值等) 点击“确定”后,程序将从 InfluxDB 获取数据,进行趋势分析并显示结果图表。 命令行参数(可选) 如果你实现了命令行参数解析,可以在 README 中说明,例如: bash trendgjj --config myconfig.ini

#依赖项 / Dependencies 项目运行时需要以下 Python 库(已在 setup.py 中声明,安装时会自动处理):

  • numpy>=1.18.0
  • pandas>=1.0.0
  • matplotlib>=3.0.0
  • scipy>=1.4.0
  • statsmodels>=0.12.0
  • influxdb-client>=1.30.0 此外,图形界面基于 tkinter(Python 标准库,无需额外安装)。

#许可证 / License 本项目使用 MIT 许可证,详情请参阅 LICENSE 文件。

#贡献 / Contributing 欢迎提交 Issue 或 Pull Request 来改进项目。如果你发现任何问题或有新功能建议,请通过 [GitHub Issues](如果有)或直接联系作者。

#作者联系方式 / Contact

#版本历史 / Release History

  • 0.1.0 (2026-03-16) 初始版本发布,支持 InfluxDB 数据读取和趋势极值分析。

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

trendgjj-0.1.0.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

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

trendgjj-0.1.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file trendgjj-0.1.0.tar.gz.

File metadata

  • Download URL: trendgjj-0.1.0.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for trendgjj-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9997250a77bcdbcb98a6bd00a2bdc60c1801ce1c31b0d9957612ece462f12d6c
MD5 56518a3c36a2d8d63dbab8434a70ce97
BLAKE2b-256 73e338c73bce6f71554be3958a113d04098e7f31724c4d8fbdb40743fa25be2a

See more details on using hashes here.

File details

Details for the file trendgjj-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: trendgjj-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for trendgjj-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df337ed1c7385bad013b7268f0c2750f818650c6f0547d9e5d7f7d5d04134720
MD5 b2d7952fde701a035c9498359cfa894f
BLAKE2b-256 6116eb0face41f0c1f3b79c20a1f68b9ddba3b1b345ebf2b38953adea6de40e6

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