Metadata-Version: 2.4
Name: agriforest-crops
Version: 0.2.4
Summary: Extended crop info and irrigation suggestion library for Agri-Forest.
Author-email: Dixshant Valecha <x24205851@student.ncirl.ie>
License: MIT License
        
        Copyright (c) 2025 Dixshant Valecha
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/YourUser/agriforest-crops
Project-URL: Source, https://github.com/YourUser/agriforest-crops
Keywords: crop,agriculture,irrigation,ndvi,education
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Education
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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
```python
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)
```bash
pip install agriforest-crops
```

## Extend At Runtime
```python
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
