Metadata-Version: 2.4
Name: farmdirect-core
Version: 0.1.0
Summary: AI Core logic for FarmDirect App
Author: Shivay00001
License: BSL-1.1
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: requests
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# FarmDirect Core AI Library

This is the core intelligence engine for the **FarmDirect** platform. It powers the Android/iOS application with AI capabilities, running offline via Chaquopy or online via a backend API.

## Features

- **Demand Prediction**: Analyze market trends to predict product demand.
- **Smart Pricing**: Get AI-driven pricing recommendations based on competition.
- **Crop Health**: (In-development) Image analysis for disease detection.

## Installation

```bash
pip install farmdirect-core
```

## Usage

```python
from farmdirect_core.ai_engine import engine

# Predict Demand
result = engine.predict_demand('{"product_name": "Tomato", "price": 40, "season": "winter"}')
print(result)

# Get Pricing Advice
advice = engine.recommend_pricing("Tomato", 40.0, 45.0)
print(advice)
```

## License

This project is licensed under the **Business Source License 1.1 (BSL 1.1)**. See [LICENSE](LICENSE) for details.
