No description
Find a file
Kumi 58bd61bec4
Update installation instructions to use simplified package name
- Use simplified package name in installation instructions to improve readability and usability.
2023-08-25 10:29:46 +02:00
src/postat Current status 2023-08-24 08:44:21 +02:00
tests Current status 2023-08-24 08:44:21 +02:00
.gitignore Current status 2023-08-24 08:44:21 +02:00
.gitlab-ci.yml Current status 2023-08-24 08:44:21 +02:00
config.dist.ini Current status 2023-08-24 08:44:21 +02:00
LICENSE Current status 2023-08-24 08:44:21 +02:00
pyproject.toml Current status 2023-08-24 08:44:21 +02:00
README.md Update installation instructions to use simplified package name 2023-08-25 10:29:46 +02:00

Python wrapper for Austrian Post web services

This is a Python wrapper for web services provided by Austrian Post.

Currently, it only supports looking up shipment details by tracking number.

Groundwork for services requiring authentication is laid out, but not working yet. If you want to contribute, please feel free to do so.

Installation

pip install postat

Usage

from postat.classes.api import PostAPI

api = PostAPI()

# Get shipment details

shipment_details = api.get_shipment_details("123456789012345678901234567890")

shipment = shipment["data"]["einzelsendung"]

# Get latest event

latest_event = shipment["sendungsEvents"][-1]

License

This project is licensed under the MIT License. See LICENSE for details.