pydpd
A DPD API wrapper (for UK only I believe)
Create DPD shipments and generate parcel labels from within your application or webapp.
You will need a valid DPD account and have API access enabled (which can be done by calling 0121 275 7336)
Features
- Check available services for a shipment
- Create a shipment
- Generate labels in HTML, PDF or the raw printer data
What's not possible (yet)
- Collections
- Swaps
- Extended Liability
- Internation Shipments
Installation
Download and install can be done through PyPi
pip install pydpd
or
git clone https://github.com/lewis-morris/pydpd
cd pydpd
pip install -e .
IMPORTANT NOTE
if you want to generate PDF versions of your labels you will have to install some additional software
Linux / Ubuntu
sudo apt-get install wkhtmltopdf
Windows
Pending Features
- Parcel Tracking
Usage
I always find it best to learn by example so follow this jupyter notebook to see the flow.