Python library for the TransferWise API
Reason this release was yanked:
problematic usage of global variable
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
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.3.tar.gz.
File metadata
- Download URL: pywisetransfer-0.3.3.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1016-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b55acb81865b090292654455f2f35a477133dc5989e655ef4da8787cbf991c70
|
|
| MD5 |
4d62c7f78aef4b9f4db9de6975f4f154
|
|
| BLAKE2b-256 |
f4625db88e8c9a0af69e6f6578c2348b97d4d33df804350c895f8af0c8758d7e
|
File details
Details for the file pywisetransfer-0.3.3-py3-none-any.whl.
File metadata
- Download URL: pywisetransfer-0.3.3-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1016-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cd27694758e1d29dcea29e788830276ffcf0aef5eb97b1c2b9d4d78fca50b9d
|
|
| MD5 |
c5990ba3a04a1da3f1de5291e4e27d6c
|
|
| BLAKE2b-256 |
f0c4d808c1d3614df2a038ff6f65f0fc0dfc4f9224d18e6fb9936830e6677738
|