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
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
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.3.4.2.tar.gz
(17.8 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.2.tar.gz.
File metadata
- Download URL: pywisetransfer-0.3.4.2.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61c601bdf910f7e5fc6e52fb69ae2e1000bb31b0207ddff579ab0459817f9804
|
|
| MD5 |
ddfc97052585bfaceae6ad647b77b217
|
|
| BLAKE2b-256 |
0196172ffe7edf9141056769043218941c533f8a75ceb2602896de0888fb651c
|
File details
Details for the file pywisetransfer-0.3.4.2-py3-none-any.whl.
File metadata
- Download URL: pywisetransfer-0.3.4.2-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e99d648d5845347efe81910bd11d2acd52ffbb3fd5baa8cf679543a9561747b7
|
|
| MD5 |
4e43ddab0e9f4d88e2a3e8e6026a6385
|
|
| BLAKE2b-256 |
ac54b9d9d1ec919d5ca2c1584024093ebe8612133e795bd0a1fec76b14d9058b
|