Skip to main content

A Python client library for interacting with the Yango Tech Grocery API

Project description

Yango Tech Grocery API Client

A Python client library for interacting with the Yango Tech Grocery API. This library provides a comprehensive interface for managing orders, products, prices, stocks, and other grocery-related operations.

Features

  • Order Management: Create, update, cancel, and track orders
  • Product Management: Create and update products, manage product media and VAT
  • Price Management: Handle price lists, prices, and discounts
  • Stock Management: Update and retrieve stock information
  • Store Management: Get store information
  • Receipt Management: Upload and retrieve receipts
  • Event Handling: Process order events and state changes
  • Async Support: Full async/await support for all operations
  • Error Handling: Comprehensive error handling with retry logic

Installation

pip install yango-grocery-client

Quick Start

Basic Setup

import asyncio
from yango_grocery_client import YangoClient

async def main():
    # Initialize the client
    client = YangoClient(
        domain="https://api.retailtech.yango.com",
        auth_token="your_auth_token_here"
    )
    
    # Your API calls here
    stores = await client.get_stores()
    print(f"Found {len(stores)} stores")

# Run the async function
asyncio.run(main())

For comprehensive examples, see EXAMPLES.md.

Configuration

Client Initialization Options

client = YangoClient(
    domain="https://api.retailtech.yango.com",  # API domain
    auth_token="your_auth_token",           # Authentication token
    error_handler=custom_error_handler,     # Optional custom error handler
    proxy="http://proxy.example.com:8080"   # Optional proxy configuration
)

Environment Variables

You can also configure the client using environment variables:

export YANGO_DOMAIN="https://api.retailtech.yango.com"
export YANGO_AUTH_TOKEN="your_auth_token"

Documentation

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

yango_tech_grocery_client-0.1.3.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

yango_tech_grocery_client-0.1.3-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file yango_tech_grocery_client-0.1.3.tar.gz.

File metadata

File hashes

Hashes for yango_tech_grocery_client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e45d2d7efc76c373cc3cb286ff364905595c59ef0cc8af8b58c426aceae43414
MD5 db237f65e0052b5ea87450164c1ed477
BLAKE2b-256 4a919414d8b6f283d624481c9b5e6a0a7f53faf4a2c52a0dfc55240c3a6c0b44

See more details on using hashes here.

File details

Details for the file yango_tech_grocery_client-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for yango_tech_grocery_client-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e924548337a9e844f7b79f366ec36bb29c03bc235b69bd3bcdb5cc2ca8f9a9f8
MD5 213bac3822d703551ffe56f20bd301b5
BLAKE2b-256 5a0d089ba90cf652fb7217d964c7a060c6e2e8511d2af330cb4f33a906c67231

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