The package for developers to interact with the Tillo APIv2
Project description
Tillo SDK for Python
A Python library providing tools to access the Tillo API, with comprehensive support for both synchronous and asynchronous operations.
Table of Contents
Features
- Complete Tillo API support
- Both synchronous and asynchronous clients
- Comprehensive error handling
- Rate limiting support
- Services supported:
- Float Management
- Brand Management
- Template Management
- Digital Card Operations (coming soon)
- Physical Card Operations (coming soon)
- Webhook Management (coming soon)
Installation
-
Clone the repository:
git clone https://github.com/jaddek/jpy-tillo-sdk.git
-
Navigate to the project directory:
cd jpy-tillo-sdk
-
Install dependencies:
uv sync -
Run tests:
uv run pytest tests
Usage
Basic Example:
from jpy_tillo_sdk import Tillo
# Initialize the client
client = Tillo(
api_key="your_api_key",
secret="your_secret",
)
# Synchronous usage
brands = client.brands.get_all()
# Asynchronous usage
async def get_brands():
brands = await client.brands_async.get_all()
Float Management Example:
# Check float balance
balance = client.floats.get_balance()
# Async float operations
async def check_float():
balance = await client.floats_async.get_balance()
Brand Management Example:
# Get brand details
brand = client.brands.get_brand_details(brand_id="123")
# Async brand operations
async def get_brand():
brand = await client.brands_async.get_brand_details(brand_id="123")
Error Handling
The SDK provides comprehensive error handling with specific exception classes:
from jpy_tillo_sdk.errors import TilloException, AuthenticationError
try:
result = client.brands.get_brand_details(brand_id="123")
except AuthenticationError as e:
print(f"Authentication failed: {e.message}")
except TilloException as e:
print(f"Error {e.tillo_error_code}: {e.message}")
API Documentation
Available Services
client.floats()/client.floats_async(): Float management operationsclient.brands()/client.brands_async(): Brand managementclient.templates()/client.templates_async(): Template operations
Coming Soon
client.digital_card(): Digital card operationsclient.physical_card(): Physical card managementclient.webhook(): Webhook management
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
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 jpy_tillo_sdk-0.3.0.tar.gz.
File metadata
- Download URL: jpy_tillo_sdk-0.3.0.tar.gz
- Upload date:
- Size: 69.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
202df88e771512cc84bd1dd59fd39d75677c3fb69ceb0ebcc5372e4b7cd4a667
|
|
| MD5 |
bab712acb891adf2408568d2fc5b6308
|
|
| BLAKE2b-256 |
833b7837cf5641febe33b460b5c55bf72a2e2d29be382ca2a4c40e62636034dc
|
File details
Details for the file jpy_tillo_sdk-0.3.0-py3-none-any.whl.
File metadata
- Download URL: jpy_tillo_sdk-0.3.0-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4883e242f25b1737c0761e585c36d3a601dd86dae48390ab85fcdf59b710cbc
|
|
| MD5 |
2f71152e8fe54666f2c4b16ad32800ce
|
|
| BLAKE2b-256 |
ef5d1cb0d6d62ca129e78bde1a14fa7c7990159b1d2657e90735d7cdf4762118
|