Skip to main content

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.

Metadata

Release files for dhl-express 0.2.1

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

Source distribution (sdist)

Source distribution for dhl-express 0.2.1
File Size Uploaded Provenance Actions
dhl-express-0.2.1.tar.gz 5.7 kB Without provenance Details for dhl-express-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dhl-express 0.2.1
File Interpreter ABI Platform Actions
dhl_express-0.2.1-py3-none-any.whl Python 3 none any Details for dhl_express-0.2.1-py3-none-any.whl

Total release size: 11.1 kB

Release files / dhl-express-0.2.1.tar.gz

Download URL dhl-express-0.2.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7bd2264efaa1264f42a2f2b780b8f096705a77eefa782d83d9b1e21bfb8fd7c3
BLAKE2b-256 checksum
How to use checksums
75a449ec337b85f6ada32559fafa847b9b3903e4d3d479fdc7c3961c43790c3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / dhl_express-0.2.1-py3-none-any.whl

Download URL dhl_express-0.2.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56386f67d4ce36f520269e866d7493aaee59d0113159c43373a3c92b4e2901c4
BLAKE2b-256 checksum
How to use checksums
c106bfc1909b321a6c9197a7124b9e8917b23605988f5f82f8a3e5d7cb86f249
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for dhl-express 0.2.1

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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