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.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for redxclient-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66313cf76ce0480c5073ed9fae6056451bcdd4c782f268c0998eeeac0b1c10a4 |
|
MD5 | 38ee0ea244a9acb46cbd1b3dc2590bf3 |
|
BLAKE2b-256 | 32542fc43e9459ad52ac9639b2104dba23b92f7364b02c828239a918bbd06c7b |