dairy-data-tools 0.2.2__tar.gz → 0.3.0__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.2 → dairy_data_tools-0.3.0}/CITATION.cff +2 -2
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/PKG-INFO +34 -28
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/README.md +33 -27
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/plugins/dairy-data-tools/README.md +21 -22
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/plugins/dairy-data-tools/sample-herd/README.md +1 -1
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/pyproject.toml +1 -1
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairyread.py +88 -155
- dairy_data_tools-0.3.0/tools/dairytools/__init__.py +106 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/cards.py +7 -6
- dairy_data_tools-0.3.0/tools/dairytools/cli.py +586 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/cowcard.py +4 -4
- dairy_data_tools-0.3.0/tools/dairytools/ecosystem.py +200 -0
- dairy_data_tools-0.3.0/tools/dairytools/epi.py +1163 -0
- dairy_data_tools-0.3.0/tools/dairytools/errors.py +23 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/explorer.py +37 -24
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/feeding.py +9 -15
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/herd.py +204 -46
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/io.py +154 -78
- dairy_data_tools-0.3.0/tools/dairytools/models.py +261 -0
- dairy_data_tools-0.3.0/tools/dairytools/py.typed +0 -0
- dairy_data_tools-0.3.0/tools/dairytools/repro.py +1010 -0
- dairy_data_tools-0.3.0/tools/dairytools/stats.py +555 -0
- dairy_data_tools-0.3.0/tools/dairytools/udder.py +384 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/weekly.py +107 -104
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/weeklycard.py +2 -1
- dairy_data_tools-0.2.2/tools/dairytools/__init__.py +0 -10
- dairy_data_tools-0.2.2/tools/dairytools/cli.py +0 -251
- dairy_data_tools-0.2.2/tools/dairytools/stats.py +0 -63
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/.gitignore +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/LICENSE +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/LICENSE-skills.md +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/NOTICE +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/plugins/dairy-data-tools/LICENSE +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/plugins/dairy-data-tools/LICENSE-skills.md +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/plugins/dairy-data-tools/NOTICE +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/commands.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/data/NOTICE-nasem.md +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/data/nasem_feeds.csv +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/nutrients.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/dairytools/reference.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/pen_milk.py +0 -0
- {dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/tools/ration_change.py +0 -0
|
@@ -11,9 +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.
|
|
14
|
+
version: 0.3.0
|
|
15
15
|
doi: 10.5281/zenodo.23493936
|
|
16
|
-
date-released: 2026-
|
|
16
|
+
date-released: 2026-11-27
|
|
17
17
|
license: Apache-2.0
|
|
18
18
|
repository-code: "https://github.com/padge01/dairy-data-tools"
|
|
19
19
|
keywords:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dairy-data-tools
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
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
|
|
@@ -19,7 +19,7 @@ Description-Content-Type: text/markdown
|
|
|
19
19
|
|
|
20
20
|
<div align="center">
|
|
21
21
|
|
|
22
|
-
<img src="
|
|
22
|
+
<img src="plugins/dairy-data-tools/.claude-plugin/icon.png" alt="" width="96">
|
|
23
23
|
|
|
24
24
|
# Dairy Data Tools
|
|
25
25
|
|
|
@@ -31,9 +31,9 @@ Description-Content-Type: text/markdown
|
|
|
31
31
|
[](https://doi.org/10.5281/zenodo.23493936)
|
|
32
32
|
[](LICENSE)
|
|
33
33
|
|
|
34
|
-
[Quick start](#quick-start) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
34
|
+
[Quick start](#quick-start) · [What you get](#what-you-get) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
35
35
|
|
|
36
|
-
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D
|
|
36
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D., DACVPM-Epi
|
|
37
37
|
([Dairy Data Science](https://dairydatascience.com)).
|
|
38
38
|
|
|
39
39
|
</div>
|
|
@@ -57,46 +57,48 @@ Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](http
|
|
|
57
57
|
ask, for example:
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
How is pen 21 doing?
|
|
60
|
+
How is pen 21 doing?
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
64
64
|
|
|
65
|
-
<p align="center"><img src="
|
|
65
|
+
<p align="center"><img src="docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk, days in milk, lactation and intake; ECM by day above intake split into aNDF, starch, CP and fat, with the ration change marked; the ration as bars; feed cost and health." width="760"></p>
|
|
66
66
|
|
|
67
67
|
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
68
68
|
the farm's own item list.
|
|
69
69
|
|
|
70
70
|
## What you get
|
|
71
71
|
|
|
72
|
-
Each answer comes back as a card. These are from the sample herd.
|
|
72
|
+
Each answer comes back as a card. These are from the sample herd. A six-page overview to share:
|
|
73
|
+
[dairy-data-tools-overview.pdf](https://github.com/padge01/dairy-data-tools/blob/main/docs/dairy-data-tools-overview.pdf).
|
|
73
74
|
|
|
74
75
|
<table>
|
|
75
76
|
<tr>
|
|
76
77
|
<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="
|
|
78
|
+
<img src="docs/images/card-cow.png" alt="Cow 3004's card" width="100%"></td>
|
|
78
79
|
<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="
|
|
80
|
+
<img src="docs/images/card-pen-feed.png" alt="The pen feed card" width="100%"></td>
|
|
80
81
|
</tr>
|
|
81
82
|
<tr>
|
|
82
83
|
<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="
|
|
84
|
+
<img src="docs/images/card-visit.png" alt="The visit review" width="100%"></td>
|
|
84
85
|
<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="
|
|
86
|
+
<img src="docs/images/card-slide.png" alt="Pen 21's card as a slide" width="100%"></td>
|
|
86
87
|
</tr>
|
|
87
88
|
</table>
|
|
88
89
|
|
|
89
90
|
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
|
|
91
|
-
tests.
|
|
91
|
+
Save the exports every day or every month and the cards join them into each pen's and each cow's milk over time.
|
|
92
92
|
|
|
93
93
|
## Other apps
|
|
94
94
|
|
|
95
95
|
| Where | How |
|
|
96
96
|
| --- | --- |
|
|
97
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 |
|
|
99
|
-
| **Python, no AI** (Python 3.10 or later, nothing else
|
|
98
|
+
| **Codex, Cursor, Gemini CLI** and other apps that read Agent Skills | Add the skills in this repository the way your app adds Agent Skills |
|
|
99
|
+
| **Python, no AI** (Python 3.10 or later, nothing else needed) | The same code is the [dairy-data-tools package on PyPI](https://pypi.org/project/dairy-data-tools/). With it on your computer: `dairy-data-tools pen --folder "Farm Exports" --pen 21`; `dairy-data-tools --help` lists every question |
|
|
100
|
+
|
|
101
|
+
The commands for the last two are in [the repository's README](https://github.com/padge01/dairy-data-tools#from-the-command-line).
|
|
100
102
|
|
|
101
103
|
## What's in it
|
|
102
104
|
|
|
@@ -109,17 +111,14 @@ Ask in plain words; the right skill picks itself. No commands to learn.
|
|
|
109
111
|
| 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 |
|
|
110
112
|
| 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 |
|
|
111
113
|
| 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 |
|
|
112
|
-
| ration-change | "Did pen 21's ration change work
|
|
113
|
-
| balance-ration | "Balance pen 21's ration" |
|
|
114
|
-
|
|
115
|
-
Plain Python, checked number for number against the author's earlier R version: every count says what it's out of,
|
|
116
|
-
milk is shown as a spread, and the farm is compared with itself, never with published targets.
|
|
114
|
+
| ration-change | "Did pen 21's ration change work?" | The weeks before against the weeks after, with the same weeks last year or another pen taken out |
|
|
115
|
+
| balance-ration | "Balance pen 21's ration" | Runs the free Dairy Ration Lab when it's connected; this kit never makes up a ration |
|
|
117
116
|
|
|
118
117
|
**A sample herd** (`sample-herd/`): a made-up California dairy's exports, to try every skill before using a real farm's.
|
|
119
118
|
|
|
120
|
-
**
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
**Also from Dairy Data Science:** the **Dairy Ration Lab**, a free ration balancer, at https://lab.dairydatascience.com
|
|
120
|
+
(for agents: `https://mcp.dairydatascience.com`, sign in with Google), and **BESTPRED**, USDA's best prediction of
|
|
121
|
+
305-day and mature-equivalent milk, in this marketplace and at `https://bestpred.dairydatascience.com/mcp`.
|
|
123
122
|
|
|
124
123
|
## What it does with your files
|
|
125
124
|
|
|
@@ -134,8 +133,8 @@ Lab** (a free ration balancer).
|
|
|
134
133
|
|
|
135
134
|
## Good to know
|
|
136
135
|
|
|
137
|
-
- Weights are in pounds.
|
|
138
|
-
targets.
|
|
136
|
+
- Weights are in pounds. Every count says what it's out of, and pens are compared with themselves and with the farm's
|
|
137
|
+
other pens, never with published targets.
|
|
139
138
|
- It's a teaching and planning tool, not veterinary or nutrition advice: check anything before it changes what cows are
|
|
140
139
|
fed.
|
|
141
140
|
- DairyComp 305 and EZfeed are Valley Ag Software's products; this project isn't affiliated with them.
|
|
@@ -143,14 +142,21 @@ Lab** (a free ration balancer).
|
|
|
143
142
|
## Cite it
|
|
144
143
|
|
|
145
144
|
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
146
|
-
https://doi.org/10.5281/zenodo.23493936
|
|
147
|
-
"Cite this repository" button gives the same reference.
|
|
145
|
+
https://doi.org/10.5281/zenodo.23493936. GitHub's "Cite this repository" button gives the same reference.
|
|
148
146
|
|
|
149
147
|
## Licence
|
|
150
148
|
|
|
151
|
-
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`).
|
|
149
|
+
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`). The NASEM (2021) feed values
|
|
150
|
+
keep NASEM's own terms (see `NOTICE`). Questions and fixes:
|
|
152
151
|
[issues](https://github.com/padge01/dairy-data-tools/issues).
|
|
153
152
|
|
|
153
|
+
## From the command line
|
|
154
|
+
|
|
155
|
+
| Where | Command |
|
|
156
|
+
| --- | --- |
|
|
157
|
+
| **Codex, Cursor, Gemini CLI** and other apps that read Agent Skills | `npx skills add padge01/dairy-data-tools` |
|
|
158
|
+
| **Python, no AI** | `pip install dairy-data-tools` |
|
|
159
|
+
|
|
154
160
|
## Working on it
|
|
155
161
|
|
|
156
162
|
- `plugins/dairy-data-tools/`: the plugin people install (skills, sample herd, README, licences).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="
|
|
3
|
+
<img src="plugins/dairy-data-tools/.claude-plugin/icon.png" alt="" width="96">
|
|
4
4
|
|
|
5
5
|
# Dairy Data Tools
|
|
6
6
|
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
[](https://doi.org/10.5281/zenodo.23493936)
|
|
13
13
|
[](LICENSE)
|
|
14
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)
|
|
15
|
+
[Quick start](#quick-start) · [What you get](#what-you-get) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
16
16
|
|
|
17
|
-
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D
|
|
17
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D., DACVPM-Epi
|
|
18
18
|
([Dairy Data Science](https://dairydatascience.com)).
|
|
19
19
|
|
|
20
20
|
</div>
|
|
@@ -38,46 +38,48 @@ Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](http
|
|
|
38
38
|
ask, for example:
|
|
39
39
|
|
|
40
40
|
```text
|
|
41
|
-
How is pen 21 doing?
|
|
41
|
+
How is pen 21 doing?
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
45
45
|
|
|
46
|
-
<p align="center"><img src="
|
|
46
|
+
<p align="center"><img src="docs/images/pen-card.png" alt="Pen 21's card from the sample herd: milk, days in milk, lactation and intake; ECM by day above intake split into aNDF, starch, CP and fat, with the ration change marked; the ration as bars; feed cost and health." width="760"></p>
|
|
47
47
|
|
|
48
48
|
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
49
49
|
the farm's own item list.
|
|
50
50
|
|
|
51
51
|
## What you get
|
|
52
52
|
|
|
53
|
-
Each answer comes back as a card. These are from the sample herd.
|
|
53
|
+
Each answer comes back as a card. These are from the sample herd. A six-page overview to share:
|
|
54
|
+
[dairy-data-tools-overview.pdf](https://github.com/padge01/dairy-data-tools/blob/main/docs/dairy-data-tools-overview.pdf).
|
|
54
55
|
|
|
55
56
|
<table>
|
|
56
57
|
<tr>
|
|
57
58
|
<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="
|
|
59
|
+
<img src="docs/images/card-cow.png" alt="Cow 3004's card" width="100%"></td>
|
|
59
60
|
<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="
|
|
61
|
+
<img src="docs/images/card-pen-feed.png" alt="The pen feed card" width="100%"></td>
|
|
61
62
|
</tr>
|
|
62
63
|
<tr>
|
|
63
64
|
<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="
|
|
65
|
+
<img src="docs/images/card-visit.png" alt="The visit review" width="100%"></td>
|
|
65
66
|
<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="
|
|
67
|
+
<img src="docs/images/card-slide.png" alt="Pen 21's card as a slide" width="100%"></td>
|
|
67
68
|
</tr>
|
|
68
69
|
</table>
|
|
69
70
|
|
|
70
71
|
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
|
|
72
|
-
tests.
|
|
72
|
+
Save the exports every day or every month and the cards join them into each pen's and each cow's milk over time.
|
|
73
73
|
|
|
74
74
|
## Other apps
|
|
75
75
|
|
|
76
76
|
| Where | How |
|
|
77
77
|
| --- | --- |
|
|
78
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 |
|
|
80
|
-
| **Python, no AI** (Python 3.10 or later, nothing else
|
|
79
|
+
| **Codex, Cursor, Gemini CLI** and other apps that read Agent Skills | Add the skills in this repository the way your app adds Agent Skills |
|
|
80
|
+
| **Python, no AI** (Python 3.10 or later, nothing else needed) | The same code is the [dairy-data-tools package on PyPI](https://pypi.org/project/dairy-data-tools/). With it on your computer: `dairy-data-tools pen --folder "Farm Exports" --pen 21`; `dairy-data-tools --help` lists every question |
|
|
81
|
+
|
|
82
|
+
The commands for the last two are in [the repository's README](https://github.com/padge01/dairy-data-tools#from-the-command-line).
|
|
81
83
|
|
|
82
84
|
## What's in it
|
|
83
85
|
|
|
@@ -90,17 +92,14 @@ Ask in plain words; the right skill picks itself. No commands to learn.
|
|
|
90
92
|
| 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
93
|
| 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
94
|
| 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
|
|
94
|
-
| balance-ration | "Balance pen 21's 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.
|
|
95
|
+
| ration-change | "Did pen 21's ration change work?" | The weeks before against the weeks after, with the same weeks last year or another pen taken out |
|
|
96
|
+
| balance-ration | "Balance pen 21's ration" | Runs the free Dairy Ration Lab when it's connected; this kit never makes up a ration |
|
|
98
97
|
|
|
99
98
|
**A sample herd** (`sample-herd/`): a made-up California dairy's exports, to try every skill before using a real farm's.
|
|
100
99
|
|
|
101
|
-
**
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
**Also from Dairy Data Science:** the **Dairy Ration Lab**, a free ration balancer, at https://lab.dairydatascience.com
|
|
101
|
+
(for agents: `https://mcp.dairydatascience.com`, sign in with Google), and **BESTPRED**, USDA's best prediction of
|
|
102
|
+
305-day and mature-equivalent milk, in this marketplace and at `https://bestpred.dairydatascience.com/mcp`.
|
|
104
103
|
|
|
105
104
|
## What it does with your files
|
|
106
105
|
|
|
@@ -115,8 +114,8 @@ Lab** (a free ration balancer).
|
|
|
115
114
|
|
|
116
115
|
## Good to know
|
|
117
116
|
|
|
118
|
-
- Weights are in pounds.
|
|
119
|
-
targets.
|
|
117
|
+
- Weights are in pounds. Every count says what it's out of, and pens are compared with themselves and with the farm's
|
|
118
|
+
other pens, never with published targets.
|
|
120
119
|
- It's a teaching and planning tool, not veterinary or nutrition advice: check anything before it changes what cows are
|
|
121
120
|
fed.
|
|
122
121
|
- DairyComp 305 and EZfeed are Valley Ag Software's products; this project isn't affiliated with them.
|
|
@@ -124,14 +123,21 @@ Lab** (a free ration balancer).
|
|
|
124
123
|
## Cite it
|
|
125
124
|
|
|
126
125
|
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
127
|
-
https://doi.org/10.5281/zenodo.23493936
|
|
128
|
-
"Cite this repository" button gives the same reference.
|
|
126
|
+
https://doi.org/10.5281/zenodo.23493936. GitHub's "Cite this repository" button gives the same reference.
|
|
129
127
|
|
|
130
128
|
## Licence
|
|
131
129
|
|
|
132
|
-
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`).
|
|
130
|
+
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`). The NASEM (2021) feed values
|
|
131
|
+
keep NASEM's own terms (see `NOTICE`). Questions and fixes:
|
|
133
132
|
[issues](https://github.com/padge01/dairy-data-tools/issues).
|
|
134
133
|
|
|
134
|
+
## From the command line
|
|
135
|
+
|
|
136
|
+
| Where | Command |
|
|
137
|
+
| --- | --- |
|
|
138
|
+
| **Codex, Cursor, Gemini CLI** and other apps that read Agent Skills | `npx skills add padge01/dairy-data-tools` |
|
|
139
|
+
| **Python, no AI** | `pip install dairy-data-tools` |
|
|
140
|
+
|
|
135
141
|
## Working on it
|
|
136
142
|
|
|
137
143
|
- `plugins/dairy-data-tools/`: the plugin people install (skills, sample herd, README, licences).
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
[](https://doi.org/10.5281/zenodo.23493936)
|
|
13
13
|
[](LICENSE)
|
|
14
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)
|
|
15
|
+
[Quick start](#quick-start) · [What you get](#what-you-get) · [Other apps](#other-apps) · [What's in it](#whats-in-it) · [Your files](#what-it-does-with-your-files)
|
|
16
16
|
|
|
17
|
-
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D
|
|
17
|
+
Free, for dairy vets, nutritionists and consultants. By Pádraig Lucey, MVB, MPVM, Ph.D., DACVPM-Epi
|
|
18
18
|
([Dairy Data Science](https://dairydatascience.com)).
|
|
19
19
|
|
|
20
20
|
</div>
|
|
@@ -38,19 +38,20 @@ Attach the farm's DairyComp and EZfeed exports (or this kit's [sample herd](http
|
|
|
38
38
|
ask, for example:
|
|
39
39
|
|
|
40
40
|
```text
|
|
41
|
-
How is pen 21 doing?
|
|
41
|
+
How is pen 21 doing?
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
You get the figures, where each came from and what it's out of, and a card like this one:
|
|
45
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
|
|
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, days in milk, lactation and intake; ECM by day above intake split into aNDF, starch, CP and fat, with the ration change marked; the ration as bars; feed cost and health." width="760"></p>
|
|
47
47
|
|
|
48
48
|
No DairyComp export yet? Ask *"What do I type in DairyComp to export what you need?"*. It writes the SHOW commands from
|
|
49
49
|
the farm's own item list.
|
|
50
50
|
|
|
51
51
|
## What you get
|
|
52
52
|
|
|
53
|
-
Each answer comes back as a card. These are from the sample herd.
|
|
53
|
+
Each answer comes back as a card. These are from the sample herd. A six-page overview to share:
|
|
54
|
+
[dairy-data-tools-overview.pdf](https://github.com/padge01/dairy-data-tools/blob/main/docs/dairy-data-tools-overview.pdf).
|
|
54
55
|
|
|
55
56
|
<table>
|
|
56
57
|
<tr>
|
|
@@ -68,16 +69,17 @@ Each answer comes back as a card. These are from the sample herd.
|
|
|
68
69
|
</table>
|
|
69
70
|
|
|
70
71
|
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
|
|
72
|
-
tests.
|
|
72
|
+
Save the exports every day or every month and the cards join them into each pen's and each cow's milk over time.
|
|
73
73
|
|
|
74
74
|
## Other apps
|
|
75
75
|
|
|
76
76
|
| Where | How |
|
|
77
77
|
| --- | --- |
|
|
78
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 |
|
|
80
|
-
| **Python, no AI** (Python 3.10 or later, nothing else
|
|
79
|
+
| **Codex, Cursor, Gemini CLI** and other apps that read Agent Skills | Add the skills in this repository the way your app adds Agent Skills |
|
|
80
|
+
| **Python, no AI** (Python 3.10 or later, nothing else needed) | The same code is the [dairy-data-tools package on PyPI](https://pypi.org/project/dairy-data-tools/). With it on your computer: `dairy-data-tools pen --folder "Farm Exports" --pen 21`; `dairy-data-tools --help` lists every question |
|
|
81
|
+
|
|
82
|
+
The commands for the last two are in [the repository's README](https://github.com/padge01/dairy-data-tools#from-the-command-line).
|
|
81
83
|
|
|
82
84
|
## What's in it
|
|
83
85
|
|
|
@@ -90,17 +92,14 @@ Ask in plain words; the right skill picks itself. No commands to learn.
|
|
|
90
92
|
| 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
93
|
| 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
94
|
| 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
|
|
94
|
-
| balance-ration | "Balance pen 21's 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.
|
|
95
|
+
| ration-change | "Did pen 21's ration change work?" | The weeks before against the weeks after, with the same weeks last year or another pen taken out |
|
|
96
|
+
| balance-ration | "Balance pen 21's ration" | Runs the free Dairy Ration Lab when it's connected; this kit never makes up a ration |
|
|
98
97
|
|
|
99
98
|
**A sample herd** (`sample-herd/`): a made-up California dairy's exports, to try every skill before using a real farm's.
|
|
100
99
|
|
|
101
|
-
**
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
**Also from Dairy Data Science:** the **Dairy Ration Lab**, a free ration balancer, at https://lab.dairydatascience.com
|
|
101
|
+
(for agents: `https://mcp.dairydatascience.com`, sign in with Google), and **BESTPRED**, USDA's best prediction of
|
|
102
|
+
305-day and mature-equivalent milk, in this marketplace and at `https://bestpred.dairydatascience.com/mcp`.
|
|
104
103
|
|
|
105
104
|
## What it does with your files
|
|
106
105
|
|
|
@@ -115,8 +114,8 @@ Lab** (a free ration balancer).
|
|
|
115
114
|
|
|
116
115
|
## Good to know
|
|
117
116
|
|
|
118
|
-
- Weights are in pounds.
|
|
119
|
-
targets.
|
|
117
|
+
- Weights are in pounds. Every count says what it's out of, and pens are compared with themselves and with the farm's
|
|
118
|
+
other pens, never with published targets.
|
|
120
119
|
- It's a teaching and planning tool, not veterinary or nutrition advice: check anything before it changes what cows are
|
|
121
120
|
fed.
|
|
122
121
|
- DairyComp 305 and EZfeed are Valley Ag Software's products; this project isn't affiliated with them.
|
|
@@ -124,10 +123,10 @@ Lab** (a free ration balancer).
|
|
|
124
123
|
## Cite it
|
|
125
124
|
|
|
126
125
|
If it helps your work, please cite it: Lucey, P. (2026). *Dairy Data Tools* [software]. Zenodo.
|
|
127
|
-
https://doi.org/10.5281/zenodo.23493936
|
|
128
|
-
"Cite this repository" button gives the same reference.
|
|
126
|
+
https://doi.org/10.5281/zenodo.23493936. GitHub's "Cite this repository" button gives the same reference.
|
|
129
127
|
|
|
130
128
|
## Licence
|
|
131
129
|
|
|
132
|
-
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`).
|
|
130
|
+
Code under Apache-2.0 (`LICENSE`); the skills' text under CC BY 4.0 (`LICENSE-skills.md`). The NASEM (2021) feed values
|
|
131
|
+
keep NASEM's own terms (see `NOTICE`). Questions and fixes:
|
|
133
132
|
[issues](https://github.com/padge01/dairy-data-tools/issues).
|
{dairy_data_tools-0.2.2 → dairy_data_tools-0.3.0}/plugins/dairy-data-tools/sample-herd/README.md
RENAMED
|
@@ -6,7 +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
|
-
| `
|
|
9
|
+
| `tests_2025-12-28.csv` ... `tests_2026-09-28.csv` | The same test report saved each month for ten months: together, each cow's tests over her lactation | DairyComp SHOW reports, saved monthly |
|
|
10
10
|
| `events_*.csv` | Three years of events, one file a year | DairyComp EVENTS |
|
|
11
11
|
| `items.csv` | The farm's item list | DairyComp ALTER\2 export |
|
|
12
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.
|
|
3
|
+
version = "0.3.0"
|
|
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"
|