Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pashudhan_ai-0.1.5.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pashudhan_ai-0.1.5-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pashudhan_ai-0.1.5.tar.gz.

File metadata

  • Download URL: pashudhan_ai-0.1.5.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pashudhan_ai-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4ce447af22abf9c8a2dfed81c64c46424bf703f944ae0facef76a5a7639ff3da
MD5 43f7d1afc6c468cb84a532ce7a44a4a6
BLAKE2b-256 4af16665568fdedeedc569f5814874514bd71af1f10b11bc8bb1cd0231e5a378

See more details on using hashes here.

File details

Details for the file pashudhan_ai-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pashudhan_ai-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pashudhan_ai-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 396547276a57c74fcb8b134e7b61c7d3e7da2753517037e17b6e6f99d825871c
MD5 f66068a6d706ee8dcbf382277acf64b6
BLAKE2b-256 1e7f9c04b8b64cc66853677e53a4379373f2fc542dcb46eecfe0fd9c79845dfd

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