Skip to main content

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
poetry install
poetry run pytest

Project details


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.9.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywisetransfer-0.1.9-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file pywisetransfer-0.1.9.tar.gz.

File metadata

  • Download URL: pywisetransfer-0.1.9.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1022-azure

File hashes

Hashes for pywisetransfer-0.1.9.tar.gz
Algorithm Hash digest
SHA256 d8f515964c235abd12dc17b9cd215edab6fdfd76abf690063158167e15a4c8a9
MD5 5af0a181928f0f8f725f30bcbd19042a
BLAKE2b-256 c2f9f472d7b12bc7735ae6f6802f82a43fe68d0a9a9fffa805b05f7edf432be0

See more details on using hashes here.

File details

Details for the file pywisetransfer-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: pywisetransfer-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1022-azure

File hashes

Hashes for pywisetransfer-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 78713e39e22d47fb9ca976c68d87dbe61b57ae80c9f26dfce3866edca9dac8f7
MD5 1be611dd095f6382ed81d692f64514c2
BLAKE2b-256 024d7c0796e46699fc6555a70cc48c1d075bc285b9558e7a1c29852d0818d8d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page