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.3

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.3
File Size Uploaded Provenance Actions
tidypptsdm-1.1.3.tar.gz 1.3 MB With provenance Details for tidypptsdm-1.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 1.9 MB

Release files / tidypptsdm-1.1.3.tar.gz

Download URL tidypptsdm-1.1.3.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ea43a2a245df99566c95209ea17369919e1f1b5a5c342444c61c32767a76fe18
BLAKE2b-256 checksum
How to use checksums
42243096613431d8be81f2e8a1517afa007210ea5223e7fb729f304a859961ef
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 Oct 31, 2026.

Transparency log

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

Download URL tidypptsdm-1.1.3-py3-none-any.whl
Size 607.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1632b86ed1ea47c55fdc37a364abdf92e39f66e122bdbf8561aa1b82dbf0e27c
BLAKE2b-256 checksum
How to use checksums
4f989277c62aec5ab04e88fed468ecbcbeb719bfb44583b749b55da4008bbbb2
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 Oct 31, 2026.

Transparency log

Security for tidypptsdm 1.1.3

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.3.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 Oct 31, 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