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.3.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.3.tar.gz.
File metadata
- Download URL: redxclient-0.2.3.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 |
9f353ee9c69a5aa6e0771286b23398ee85112fa38945c0f88cd94cf085abb23d
|
|
| MD5 |
79e90532b695200aa193290dc7877725
|
|
| BLAKE2b-256 |
4d9a92ecbcd1ce3de7f3777704664c981afb83f80b7ce114157e7b41111acb5c
|
File details
Details for the file redxclient-0.2.3-py3-none-any.whl.
File metadata
- Download URL: redxclient-0.2.3-py3-none-any.whl
- Upload date:
- Size: 4.6 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 |
ae27aae5b8badf1b0e7aed0e1b06ff7794a314c578614260b70ee95b71b01e34
|
|
| MD5 |
3e699880ad73e5a5d954b47747909484
|
|
| BLAKE2b-256 |
7f186417b89e2a28425ca5c4a4d8bec5079b9b13ab9b64370ca16c4acc9e886b
|