RedXClient
A Pydantic-powered client for the RedX Courier service's API.
Features
- Support for all public API endpoints
- Responses are returned as Pydantic models, making it easy to work with the data.
- Properly type-hinted for optimal IDE support and DX.
Installation
pip install redxclient
Usage
from redxclient import RedXClient
client = RedXClient(api_key="your_api_key") # You can pass the base_url as well, by default it uses the sandbox url
parcel = client.get_parcel_details("parcel_id")
print(parcel)
You can find all the schemas in the schema module of the package.
Development
To install the development version, clone the repository and install the package in editable mode:
git clone
cd redxclient
pdm sync -d
Metadata
Release files for RedXClient 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redxclient-0.2.4.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| redxclient-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / redxclient-0.2.4.tar.gz
| Download URL | redxclient-0.2.4.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6f23be6d0b50495f1a1c1a70060e820fc149d426023db3371ed0ee662e6bd16
|
|
BLAKE2b-256 checksum How to use checksums |
c0baa6f1d4ff34fb8e632d30e0616c81e7e1319110b137c24792bc51f15f16e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.14.0 CPython/3.10.14 Linux/5.4.109+
|
Release files / redxclient-0.2.4-py3-none-any.whl
| Download URL | redxclient-0.2.4-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2bc482a052fc40d4845ecc96d0488e77528cfaf520f41cbab98dd347b810b32
|
|
BLAKE2b-256 checksum How to use checksums |
b1c0ebcef0f3038332064da8595a2f06fb8c7f53fbec8f12c0538c0c1983ba13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.14.0 CPython/3.10.14 Linux/5.4.109+
|