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
client = pywisetransfer.Client(api_key="your-api-key-here")
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
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
pip install .[dev]
pytest
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.2.0.tar.gz
(16.9 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.2.0.tar.gz.
File metadata
- Download URL: pywisetransfer-0.2.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c4fa21b2ffd097a05610ba8d710d0c505e458ea2b577e13c6d30c2aae5c1bb3
|
|
| MD5 |
3072fa7cc7526ab59c1fd15e48b70a7a
|
|
| BLAKE2b-256 |
0f8f04e44f4ac545631191ba6cc4afe8ea9472273f631c3100f0bb7ff117f845
|
File details
Details for the file pywisetransfer-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pywisetransfer-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
951590a9e7fb5f90623accbc0d271aba10749b6a3802c66a8cf2dd1d4c8299de
|
|
| MD5 |
b5959ecd027adc29ded9548188a91bfb
|
|
| BLAKE2b-256 |
ace57da463c2a04acf0ed7c4291254a0022c4753ffd732a1ea9a85c0594ade89
|