Skip to main content

tidypptsdm (Python) logo

tests docs

种猪性能测定站日常监控:读取 NEDAP 或 FIRE 测定站的导出文件,按测定站、栋、猪和小时汇总最近几天的数据,列出最后一天的警报(测定站停机、耳标读不到、采食量骤降、猪不来吃料或吃得太少),并生成可以逐站翻页浏览的 HTML 报告和带色阶的 Excel 工作簿。

Daily monitoring of automatic pig feeding stations (NEDAP and FIRE): daily tables per station, house, pig and hour, alerts of the last day, an offline HTML report and an Excel workbook.

这是 R 包 tidypptsdm 的 Python 版本,计算结果与 R 版逐表一致(测试中用两份示例数据对比)。

文档:https://tony2015116.github.io/tidypptsdm-py/ · R 版:https://tony2015116.github.io/tidypptsdm/

三种用法

1. 桌面程序(Windows,不需要安装 Python)

从 Releases 下载 tidypptsdm-windows.zip,解压后双击 tidypptsdm.exe:选择导出文件夹和结果文件夹,点“运行监控”,报告自动在浏览器中打开;点“设为每天定时”即可每天自动生成报告。

2. 命令行

pip install tidypptsdm
tidypptsdm run D:/nedap/exports --out D:/nedap/monitor --days 7
tidypptsdm schedule D:/nedap/exports --out D:/nedap/monitor --time 07:30

3. Python

import tidypptsdm as tp

mon = tp.run_monitor("D:/nedap/exports", days=7)   # or tp.load_example("nedap")
mon.alerts
tp.wide_table(mon.stations, "feed_kg")
tp.write_monitor_report(mon, "monitor/2024-05-25", open=True)
tp.write_monitor_tables(mon, "monitor/2024-05-25")

依赖

pandas、numpy、matplotlib、openpyxl。图形界面用 Python 自带的 tkinter。

Metadata

Release files for tidypptsdm 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tidypptsdm 1.1.5
File Size Uploaded Provenance Actions
tidypptsdm-1.1.5.tar.gz 1.3 MB With provenance Details for tidypptsdm-1.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tidypptsdm 1.1.5
File Interpreter ABI Platform Actions
tidypptsdm-1.1.5-py3-none-any.whl Python 3 none any Details for tidypptsdm-1.1.5-py3-none-any.whl

Total release size: 1.9 MB

Release files / tidypptsdm-1.1.5.tar.gz

Download URL tidypptsdm-1.1.5.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
a52904d82c81019b9277ce3363de8cac525a03d23e99197c29fa2fd3a510f56f
BLAKE2b-256 checksum
How to use checksums
ada42d6eab67f5f607a451da6556770db40dfadee2420957c819c178cce7cb55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / tidypptsdm-1.1.5-py3-none-any.whl

Download URL tidypptsdm-1.1.5-py3-none-any.whl
Size 632.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86a1d2cbd96b9861ee7d373a483ace0657b0e3297eef61d32471fa54c69cbcc3
BLAKE2b-256 checksum
How to use checksums
3c800713ea12df5b154af21cc4bbec30409af70ea676d23f7c09321d746304ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for tidypptsdm 1.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tidypptsdm-1.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page