Skip to main content

AdHoc Ediwheel XML API port to Python

Project description

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.

This package is a fork from https://github.com/mrztti/python-ediwheel as it's archived and not maintained anymore

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)

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

ediwheel_ng-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ediwheel_ng-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file ediwheel_ng-0.1.1.tar.gz.

File metadata

  • Download URL: ediwheel_ng-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ediwheel_ng-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9767659d4f978684ac96c2a71f30676cc730e429ff96c2fc1d2b106b87677350
MD5 a277f47aa9383afd3f44af5689423c1a
BLAKE2b-256 e2efd81d55332bc5d5a69c4c65debb672280981ee33e9cbd9ca53f4058eb2392

See more details on using hashes here.

File details

Details for the file ediwheel_ng-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ediwheel_ng-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ediwheel_ng-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b91090afd8814d9eace1afaacd4d2807ece028e9b77e4215ffc5583cdc0438f4
MD5 105a208c667cea2c4501ccca9905db2f
BLAKE2b-256 16c6664230a0f74c019547c429b7a3b3c5bba3259a0f1764400d731384c8b599

See more details on using hashes here.

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