A Python Client for RedX Courier Service
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redxclient-0.2.4.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redxclient-0.2.4.tar.gz.
File metadata
- Download URL: redxclient-0.2.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.14.0 CPython/3.10.14 Linux/5.4.109+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6f23be6d0b50495f1a1c1a70060e820fc149d426023db3371ed0ee662e6bd16
|
|
| MD5 |
3e76952eb1ee7aa24bf0ca113d34cac9
|
|
| BLAKE2b-256 |
c0baa6f1d4ff34fb8e632d30e0616c81e7e1319110b137c24792bc51f15f16e2
|
File details
Details for the file redxclient-0.2.4-py3-none-any.whl.
File metadata
- Download URL: redxclient-0.2.4-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.14.0 CPython/3.10.14 Linux/5.4.109+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2bc482a052fc40d4845ecc96d0488e77528cfaf520f41cbab98dd347b810b32
|
|
| MD5 |
b88992a0ffc8fe3e73739a38aade78b8
|
|
| BLAKE2b-256 |
b1c0ebcef0f3038332064da8595a2f06fb8c7f53fbec8f12c0538c0c1983ba13
|