Skip to main content

Extended crop info and irrigation suggestion library for Agri-Forest.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agriforest_crops-0.2.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agriforest_crops-0.2.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file agriforest_crops-0.2.3.tar.gz.

File metadata

  • Download URL: agriforest_crops-0.2.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for agriforest_crops-0.2.3.tar.gz
Algorithm Hash digest
SHA256 08f69400af99eedee7d89c34350913b866df0d7ea3d273e91c101d64b5f79674
MD5 13691528c60b6c39420ad1c58537fa58
BLAKE2b-256 94d016d561f3b0657846d031383b7082c22064347e28fd15c5dd2b523328842b

See more details on using hashes here.

File details

Details for the file agriforest_crops-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for agriforest_crops-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3ceafa5751ced68e0b56f2cdee7b73d681b0a00c4e62b75ca9e8d4ea47dfe39
MD5 02a349420a2ae6829e20f7ba2b1d41f7
BLAKE2b-256 121acf7ec8885027e51e02a143e160af8a70da7206a6c38a15d50e3fa35f6d0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page