Official Python SDK for the Pashudhan Nutri AI API
Project description
Pashudhan Nutri AI — Official Python SDK
The official Python client library for the Pashudhan Nutri AI API.
This SDK provides a clean, typed interface to generate NASEM 2021 compliant dairy rations using Linear Programming. Zero formulation logic is exposed — all equations, ingredient databases, and AI models run securely on our backend.
Installation
pip install pashudhan_ai
Quickstart
import pashudhan_ai
# Initialize the client with your API key
client = pashudhan_ai.Client(api_key="pd_your_api_key_here")
# Generate a ration
result = client.formulate(
animal_type="cow",
breed="HF_crossbred",
body_weight_kg=450,
milk_yield_kg_day=18,
fat_pct=3.5,
production_stage="lactating",
state="Punjab",
month=5
)
# Access the least cost option
print(f"Total Cost: ₹{result.least_cost.total_cost_inr}/day")
for ingredient in result.least_cost.ingredients:
print(f"{ingredient.name}: {ingredient.kg_fresh_day} kg")
Features
- Fully Typed: Data models for all API responses.
- Secure: Only acts as a wrapper for HTTP requests.
- Lightweight: Only relies on
requests.
Documentation
For full API reference, visit the Developer Portal.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pashudhan_ai-0.1.6.tar.gz.
File metadata
- Download URL: pashudhan_ai-0.1.6.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e8df20e372803e0fc2f2d9159a3f04f4202841394e4de239e519216e98823af
|
|
| MD5 |
490e010afcf044d079364f18fa957c29
|
|
| BLAKE2b-256 |
6f1bedc8faaf6b9a35a7b09cd3a904f5808e2b4bbbd185fb4bc6019a35115a57
|
File details
Details for the file pashudhan_ai-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pashudhan_ai-0.1.6-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7d8d0699e7e1506688f5a645ef3edb732250e42196c046911cfb5f85d25ed41
|
|
| MD5 |
b6f8bb558668e14d56d4da4303f89577
|
|
| BLAKE2b-256 |
63cb03a20085039a0885fe153b431237d981ffe73b0b2ba9a456b4936f8664f3
|