Python EDIWHEEL - A Python package for data exchange in the tyre industry
DISCLAIMER: This is not an official EDIWHEEL package. It is a third-party implementation of the EDIWHEEL standard, and is in no way affiliated with any company or organization. Use at your own risk, no warranty is provided.
Summary
This package is a Python implementation of the EDIWHEEL standard for data exchange in the tyre industry. It is based on the EDIWHEEL standard.
This standard uses XML requests to make stock inquiries and to place orders. The responses are also in XML format.
Installation
The package can be installed using pip:
pip install ediwheel
Usage
To use this package, you will need to obtain API authentication credentials from a given supplier.
A config is instantiated as such:
from ediwheel import EdiConnectorConfig, EdiConnector
config = EdiConnectorConfig(
host="https:/some_api_url.com",
username="username",
password="password",
id="customer_id",
timeout_s=10,
)
connector = EdiConnector(config)
connector.enquiry("EAN_CODE", "MANUFACTURER_CODE")
There is also a method available for batch queries, which performs better for large updates of stock. Usually, the request will time out for large batches, therefore one must split large lists into smaller batches.
results = connector.batch_enquiry(list_of_EANs, list_of_manufacturer_codes)
for ean, stock, delivery_date in results:
print(ean, stock, delivery_date)
Metadata
Release files for ediwheel 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ediwheel-0.4.0.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ediwheel-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / ediwheel-0.4.0.tar.gz
| Download URL | ediwheel-0.4.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dfc1472d714dd4dba61ae4bbf14f733d189b63b1a10d6db019e1d8b891cf650
|
|
BLAKE2b-256 checksum How to use checksums |
b1cc4855ebe7cc39724d99144bb75b1fdf4d7665f7874f3772b5562197bb70d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.6
|
Release files / ediwheel-0.4.0-py3-none-any.whl
| Download URL | ediwheel-0.4.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48b921c17e14dfe181efac6b30e412839a1a09cd96ae631023025d273909c752
|
|
BLAKE2b-256 checksum How to use checksums |
9c771d52463d30368b28cf45354905a99608f8c73669c541c84e9845c499effd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.6
|