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

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

Built distribution (wheel)

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

Total release size: 1.9 MB

Release files / tidypptsdm-1.1.4.tar.gz

Download URL tidypptsdm-1.1.4.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
f0a573679d1889b42e29ca33e8fba416b75f8e2448b664f50bfd6f0872e8abd1
BLAKE2b-256 checksum
How to use checksums
c14a48bc194ec899b033f4e9f96d24de686bfbcb8340ca44e3d88238d5a9f485
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.4-py3-none-any.whl

Download URL tidypptsdm-1.1.4-py3-none-any.whl
Size 615.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
277b7c96847811d28571db074496056205ec25c732595ab13deab1941300e81f
BLAKE2b-256 checksum
How to use checksums
e4eb072b00dd3fee5fe5a22a96020cf43fe56fee07e5e1b19a0e99b0b26ced90
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.4

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