API Reference Cheat Sheet

Quick reference for all Python SDK and CLI commands with direct links to examples

Python SDK Reference

Quick reference for the avocavo-nutrition Python package

Authentication

av.login()

OAuth login with secure storage

av.logout()

Clear stored credentials

av.get_current_user()

Get current user info

API Key Management

av.list_api_keys()

List all stored API keys

av.create_api_key()

Create new API key

av.switch_to_api_key()

Switch active API key

av.delete_api_key()

Delete API key

Nutrition Analysis

av.analyze_ingredient()

Analyze single ingredient

av.analyze_recipe()

Full recipe with servings

av.analyze()

Alias for ingredient analysis

NutritionAPI()

Direct client with API key

CLI Reference

Quick reference for the avocavo-nutrition-cli commands

Authentication

avocavo login

OAuth login (Google)

avocavo logout

Clear stored credentials

avocavo status

Login status & account info

API Key Management

avocavo keys list

List all stored keys

avocavo keys create

Create new API key

avocavo keys switch

Switch active API key

avocavo keys delete

Delete stored API key

Nutrition Analysis

avocavo ingredient

Analyze single ingredient

avocavo recipe

Interactive recipe analysis

avocavo batch

Multiple ingredients from file

avocavo health

Check API health status

Python Quick Start

# Install
pip install avocavo-nutrition

# Quick start
import avocavo as av
av.login()
result = av.analyze("1 cup rice")
print(result.calories)

CLI Quick Start

# Install
npm install -g avocavo-nutrition-cli

# Quick start
avocavo login
avocavo ingredient "1 cup rice"
avocavo recipe -s 4

Need help? Check out our comprehensive documentation or contact support.