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

Uploaded Python 3

File details

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

File metadata

  • Download URL: agriforest_crops-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a0a2b50f8261e7cb950119722b1cc00e002f3f9d9dada30cff4684d75cd1076d
MD5 0cdd54d663e429ff13bebc962a35aafb
BLAKE2b-256 10b2e82bb2d98e492800d4a864ff1c56e4f13c389b65330339e1a36b8940fe65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agriforest_crops-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cdba465e289233ab99b3b4b5822f5aabe7ceeb75045678d461ccf9177fdc420
MD5 2a71a9857b900f94e56c1f1d937df3ec
BLAKE2b-256 97a31172fb35624a9af89fc63b6d12630d6dec96d4a1c4f830550d3f6fa6bb25

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