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
)

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-1.0.0.tar.gz (16.0 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-1.0.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for yango_tech_grocery_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f821263fa254aaeb1cbcc473c4afc476a332a4a4ce8fcf57bf1d7fa14307d04b
MD5 4b78e2c9bfa58a1aa0d07de77c206ad6
BLAKE2b-256 612f96bff1ac31409ffab3d8b23d5fda7a7b6887fd4ed300e9846e81c7e1052f

See more details on using hashes here.

Provenance

The following attestation bundles were made for yango_tech_grocery_client-1.0.0.tar.gz:

Publisher: publish.yml on yango-tech/yango-tech-grocery-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for yango_tech_grocery_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69f9bd061306ffcd04a9309d4464368fb628d8e2523b1db2fb1b7250b6dd6696
MD5 5fe5659fa7089c88928fc4ed9e28133e
BLAKE2b-256 4508dbf19335f19a0f4540f9f0b029b1a88293acf1dc075ec2b8951184087d37

See more details on using hashes here.

Provenance

The following attestation bundles were made for yango_tech_grocery_client-1.0.0-py3-none-any.whl:

Publisher: publish.yml on yango-tech/yango-tech-grocery-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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