A Python library for interacting with DHL Express API
Project description
Project Description
With dhl-express, you can use DHL API to create and manage your shipping labels.
Requirements
- Python (3.8 or higher)
Installation
Install using pip
pip install dhl-express
Usage
Use the DHLService
class to create a new instance of the service.
from dhl_express import DHLService
service = DHLService(
api_key='YOUR_API_KEY',
api_secret='YOUR_API_SECRET',
test_mode=True
)
Validate shipment address using the validate_address
method.
service.validate_address(
country_code='DE',
postal_code='12345',
city='Berlin',
street='Teststrasse',
house_number='1'
)
Create a shipment using the create_shipment
method.
service.create_shipment(
**shipment_data
)
Get shipment status using the get_shipment_status
method.
service.get_shipment_status(
shipment_id='1234567890'
)
Get shipment proof using the get_shipment_proof
method.
service.get_shipment_proof(
shipment_id='1234567890'
)
P.S.
If you find bugs, need help, or want to talk to the developers, please write an issue on GitHub.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file dhl-express-0.2.1.tar.gz
.
File metadata
- Download URL: dhl-express-0.2.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd2264efaa1264f42a2f2b780b8f096705a77eefa782d83d9b1e21bfb8fd7c3 |
|
MD5 | 7ef0ecf10da8435925f93878c8feb971 |
|
BLAKE2b-256 | 75a449ec337b85f6ada32559fafa847b9b3903e4d3d479fdc7c3961c43790c3b |
File details
Details for the file dhl_express-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: dhl_express-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56386f67d4ce36f520269e866d7493aaee59d0113159c43373a3c92b4e2901c4 |
|
MD5 | f8d9487b971e5edcfd014a68f0647790 |
|
BLAKE2b-256 | c106bfc1909b321a6c9197a7124b9e8917b23605988f5f82f8a3e5d7cb86f249 |