Skip to main content

Python wrapper for the bunq API.

Installation

This package has been tested with Python 3.6.0, but probably works fine with 3.3 and later. Python 2.6 and later should also work, but no guarantees.

To install, use setuptools, run:

python ./setup.py install

or for installing locally for the user:

python ./setup.py install --user

There is no PyPI package as of yet.

Usage

The module is a thin wrapper around the bunq API and takes care of the following:

  • setting the required HTTP headers

  • signing of the outgoing message

  • verification of the response (still very limited)

The code is blissfully unaware of the API endpoints and the data they need and return. You will need the bunq API documentation to figure out all the endpoints and required parameters and possible responses.

After installation this module is called simply bunq. You will probably want to import it like:

from bunq import API

and instantiate and API object like so:

my_api_instance = API(private_key, token)

There are several examples in the examples directory to give you an idea how this module can be used.

Documentation

The code itself is documented with docstrings.

External documentation will be coming ASAP.

TODO

  • tests

  • better verification of response

  • automated session creation

  • use a more lightweight crypto library, like https://github.com/sybrenstuvel/python-rsa

  • active session awareness

  • testing validity of token

  • deal with rsa key encryption

  • automagically retrieve server public key when not given

Attribution

All code is licensed under the MIT License. See LICENSE.

python3-krakenex was a big inspiration.

Metadata

Release files for bunq 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bunq 0.0.2
File Size Uploaded
bunq-0.0.2.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bunq 0.0.2
File Interpreter ABI Platform
bunq-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.6 kB

Release files / bunq-0.0.2.tar.gz

Download URL bunq-0.0.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
718900b0475b038b2c75080dc51b267d4e29b3e13afacb1fd4e6a96f6bbf27ad
BLAKE2b-256 checksum
How to use checksums
9e8bc09bd0ada58e3a24e5d0b469e6e384830ccd35c860bd9d5fd7d605c2df0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bunq-0.0.2-py2.py3-none-any.whl

Download URL bunq-0.0.2-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c300faab23591851bcbb26ef7a5981650555d51aca9cafe7542eade56f72cc5f
BLAKE2b-256 checksum
How to use checksums
e05f06128d9297105258b495d2bf118e1ad2a0410104a461af9a7783f344a5f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page