Api for TME.eu
Project description
TME.eu API Client
from tmeapi import TmeApi, Ok, ErrorValidation, ErrorSignature
import os
api = TmeApi(os.environ["TME_KEY"].strip(), os.environ["TME_APP_SECRET"].strip())
print(api.autocomplete("555"))
print(api.get_prices(["EL-MAKR04120PA-TC"]))
print(api.get_prices_and_stock(["EL-MAKR04120PA-TC"]))
resp = api.get_categories(tree=True, category_id=112140)
match resp:
case Ok(Data=categories):
products = api.get_symbols(categories.CategoryTree.Id).unwrap()
product_details = api.get_products([products.SymbolList[0]]).unwrap()
print(product_details.ProductList[0])
case ErrorSignature() | ErrorValidation():
print(f"Failed with {resp}")
NOTE: currently a limited api/typing surface, if you encounter any errors please submit an issue
[project.urls] Homepage = "https://github.com/i404788/tme-api" Repository = "https://github.com/i404788/tme-api"
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
tme_eu-0.3.0.tar.gz
(16.3 kB
view details)
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
tme_eu-0.3.0-py3-none-any.whl
(16.8 kB
view details)
File details
Details for the file tme_eu-0.3.0.tar.gz.
File metadata
- Download URL: tme_eu-0.3.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
951cd8492a417e62005455a7a5e08626e612037115c736f671d644a0485b0c9b
|
|
| MD5 |
18d13f528bdb900e0fe3fab208235e97
|
|
| BLAKE2b-256 |
57868ea7cc21e18cbffa6f9868376b8f51b08270c25aa563b7a8c8f85adaa52d
|
File details
Details for the file tme_eu-0.3.0-py3-none-any.whl.
File metadata
- Download URL: tme_eu-0.3.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e55d441a0f7ee2eb878ad08b0a69b7caa1a886c4a4dcbc18b58aa9a0f14e24
|
|
| MD5 |
28990873e50831785d6d96eeb38d9c4c
|
|
| BLAKE2b-256 |
d584336e669f4a8f1cda9ac1fcf9eaa23e2d416d594c8768149231089128028b
|