python-sendparcel-inpost
InPost ShipX provider package for the python-sendparcel ecosystem.
Alpha notice: this package tracks the still-changing
python-sendparcelcore.
What it provides
InPostLockerProviderfor locker shipmentsInPostCourierProviderfor courier shipmentsShipXClientfor direct async ShipX API access- ShipX-to-sendparcel status normalization helpers
Contract
This package follows the cleaned core contract:
create_shipment(...) -> ShipmentCreateResultcreate_label(...) -> LabelInfohandle_callback(...) -> ShipmentUpdateResultfetch_shipment_status(...) -> ShipmentUpdateResultcancel_shipment(...) -> bool
Providers do not mutate shipment state directly. They translate ShipX responses into normalized results that the core flow applies.
Installation
uv add python-sendparcel-inpost
or:
pip install python-sendparcel-inpost
Configuration
| Key | Type | Description |
|---|---|---|
token |
str |
ShipX API bearer token |
organization_id |
int |
ShipX organization ID |
sandbox |
bool |
Use sandbox API |
base_url |
str |
Optional API base override |
timeout |
float |
Request timeout in seconds |
Status normalization
ShipX statuses are normalized to sendparcel shipment statuses.
- recognized ShipX statuses produce
{"status": ...} - tracking numbers are included when available
- unknown ShipX statuses do not invent fake sendparcel statuses
That means callback and polling updates can safely return only tracking data when ShipX introduces a new status the mapper does not know yet.
Labels
Labels are returned as payloads.
- PDF labels are returned as base64 content in
LabelInfo["content_base64"] - no label URL is persisted by the core contract
Development
uv sync --extra dev
uv run pytest
uv run ruff check src tests
uv run mypy src tests
Metadata
Release files for python-sendparcel-inpost 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_sendparcel_inpost-0.3.2.tar.gz | 33.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_sendparcel_inpost-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.8 kB
Release files / python_sendparcel_inpost-0.3.2.tar.gz
| Download URL | python_sendparcel_inpost-0.3.2.tar.gz |
|---|---|
| Size | 33.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2491699f4e27ec08967d72b1fc87af295eb86615262c50fd506bebb6f55211f1
|
|
BLAKE2b-256 checksum How to use checksums |
a2268f50406e158f291e3dad97863de7c20f552dc0ede64d12118f2bb74a7c8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / python_sendparcel_inpost-0.3.2-py3-none-any.whl
| Download URL | python_sendparcel_inpost-0.3.2-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
639fe72d506c34772fa7c139d123430aaa6adcbcc0015cc0817cf3e47a358d8f
|
|
BLAKE2b-256 checksum How to use checksums |
ade622d6f266aaa1fceb2fd9bfb523d98aca3c9c757e04d8087360779344ee22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency log