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.2.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.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agriforest_crops-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9b9b06aa1f98153badfdae9c92fe66ef6e2333e74a3e70339d53c065ec832689
MD5 30df129e6dba18d15f5d041b3fa4332c
BLAKE2b-256 fabacdd7db49e7536315cafbd8c983084553fd7d82016e4d9669bcc2cb96d91c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agriforest_crops-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08a4995c65879c2244ef35f501fb3d51d2146f9fb055e19e0cde695ae4e226ea
MD5 4fa8887f6a6fc7959493f8d427ca3d96
BLAKE2b-256 cf03d4bc8daecb96879e9e06218b58777d35b20926d349a0c4c3d0608b2b6e20

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