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-tech-grocery-client
Quick Start
Basic Setup
import asyncio
from yango_tech_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
- EXAMPLES.md - Comprehensive usage examples
- DEVELOPMENT.md - Development and contribution guide
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
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 yango_tech_grocery_client-1.1.0.tar.gz.
File metadata
- Download URL: yango_tech_grocery_client-1.1.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b8bd9ae8d02d80605c375dbfa6dd9cc841bfa88f74862857c457e7a42b48ba3
|
|
| MD5 |
9338abfb964468e470aec1b267097894
|
|
| BLAKE2b-256 |
3390298da7edf20f9666e73f30689fd01e8dfdd9c3851df3df5e7b72cb1a28ec
|
Provenance
The following attestation bundles were made for yango_tech_grocery_client-1.1.0.tar.gz:
Publisher:
publish.yml on yango-tech/yango-tech-grocery-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yango_tech_grocery_client-1.1.0.tar.gz -
Subject digest:
2b8bd9ae8d02d80605c375dbfa6dd9cc841bfa88f74862857c457e7a42b48ba3 - Sigstore transparency entry: 652153438
- Sigstore integration time:
-
Permalink:
yango-tech/yango-tech-grocery-client@378de13f4304b1ec583113f7bfdcf4ad01fe0f84 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/yango-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@378de13f4304b1ec583113f7bfdcf4ad01fe0f84 -
Trigger Event:
release
-
Statement type:
File details
Details for the file yango_tech_grocery_client-1.1.0-py3-none-any.whl.
File metadata
- Download URL: yango_tech_grocery_client-1.1.0-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f2a24fea848da7f7bb0e7d02b6435a948f7368201cc9891281d0e336c990cd7
|
|
| MD5 |
8544a887c5d6c31da1dbedeadfe917f2
|
|
| BLAKE2b-256 |
2cc10ca54354bbc1c1bfa34cec64d15248ecfbddb85e4e9091f1d97f9afeccf0
|
Provenance
The following attestation bundles were made for yango_tech_grocery_client-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on yango-tech/yango-tech-grocery-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yango_tech_grocery_client-1.1.0-py3-none-any.whl -
Subject digest:
5f2a24fea848da7f7bb0e7d02b6435a948f7368201cc9891281d0e336c990cd7 - Sigstore transparency entry: 652153457
- Sigstore integration time:
-
Permalink:
yango-tech/yango-tech-grocery-client@378de13f4304b1ec583113f7bfdcf4ad01fe0f84 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/yango-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@378de13f4304b1ec583113f7bfdcf4ad01fe0f84 -
Trigger Event:
release
-
Statement type: