Python library for the TransferWise API
Project description
pywisetransfer
An unofficial, experimental Python client library for the TransferWise API.
:warning: The classes, functions and interfaces that this library provides are very much in-development and prone to change.
Installation
# Within your project directory
poetry add pywisetransfer
Usage
API Requests
import pywisetransfer
pywisetransfer.api_key = "your-api-key-here"
# pywisetransfer.environment = "live"
client = pywisetransfer.Client()
for profile in client.profiles.list():
accounts = client.borderless_accounts.list(profile_id=profile.id)
for account in accounts:
currencies = [balance.currency for balance in account.balances]
print(f"AccountID={account.id}, Currencies={currencies}")
Webhook signature verification
import pywisetransfer
from pywisetransfer.webhooks import verify_signature
# pywisetransfer.environment = "live"
payload = b"webhook-request-body-here"
signature = "webhook-signature-data-here"
valid = verify_signature(payload, signature)
print(f"Valid webhook signature: {valid}")
Run tests
# Within the pywisetransfer working directory
poetry install
poetry run pytest --forked
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywisetransfer-0.1.6.tar.gz
(15.4 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 pywisetransfer-0.1.6.tar.gz.
File metadata
- Download URL: pywisetransfer-0.1.6.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.2 Linux/5.10.0-9-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
288090217485f08cc67e74dbc9092a8177f784d2de25c948b81d0ea793b56fd4
|
|
| MD5 |
348abce03446773f02f9fb1cfb7d97dc
|
|
| BLAKE2b-256 |
180204c6c7af9a8eafa0148642ae2b18eb655d44b247d2e6cec69ca08ecce245
|
File details
Details for the file pywisetransfer-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pywisetransfer-0.1.6-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.2 Linux/5.10.0-9-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c6448c35bd5a7c75a0ef8bae8d81b4b178b4ac816a7bfa44582f84bd6ec5a25
|
|
| MD5 |
e48e8728ace458cf36b755df770ec5c0
|
|
| BLAKE2b-256 |
3acd266ebdba8aed366620586134a191c8f5047b1b9a543ff1e06404ef4cdcea
|