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
pip install 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
from flask import abort, request
from pywisetransfer.webhooks import validate_request
@app.route("/payments/wise/webhooks")
def handle_wise_webhook():
try:
validate_request(request)
except Exception as e:
logger.error(f"Wise webhook request validation failed: {e}")
abort(400)
...
Run tests
# Within the pywisetransfer working directory
pip install .[dev]
pytest
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.3.4.5.tar.gz
(18.3 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.3.4.5.tar.gz.
File metadata
- Download URL: pywisetransfer-0.3.4.5.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18eb4d7b330633b4bd266f30fad831fee507720568565ed2e557525053751a89
|
|
| MD5 |
b9004683cc4833f439bdf13404adfc1b
|
|
| BLAKE2b-256 |
89f3abbf2c19ea1ff8d4f2b743cacb5f80731f2fcc18e70efa79446abd2e25ec
|
File details
Details for the file pywisetransfer-0.3.4.5-py3-none-any.whl.
File metadata
- Download URL: pywisetransfer-0.3.4.5-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c917d892a6ab87a40331d5fcbad24c25eeaaab092fecf6144dd09689554a6a8e
|
|
| MD5 |
3bac216f9b081fd12adf523a7303d995
|
|
| BLAKE2b-256 |
fa0056f52398dece2f723b4ef5b0df1e5239154bef215784c5c7895a977538c9
|