agriforest-crops
Extended, dependency-free crop knowledge library for the Agri-Forest project.
Key Features
- 20+ built‑in crop profiles (water need, diseases, NDVI demo range, fertilizer hint).
- Generic fallback for unknown crops.
- Runtime extension:
add_crop(name, info_dict) - Bulk loading from JSON:
load_crops_from_json(path) - Partial/fuzzy search:
find_crops("whea") -> ["wheat"] - Irrigation suggestion:
suggest_irrigation(name, recent_rain_mm) - Weekly water plan from daily rain:
get_water_plan(name, [...]) - Growing Degree Days:
compute_gdd(base_temp, daily_temps) - Pure Python only (no third-party dependencies).
Quick Usage
from agriforest_crops import get_or_generic, suggest_irrigation, find_crops
print(find_crops("gra")) # ['grape']
info = get_or_generic("wheat")
print(info["fertilizer_hint"])
irrigation = suggest_irrigation("wheat", recent_rain_mm=12)
print(irrigation["recommended_irrigation_mm"])
Install (after publishing)
pip install agriforest-crops
Extend At Runtime
from agriforest_crops import add_crop
add_crop("supercrop", {
"description": "Experimental high-yield crop",
"water_need_mm_per_week": 33
})
Data Disclaimer
Values are heuristic educational placeholders. Calibrate with local agronomy data for production use.
License
MIT
Metadata
Release files for agriforest-crops 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agriforest_crops-0.2.4.tar.gz | 6.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agriforest_crops-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / agriforest_crops-0.2.4.tar.gz
| Download URL | agriforest_crops-0.2.4.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5622aed4a7f657aeffc1e086562f87b80303a12bb6c97258e162801e7b7fe142
|
|
BLAKE2b-256 checksum How to use checksums |
b9def6fb39bc77f71a25cea9897f5617a87686b05b8ec8376f99af79b18d73fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / agriforest_crops-0.2.4-py3-none-any.whl
| Download URL | agriforest_crops-0.2.4-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e51962363d4f6c270401ff1137237ed11f278f7a3bb6f7ea7d7bd8950e5d50c
|
|
BLAKE2b-256 checksum How to use checksums |
e60fa25dc27d3e0b3b65adc3754b7a1d5e3244af2caef8a2a0c655369a7ccec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for agriforest-crops 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.