Skip to main content

A client for the Heron Data API

Project description

Lint and Test

Heron Python

This library provides easy access to the Heron Data API for applications written in Python.

Demo GIF

Documentation

No language-specific docs are currently maintained. For documentation on the raw REST API this library uses behind the scenes, see our OpenAPI Docs.

Installation

If you just want to use the package, just run:

pip install --upgrade heron-data

Install from source with:

python setup.py install

Requirements

  • Python 3.8+

Usage

Import the heron package and set your config:

import os

import heron

heron.basic_auth_username = os.getenv("HERON_USERNAME")
heron.basic_auth_password = os.getenv("HERON_PASSWORD")

# Experimental: if you pull from a fintech API, specify it here to get
# automatic conversion into a Heron Data API format. Supported: plaid,
# finicity, yodlee, truelayer
heron.provider = "plaid"

Alternatively, set HERON_USERNAME and HERON_PASSWORD as environment variables which will be automatically picked up.

Then you can issue API requests using Python classes:

end_user = heron.EndUser.create(...)

transactions = heron.Transaction.create_many([...])

You can see a longer example in the examples/ directory.

Contributing

Fork this repository, and install dev dependencies:

pip install -r requirements.dev.txt

Run tests and capture coverage with:

coverage run -m unittest

See test coverage with:

coverage report

Run linting with flake8 and black:

flake8 . && black .

Submit a PR against the main branch and it will be reviewed.

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

heron-data-0.1.4.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

heron_data-0.1.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file heron-data-0.1.4.tar.gz.

File metadata

  • Download URL: heron-data-0.1.4.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for heron-data-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f7d7b96ba24b042cd5cb269be0c11aecc335fd23e0aeaafafd250e57243fcb9a
MD5 fdbc8b8da1ba9a72f6b9f6c1ea3c77d3
BLAKE2b-256 71e1b749e1684880fc1d7b8d75063d19b16a683d707db15b9479b4d2ab872fc9

See more details on using hashes here.

File details

Details for the file heron_data-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: heron_data-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for heron_data-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f94aba5df47ad604d63d548869c34ace1b4adfb944563222d0a708b7619ebde0
MD5 ce676f15d3bb305e7236a720784c6ca4
BLAKE2b-256 0fe90093fa959a631f1e22663ecc6c0dda18c84de79579a8a7787f28f5f52026

See more details on using hashes here.

Supported by

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