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.4.tar.gz (6.3 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.4-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agriforest_crops-0.2.4.tar.gz
  • Upload date:
  • Size: 6.3 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.4.tar.gz
Algorithm Hash digest
SHA256 5622aed4a7f657aeffc1e086562f87b80303a12bb6c97258e162801e7b7fe142
MD5 8427653f9f401ec36693bbe2a6f95606
BLAKE2b-256 b9def6fb39bc77f71a25cea9897f5617a87686b05b8ec8376f99af79b18d73fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agriforest_crops-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e51962363d4f6c270401ff1137237ed11f278f7a3bb6f7ea7d7bd8950e5d50c
MD5 a30ea896ad675ff7feb3781bb22015cd
BLAKE2b-256 e60fa25dc27d3e0b3b65adc3754b7a1d5e3244af2caef8a2a0c655369a7ccec3

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