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/

三种用法

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

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

Built distribution (wheel)

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

Total release size: 1.9 MB

Release files / tidypptsdm-1.1.1.tar.gz

Download URL tidypptsdm-1.1.1.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
8522db3f8ee9dd1e574f0e0c8eb364d64b44098521db385cb6cc1bb20e3b94cb
BLAKE2b-256 checksum
How to use checksums
bd929115c59b31b63d1b9e0f153d254f7e58b8d31c215cb269eb28a943ec1a50
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.1-py3-none-any.whl

Download URL tidypptsdm-1.1.1-py3-none-any.whl
Size 606.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b68b3a8c0f443694d25ce1e251a869c7641f2aa7ec16ee0853e3fbd91e24fb2d
BLAKE2b-256 checksum
How to use checksums
9cf83b13d5959412fb7a300a86de4004e04442e7413526f6dbc0d0d2b6a99fc9
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.1

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