dairy-data-tools 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/CITATION.cff +3 -1
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/NOTICE +3 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/PKG-INFO +70 -28
- dairy_data_tools-0.2.2/README.md +142 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/plugins/dairy-data-tools/NOTICE +3 -0
- dairy_data_tools-0.2.2/plugins/dairy-data-tools/README.md +133 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/plugins/dairy-data-tools/sample-herd/README.md +1 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/pyproject.toml +1 -1
- dairy_data_tools-0.2.2/tools/dairytools/cards.py +612 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/cli.py +15 -8
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/cowcard.py +88 -23
- dairy_data_tools-0.2.2/tools/dairytools/data/NOTICE-nasem.md +11 -0
- dairy_data_tools-0.2.2/tools/dairytools/data/nasem_feeds.csv +285 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/explorer.py +5 -4
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/feeding.py +24 -3
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/herd.py +100 -1
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/io.py +13 -3
- dairy_data_tools-0.2.2/tools/dairytools/nutrients.py +141 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/weeklycard.py +46 -13
- dairy_data_tools-0.2.0/README.md +0 -100
- dairy_data_tools-0.2.0/plugins/dairy-data-tools/README.md +0 -91
- dairy_data_tools-0.2.0/tools/dairytools/cards.py +0 -343
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/.gitignore +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/LICENSE +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/LICENSE-skills.md +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/plugins/dairy-data-tools/LICENSE +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/plugins/dairy-data-tools/LICENSE-skills.md +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairyread.py +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/__init__.py +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/commands.py +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/reference.py +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/stats.py +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/dairytools/weekly.py +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/pen_milk.py +0 -0
- {dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/tools/ration_change.py +0 -0
|
@@ -11,7 +11,9 @@ authors:
|
|
|
11
11
|
- family-names: Lucey
|
|
12
12
|
given-names: Pádraig
|
|
13
13
|
orcid: "https://orcid.org/0000-0003-3885-2439"
|
|
14
|
-
version: 0.2.
|
|
14
|
+
version: 0.2.2
|
|
15
|
+
doi: 10.5281/zenodo.23493936
|
|
16
|
+
date-released: 2026-10-20
|
|
15
17
|
license: Apache-2.0
|
|
16
18
|
repository-code: "https://github.com/padge01/dairy-data-tools"
|
|
17
19
|
keywords:
|
|
@@ -10,6 +10,9 @@ Figures and their sources:
|
|
|
10
10
|
- Predicted dry matter intake: National Academies of Sciences, Engineering, and Medicine (2021), Nutrient
|
|
11
11
|
Requirements of Dairy Cattle, 8th revised edition, equation 2-1.
|
|
12
12
|
- 21-day pregnancy rate: counted the way DairyComp 305's BREDSUM report counts it.
|
|
13
|
+
- What a ration holds, where the farm has no analyses of its own: the NASEM (2021) feed library, from the nasem_dairy
|
|
14
|
+
package (Fieguth, Innes and Cant). Those values are NASEM's and keep NASEM's terms (academic use with acknowledgment;
|
|
15
|
+
commercial use needs NASEM's release), not this project's licence: see dairytools/data/NOTICE-nasem.md.
|
|
13
16
|
|
|
14
17
|
DairyComp 305 and EZfeed are products of Valley Ag Software. This project is not affiliated with or endorsed
|
|
15
18
|
by Valley Ag Software. It reads only export files that the programs write for their users.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dairy-data-tools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Read a dairy farm's DairyComp and EZfeed exports: the herd, each pen and cow, pen cows joined to pen feed, a weekly or visit review, and a ration change with the season taken out.
|
|
5
5
|
Project-URL: Homepage, https://github.com/padge01/dairy-data-tools
|
|
6
6
|
Project-URL: Issues, https://github.com/padge01/dairy-data-tools/issues
|
|
@@ -17,46 +17,86 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
17
17
|
Requires-Python: >=3.10
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
|
|
20
|
+
<div align="center">
|
|
21
|
+
|
|
22
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/plugins/dairy-data-tools/.claude-plugin/icon.png" alt="" width="96">
|
|
23
|
+
|
|
20
24
|
# Dairy Data Tools
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
exports and ask about a pen: how it's doing, what a ration change did, and whether it's just the season. The numbers
|
|
24
|
-
come from small, tested scripts, not from the AI's guesswork.
|
|
26
|
+
### A dairy's own DairyComp and EZfeed records, read by your AI assistant.
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
**Attach a farm's exports. Ask in plain words. Get each pen's numbers, worked out by tested scripts, not guessed.**
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
[](https://pypi.org/project/dairy-data-tools/)
|
|
31
|
+
[](https://doi.org/10.5281/zenodo.23493936)
|
|
32
|
+
[](LICENSE)
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
`padge01/dairy-data-tools`, then Add **Dairy Data Tools**. Attach the farm's export files to a chat and ask.
|
|
34
|
+
[Quick start](#quick-start) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D.
|
|
37
|
+
([Dairy Data Science](https://dairydatascience.com)).
|
|
34
38
|
|
|
35
|
-
|
|
36
|
-
claude plugin marketplace add padge01/dairy-data-tools
|
|
37
|
-
```
|
|
39
|
+
</div>
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
claude plugin install dairy-data-tools@dairy-data-tools
|
|
41
|
-
```
|
|
41
|
+
---
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
## Quick start
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
npx skills add padge01/dairy-data-tools
|
|
47
|
-
```
|
|
45
|
+
### 1. Add it to Claude
|
|
48
46
|
|
|
49
|
-
|
|
47
|
+
In the Claude app (desktop or [claude.ai](https://claude.ai), on a paid plan):
|
|
50
48
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
1. **Settings > Capabilities**: turn on **Code execution and file creation**. The scripts run in Claude's own sandbox.
|
|
50
|
+
2. **Customize > Plugins > Add marketplace**: enter `padge01/dairy-data-tools`, then add **Dairy Data Tools**.
|
|
51
|
+
|
|
52
|
+
Coming soon to Claude's plugin directory, for one-click install.
|
|
53
|
+
|
|
54
|
+
### 2. Ask
|
|
55
|
+
|
|
56
|
+
Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](https://github.com/padge01/dairy-data-tools/tree/main/plugins/dairy-data-tools/sample-herd)) and
|
|
57
|
+
ask, for example:
|
|
54
58
|
|
|
55
|
-
```
|
|
56
|
-
|
|
59
|
+
```text
|
|
60
|
+
How is pen 21 doing? Did the ration change on 28 Sep work, or is it just the season?
|
|
57
61
|
```
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
64
|
+
|
|
65
|
+
<p align="center"><img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk and ECM per cow as a spread, days in milk, lactation, intake, ECM and intake by day with the ration change marked, what changed in the ration, ECM since the change against last fall, health events and feed cost." width="760"></p>
|
|
66
|
+
|
|
67
|
+
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
68
|
+
the farm's own item list.
|
|
69
|
+
|
|
70
|
+
## What you get
|
|
71
|
+
|
|
72
|
+
Each answer comes back as a card. These are from the sample herd.
|
|
73
|
+
|
|
74
|
+
<table>
|
|
75
|
+
<tr>
|
|
76
|
+
<td width="50%" valign="top"><b>A cow</b><br>Her milk this lactation, her place in the pen, what's happened to her.<br><br>
|
|
77
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-cow.png" alt="Cow 3004's card" width="100%"></td>
|
|
78
|
+
<td width="50%" valign="top"><b>Pen feed</b><br>Each pen's intake, efficiency, cost per cwt and ration side by side.<br><br>
|
|
79
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-pen-feed.png" alt="The pen feed card" width="100%"></td>
|
|
80
|
+
</tr>
|
|
81
|
+
<tr>
|
|
82
|
+
<td valign="top"><b>Visit review</b><br>Fresh cows, components, udder health, reproduction, who left, and what to check next.<br><br>
|
|
83
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-visit.png" alt="The visit review" width="100%"></td>
|
|
84
|
+
<td valign="top"><b>On a slide</b><br>Add <code>--slide</code>: bigger, fewer items, sized for a talk or a meeting.<br><br>
|
|
85
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-slide.png" alt="Pen 21's card as a slide" width="100%"></td>
|
|
86
|
+
</tr>
|
|
87
|
+
</table>
|
|
88
|
+
|
|
89
|
+
Herds that test get ECM from their tests. Herds that only weigh milk get each cow's daily weight, and the card says so.
|
|
90
|
+
Save the exports more than once and the cards join them: each day gives a pen's milk by day, each month gives a cow's
|
|
91
|
+
tests.
|
|
92
|
+
|
|
93
|
+
## Other apps
|
|
94
|
+
|
|
95
|
+
| Where | How |
|
|
96
|
+
| --- | --- |
|
|
97
|
+
| **Claude Code** | `claude plugin marketplace add padge01/dairy-data-tools`, then `claude plugin install dairy-data-tools@dairy-data-tools` |
|
|
98
|
+
| **Codex, Cursor, Gemini CLI** and other apps that read Agent Skills | `npx skills add padge01/dairy-data-tools` |
|
|
99
|
+
| **Python, no AI** (Python 3.10 or later, nothing else to install) | `pip install dairy-data-tools`, then `dairy-data-tools pen --folder "Farm Exports" --pen 21`; `dairy-data-tools --help` lists every question |
|
|
60
100
|
|
|
61
101
|
## What's in it
|
|
62
102
|
|
|
@@ -66,7 +106,7 @@ Ask in plain words; the right skill picks itself. No commands to learn.
|
|
|
66
106
|
| --- | --- | --- |
|
|
67
107
|
| dairycomp-exports | "How do I get my cow list out of DairyComp?" "Write me a list of fresh cows in pen 1." "Which of these items shouldn't I use?" | The reports to save for this farm; DairyComp commands from plain English, checked against the farm's own items (SHOW, never LIST, which prints); what each item is |
|
|
68
108
|
| ezfeed-exports | "Which EZfeed reports do you need?" | The reports to save and how they're read |
|
|
69
|
-
| herd-explorer | "How is pen 21 doing?" "What happened to cow
|
|
109
|
+
| herd-explorer | "How is pen 21 doing?" "What happened to cow 3004?" | The herd, every pen, one pen, one cow: milk and ECM as a spread, events, lactations |
|
|
70
110
|
| pen-feed | "What's pen 21's feed efficiency and IOFC?" "Is the feed loaded as called for?" | Each pen's cows joined to its feed: intake per cow, ECM per lb DM, cost per cwt, IOFC, NASEM's predicted intake; loading accuracy, refusals, consistency |
|
|
71
111
|
| weekly-review | "Get me ready for Thursday's visit." "How are the fresh cows doing?" | Fresh cows, components and MUN, udder health, reproduction, who left, the pens' feed, and actions for the next visit |
|
|
72
112
|
| ration-change | "Did pen 21's ration change work, or is it the season?" | The week before against the latest week, with the same weeks last year or another pen taken out |
|
|
@@ -102,7 +142,9 @@ Lab** (a free ration balancer).
|
|
|
102
142
|
|
|
103
143
|
## Cite it
|
|
104
144
|
|
|
105
|
-
If it helps your work, please cite it:
|
|
145
|
+
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
146
|
+
https://doi.org/10.5281/zenodo.23493936 (every version; 0.2.0 is https://doi.org/10.5281/zenodo.23493937). GitHub's
|
|
147
|
+
"Cite this repository" button gives the same reference.
|
|
106
148
|
|
|
107
149
|
## Licence
|
|
108
150
|
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/plugins/dairy-data-tools/.claude-plugin/icon.png" alt="" width="96">
|
|
4
|
+
|
|
5
|
+
# Dairy Data Tools
|
|
6
|
+
|
|
7
|
+
### A dairy's own DairyComp and EZfeed records, read by your AI assistant.
|
|
8
|
+
|
|
9
|
+
**Attach a farm's exports. Ask in plain words. Get each pen's numbers, worked out by tested scripts, not guessed.**
|
|
10
|
+
|
|
11
|
+
[](https://pypi.org/project/dairy-data-tools/)
|
|
12
|
+
[](https://doi.org/10.5281/zenodo.23493936)
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
|
|
15
|
+
[Quick start](#quick-start) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
16
|
+
|
|
17
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D.
|
|
18
|
+
([Dairy Data Science](https://dairydatascience.com)).
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Quick start
|
|
25
|
+
|
|
26
|
+
### 1. Add it to Claude
|
|
27
|
+
|
|
28
|
+
In the Claude app (desktop or [claude.ai](https://claude.ai), on a paid plan):
|
|
29
|
+
|
|
30
|
+
1. **Settings > Capabilities**: turn on **Code execution and file creation**. The scripts run in Claude's own sandbox.
|
|
31
|
+
2. **Customize > Plugins > Add marketplace**: enter `padge01/dairy-data-tools`, then add **Dairy Data Tools**.
|
|
32
|
+
|
|
33
|
+
Coming soon to Claude's plugin directory, for one-click install.
|
|
34
|
+
|
|
35
|
+
### 2. Ask
|
|
36
|
+
|
|
37
|
+
Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](https://github.com/padge01/dairy-data-tools/tree/main/plugins/dairy-data-tools/sample-herd)) and
|
|
38
|
+
ask, for example:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
How is pen 21 doing? Did the ration change on 28 Sep work, or is it just the season?
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
45
|
+
|
|
46
|
+
<p align="center"><img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk and ECM per cow as a spread, days in milk, lactation, intake, ECM and intake by day with the ration change marked, what changed in the ration, ECM since the change against last fall, health events and feed cost." width="760"></p>
|
|
47
|
+
|
|
48
|
+
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
49
|
+
the farm's own item list.
|
|
50
|
+
|
|
51
|
+
## What you get
|
|
52
|
+
|
|
53
|
+
Each answer comes back as a card. These are from the sample herd.
|
|
54
|
+
|
|
55
|
+
<table>
|
|
56
|
+
<tr>
|
|
57
|
+
<td width="50%" valign="top"><b>A cow</b><br>Her milk this lactation, her place in the pen, what's happened to her.<br><br>
|
|
58
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-cow.png" alt="Cow 3004's card" width="100%"></td>
|
|
59
|
+
<td width="50%" valign="top"><b>Pen feed</b><br>Each pen's intake, efficiency, cost per cwt and ration side by side.<br><br>
|
|
60
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-pen-feed.png" alt="The pen feed card" width="100%"></td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td valign="top"><b>Visit review</b><br>Fresh cows, components, udder health, reproduction, who left, and what to check next.<br><br>
|
|
64
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-visit.png" alt="The visit review" width="100%"></td>
|
|
65
|
+
<td valign="top"><b>On a slide</b><br>Add <code>--slide</code>: bigger, fewer items, sized for a talk or a meeting.<br><br>
|
|
66
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-slide.png" alt="Pen 21's card as a slide" width="100%"></td>
|
|
67
|
+
</tr>
|
|
68
|
+
</table>
|
|
69
|
+
|
|
70
|
+
Herds that test get ECM from their tests. Herds that only weigh milk get each cow's daily weight, and the card says so.
|
|
71
|
+
Save the exports more than once and the cards join them: each day gives a pen's milk by day, each month gives a cow's
|
|
72
|
+
tests.
|
|
73
|
+
|
|
74
|
+
## Other apps
|
|
75
|
+
|
|
76
|
+
| Where | How |
|
|
77
|
+
| --- | --- |
|
|
78
|
+
| **Claude Code** | `claude plugin marketplace add padge01/dairy-data-tools`, then `claude plugin install dairy-data-tools@dairy-data-tools` |
|
|
79
|
+
| **Codex, Cursor, Gemini CLI** and other apps that read Agent Skills | `npx skills add padge01/dairy-data-tools` |
|
|
80
|
+
| **Python, no AI** (Python 3.10 or later, nothing else to install) | `pip install dairy-data-tools`, then `dairy-data-tools pen --folder "Farm Exports" --pen 21`; `dairy-data-tools --help` lists every question |
|
|
81
|
+
|
|
82
|
+
## What's in it
|
|
83
|
+
|
|
84
|
+
Ask in plain words; the right skill picks itself. No commands to learn.
|
|
85
|
+
|
|
86
|
+
| Skill | Ask it | What it does |
|
|
87
|
+
| --- | --- | --- |
|
|
88
|
+
| dairycomp-exports | "How do I get my cow list out of DairyComp?" "Write me a list of fresh cows in pen 1." "Which of these items shouldn't I use?" | The reports to save for this farm; DairyComp commands from plain English, checked against the farm's own items (SHOW, never LIST, which prints); what each item is |
|
|
89
|
+
| ezfeed-exports | "Which EZfeed reports do you need?" | The reports to save and how they're read |
|
|
90
|
+
| herd-explorer | "How is pen 21 doing?" "What happened to cow 3004?" | The herd, every pen, one pen, one cow: milk and ECM as a spread, events, lactations |
|
|
91
|
+
| pen-feed | "What's pen 21's feed efficiency and IOFC?" "Is the feed loaded as called for?" | Each pen's cows joined to its feed: intake per cow, ECM per lb DM, cost per cwt, IOFC, NASEM's predicted intake; loading accuracy, refusals, consistency |
|
|
92
|
+
| weekly-review | "Get me ready for Thursday's visit." "How are the fresh cows doing?" | Fresh cows, components and MUN, udder health, reproduction, who left, the pens' feed, and actions for the next visit |
|
|
93
|
+
| ration-change | "Did pen 21's ration change work, or is it the season?" | The week before against the latest week, with the same weeks last year or another pen taken out |
|
|
94
|
+
| balance-ration | "Balance pen 21's ration" | The free Dairy Ration Lab when it's connected; this kit never makes up a ration |
|
|
95
|
+
|
|
96
|
+
Plain Python, checked number for number against the author's earlier R version: every count says what it's out of,
|
|
97
|
+
milk is shown as a spread, and the farm is compared with itself, never with published targets.
|
|
98
|
+
|
|
99
|
+
**A sample herd** (`sample-herd/`): a made-up California dairy's exports, to try every skill before using a real farm's.
|
|
100
|
+
|
|
101
|
+
**Its neighbours**, separate tools from the same place: **BESTPRED** (USDA's best prediction of 305-day and
|
|
102
|
+
mature-equivalent milk; in this marketplace, and at `https://bestpred.dairydatascience.com/mcp`) and the **Dairy Ration
|
|
103
|
+
Lab** (a free ration balancer).
|
|
104
|
+
|
|
105
|
+
## What it does with your files
|
|
106
|
+
|
|
107
|
+
- The scripts read the export files where they are. They change nothing, keep nothing, and send nothing over the
|
|
108
|
+
internet. They use Python's standard library only.
|
|
109
|
+
- In Claude's chat the files you attach and the scripts run in Claude's own code sandbox. What the agent reads goes to
|
|
110
|
+
the AI company as part of the conversation, as anything you attach does, unless you run a model on your own computer.
|
|
111
|
+
- Event remarks, protocols and technician names are left out of what the scripts report, because they are free text
|
|
112
|
+
typed on the farm and could contain anything, including instructions aimed at an agent.
|
|
113
|
+
- Nothing reads DairyComp's own files or backups, and no figure DairyComp calculates for itself (such as 305-day or
|
|
114
|
+
mature-equivalent milk) is used: the kit works from raw records.
|
|
115
|
+
|
|
116
|
+
## Good to know
|
|
117
|
+
|
|
118
|
+
- Weights are in pounds. Pens are compared with themselves and with the farm's other pens, never with published
|
|
119
|
+
targets.
|
|
120
|
+
- It's a teaching and planning tool, not veterinary or nutrition advice: check anything before it changes what cows are
|
|
121
|
+
fed.
|
|
122
|
+
- DairyComp 305 and EZfeed are Valley Ag Software's products; this project isn't affiliated with them.
|
|
123
|
+
|
|
124
|
+
## Cite it
|
|
125
|
+
|
|
126
|
+
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
127
|
+
https://doi.org/10.5281/zenodo.23493936 (every version; 0.2.0 is https://doi.org/10.5281/zenodo.23493937). GitHub's
|
|
128
|
+
"Cite this repository" button gives the same reference.
|
|
129
|
+
|
|
130
|
+
## Licence
|
|
131
|
+
|
|
132
|
+
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`). Questions and fixes:
|
|
133
|
+
[issues](https://github.com/padge01/dairy-data-tools/issues).
|
|
134
|
+
|
|
135
|
+
## Working on it
|
|
136
|
+
|
|
137
|
+
- `plugins/dairy-data-tools/`: the plugin people install (skills, sample herd, README, licences).
|
|
138
|
+
- `tools/dairy.py`, `tools/dairytools/` and the ration-change scripts in `tools/`: the one copy of the code;
|
|
139
|
+
`python tools/sync_scripts.py` copies it into each skill and writes this README. `pyproject.toml` builds the same
|
|
140
|
+
code as the `dairy-data-tools` package on PyPI.
|
|
141
|
+
- `tools/make_sample_herd.py`: writes the sample herd (fixed seeds, same files every run).
|
|
142
|
+
- `tests/`: `python -m pytest -q tests` (made-up files with known answers, the sample herd, the directory's file limits).
|
|
@@ -10,6 +10,9 @@ Figures and their sources:
|
|
|
10
10
|
- Predicted dry matter intake: National Academies of Sciences, Engineering, and Medicine (2021), Nutrient
|
|
11
11
|
Requirements of Dairy Cattle, 8th revised edition, equation 2-1.
|
|
12
12
|
- 21-day pregnancy rate: counted the way DairyComp 305's BREDSUM report counts it.
|
|
13
|
+
- What a ration holds, where the farm has no analyses of its own: the NASEM (2021) feed library, from the nasem_dairy
|
|
14
|
+
package (Fieguth, Innes and Cant). Those values are NASEM's and keep NASEM's terms (academic use with acknowledgment;
|
|
15
|
+
commercial use needs NASEM's release), not this project's licence: see dairytools/data/NOTICE-nasem.md.
|
|
13
16
|
|
|
14
17
|
DairyComp 305 and EZfeed are products of Valley Ag Software. This project is not affiliated with or endorsed
|
|
15
18
|
by Valley Ag Software. It reads only export files that the programs write for their users.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/plugins/dairy-data-tools/.claude-plugin/icon.png" alt="" width="96">
|
|
4
|
+
|
|
5
|
+
# Dairy Data Tools
|
|
6
|
+
|
|
7
|
+
### A dairy's own DairyComp and EZfeed records, read by your AI assistant.
|
|
8
|
+
|
|
9
|
+
**Attach a farm's exports. Ask in plain words. Get each pen's numbers, worked out by tested scripts, not guessed.**
|
|
10
|
+
|
|
11
|
+
[](https://pypi.org/project/dairy-data-tools/)
|
|
12
|
+
[](https://doi.org/10.5281/zenodo.23493936)
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
|
|
15
|
+
[Quick start](#quick-start) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
16
|
+
|
|
17
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D.
|
|
18
|
+
([Dairy Data Science](https://dairydatascience.com)).
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Quick start
|
|
25
|
+
|
|
26
|
+
### 1. Add it to Claude
|
|
27
|
+
|
|
28
|
+
In the Claude app (desktop or [claude.ai](https://claude.ai), on a paid plan):
|
|
29
|
+
|
|
30
|
+
1. **Settings > Capabilities**: turn on **Code execution and file creation**. The scripts run in Claude's own sandbox.
|
|
31
|
+
2. **Customize > Plugins > Add marketplace**: enter `padge01/dairy-data-tools`, then add **Dairy Data Tools**.
|
|
32
|
+
|
|
33
|
+
Coming soon to Claude's plugin directory, for one-click install.
|
|
34
|
+
|
|
35
|
+
### 2. Ask
|
|
36
|
+
|
|
37
|
+
Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](https://github.com/padge01/dairy-data-tools/tree/main/plugins/dairy-data-tools/sample-herd)) and
|
|
38
|
+
ask, for example:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
How is pen 21 doing? Did the ration change on 28 Sep work, or is it just the season?
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
45
|
+
|
|
46
|
+
<p align="center"><img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk and ECM per cow as a spread, days in milk, lactation, intake, ECM and intake by day with the ration change marked, what changed in the ration, ECM since the change against last fall, health events and feed cost." width="760"></p>
|
|
47
|
+
|
|
48
|
+
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
49
|
+
the farm's own item list.
|
|
50
|
+
|
|
51
|
+
## What you get
|
|
52
|
+
|
|
53
|
+
Each answer comes back as a card. These are from the sample herd.
|
|
54
|
+
|
|
55
|
+
<table>
|
|
56
|
+
<tr>
|
|
57
|
+
<td width="50%" valign="top"><b>A cow</b><br>Her milk this lactation, her place in the pen, what's happened to her.<br><br>
|
|
58
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-cow.png" alt="Cow 3004's card" width="100%"></td>
|
|
59
|
+
<td width="50%" valign="top"><b>Pen feed</b><br>Each pen's intake, efficiency, cost per cwt and ration side by side.<br><br>
|
|
60
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-pen-feed.png" alt="The pen feed card" width="100%"></td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td valign="top"><b>Visit review</b><br>Fresh cows, components, udder health, reproduction, who left, and what to check next.<br><br>
|
|
64
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-visit.png" alt="The visit review" width="100%"></td>
|
|
65
|
+
<td valign="top"><b>On a slide</b><br>Add <code>--slide</code>: bigger, fewer items, sized for a talk or a meeting.<br><br>
|
|
66
|
+
<img src="https://raw.githubusercontent.com/padge01/dairy-data-tools/main/docs/images/card-slide.png" alt="Pen 21's card as a slide" width="100%"></td>
|
|
67
|
+
</tr>
|
|
68
|
+
</table>
|
|
69
|
+
|
|
70
|
+
Herds that test get ECM from their tests. Herds that only weigh milk get each cow's daily weight, and the card says so.
|
|
71
|
+
Save the exports more than once and the cards join them: each day gives a pen's milk by day, each month gives a cow's
|
|
72
|
+
tests.
|
|
73
|
+
|
|
74
|
+
## Other apps
|
|
75
|
+
|
|
76
|
+
| Where | How |
|
|
77
|
+
| --- | --- |
|
|
78
|
+
| **Claude Code** | `claude plugin marketplace add padge01/dairy-data-tools`, then `claude plugin install dairy-data-tools@dairy-data-tools` |
|
|
79
|
+
| **Codex, Cursor, Gemini CLI** and other apps that read Agent Skills | `npx skills add padge01/dairy-data-tools` |
|
|
80
|
+
| **Python, no AI** (Python 3.10 or later, nothing else to install) | `pip install dairy-data-tools`, then `dairy-data-tools pen --folder "Farm Exports" --pen 21`; `dairy-data-tools --help` lists every question |
|
|
81
|
+
|
|
82
|
+
## What's in it
|
|
83
|
+
|
|
84
|
+
Ask in plain words; the right skill picks itself. No commands to learn.
|
|
85
|
+
|
|
86
|
+
| Skill | Ask it | What it does |
|
|
87
|
+
| --- | --- | --- |
|
|
88
|
+
| dairycomp-exports | "How do I get my cow list out of DairyComp?" "Write me a list of fresh cows in pen 1." "Which of these items shouldn't I use?" | The reports to save for this farm; DairyComp commands from plain English, checked against the farm's own items (SHOW, never LIST, which prints); what each item is |
|
|
89
|
+
| ezfeed-exports | "Which EZfeed reports do you need?" | The reports to save and how they're read |
|
|
90
|
+
| herd-explorer | "How is pen 21 doing?" "What happened to cow 3004?" | The herd, every pen, one pen, one cow: milk and ECM as a spread, events, lactations |
|
|
91
|
+
| pen-feed | "What's pen 21's feed efficiency and IOFC?" "Is the feed loaded as called for?" | Each pen's cows joined to its feed: intake per cow, ECM per lb DM, cost per cwt, IOFC, NASEM's predicted intake; loading accuracy, refusals, consistency |
|
|
92
|
+
| weekly-review | "Get me ready for Thursday's visit." "How are the fresh cows doing?" | Fresh cows, components and MUN, udder health, reproduction, who left, the pens' feed, and actions for the next visit |
|
|
93
|
+
| ration-change | "Did pen 21's ration change work, or is it the season?" | The week before against the latest week, with the same weeks last year or another pen taken out |
|
|
94
|
+
| balance-ration | "Balance pen 21's ration" | The free Dairy Ration Lab when it's connected; this kit never makes up a ration |
|
|
95
|
+
|
|
96
|
+
Plain Python, checked number for number against the author's earlier R version: every count says what it's out of,
|
|
97
|
+
milk is shown as a spread, and the farm is compared with itself, never with published targets.
|
|
98
|
+
|
|
99
|
+
**A sample herd** (`sample-herd/`): a made-up California dairy's exports, to try every skill before using a real farm's.
|
|
100
|
+
|
|
101
|
+
**Its neighbours**, separate tools from the same place: **BESTPRED** (USDA's best prediction of 305-day and
|
|
102
|
+
mature-equivalent milk; in this marketplace, and at `https://bestpred.dairydatascience.com/mcp`) and the **Dairy Ration
|
|
103
|
+
Lab** (a free ration balancer).
|
|
104
|
+
|
|
105
|
+
## What it does with your files
|
|
106
|
+
|
|
107
|
+
- The scripts read the export files where they are. They change nothing, keep nothing, and send nothing over the
|
|
108
|
+
internet. They use Python's standard library only.
|
|
109
|
+
- In Claude's chat the files you attach and the scripts run in Claude's own code sandbox. What the agent reads goes to
|
|
110
|
+
the AI company as part of the conversation, as anything you attach does, unless you run a model on your own computer.
|
|
111
|
+
- Event remarks, protocols and technician names are left out of what the scripts report, because they are free text
|
|
112
|
+
typed on the farm and could contain anything, including instructions aimed at an agent.
|
|
113
|
+
- Nothing reads DairyComp's own files or backups, and no figure DairyComp calculates for itself (such as 305-day or
|
|
114
|
+
mature-equivalent milk) is used: the kit works from raw records.
|
|
115
|
+
|
|
116
|
+
## Good to know
|
|
117
|
+
|
|
118
|
+
- Weights are in pounds. Pens are compared with themselves and with the farm's other pens, never with published
|
|
119
|
+
targets.
|
|
120
|
+
- It's a teaching and planning tool, not veterinary or nutrition advice: check anything before it changes what cows are
|
|
121
|
+
fed.
|
|
122
|
+
- DairyComp 305 and EZfeed are Valley Ag Software's products; this project isn't affiliated with them.
|
|
123
|
+
|
|
124
|
+
## Cite it
|
|
125
|
+
|
|
126
|
+
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
127
|
+
https://doi.org/10.5281/zenodo.23493936 (every version; 0.2.0 is https://doi.org/10.5281/zenodo.23493937). GitHub's
|
|
128
|
+
"Cite this repository" button gives the same reference.
|
|
129
|
+
|
|
130
|
+
## Licence
|
|
131
|
+
|
|
132
|
+
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`). Questions and fixes:
|
|
133
|
+
[issues](https://github.com/padge01/dairy-data-tools/issues).
|
{dairy_data_tools-0.2.0 → dairy_data_tools-0.2.2}/plugins/dairy-data-tools/sample-herd/README.md
RENAMED
|
@@ -6,6 +6,7 @@ herd simulator, with a ration-change story laid over it by `tools/make_sample_he
|
|
|
6
6
|
| File | What it is | From |
|
|
7
7
|
| --- | --- | --- |
|
|
8
8
|
| `cows_2026-10-28.csv`, `tests_2026-10-28.csv` | Every animal on 28 Oct 2026 (in the herd, sold and dead), and each cow's tests | DairyComp SHOW reports, saved as CSV |
|
|
9
|
+
| `tests_2026-09-28.csv`, `tests_2026-08-28.csv` | The same test report saved a month and two months earlier: together, each cow's tests over her lactation | DairyComp SHOW reports, saved monthly |
|
|
9
10
|
| `events_*.csv` | Three years of events, one file a year | DairyComp EVENTS |
|
|
10
11
|
| `items.csv` | The farm's item list | DairyComp ALTER\2 export |
|
|
11
12
|
| `intake_2026-08-15_2026-10-28.csv`, `intake_2025-08-15_2025-10-31.csv` | Each pen's daily feed, this fall and last | EZfeed Ingredient Intake Tgt vs Act by Pen |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dairy-data-tools"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.2"
|
|
4
4
|
description = "Read a dairy farm's DairyComp and EZfeed exports: the herd, each pen and cow, pen cows joined to pen feed, a weekly or visit review, and a ration change with the season taken out."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "Apache-2.0"
|