Skip to main content

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"

Metadata

Release files for tme-eu 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tme-eu 0.3.2
File Size Uploaded Provenance Actions
tme_eu-0.3.2.tar.gz 16.5 kB Without provenance Details for tme_eu-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tme-eu 0.3.2
File Interpreter ABI Platform Actions
tme_eu-0.3.2-py3-none-any.whl Python 3 none any Details for tme_eu-0.3.2-py3-none-any.whl

Total release size: 33.5 kB

Release files / tme_eu-0.3.2.tar.gz

Download URL tme_eu-0.3.2.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0d207009dc561c32a71d58e99931318d28bf2dc2a4a8f0ba69c7bc4bfd6f91f9
BLAKE2b-256 checksum
How to use checksums
9082d96ba150b47a3bace2fe29a278d55ac77f40a00e75e007360238898a32f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / tme_eu-0.3.2-py3-none-any.whl

Download URL tme_eu-0.3.2-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e12228738a624ed781fb225421b7a787ef2b7a5b4d6f6726bb104c472ef4506e
BLAKE2b-256 checksum
How to use checksums
cd0fb1d24c2584df9d797d317f87241c9fea02203cfe12fd3a9afc8e1f122541
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Security for tme-eu 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page