Skip to main content

A python library for accessing simplefin servers

Project description

Pysimplefin

A library to simplify the interaction with a simplefin server in python. It is built to allow for the syncing of a local database with a remote simplefin server. This project has no affiliation with the SimpleFin project.

Usage

You'll need to create a simplefin account. The cost is currently $1.50 per month. This can be done here https://beta-bridge.simplefin.org/.

Access simplefin with a claim token

Go to your simplefin user page and generate a new claim token

from pysimplefin import DefaultAuth, SimpleFinClient

auth = DefaultAuth.claim_token("your_token") # This returns a auth object that can be used to generate a client
print(auth.url) # make sure to save this url. A claim token can only be used once.
# Get a client to access data.
client = SimpleFinClient(auth)
# Get your transaction data. Will return a list of pydantic account models.
client.get_data(start_date=datetime.now()-timedelta(days=90), end_date=datetime.now(), pending=True)

Example Usage with a URL

Prior to doing this you'll need to setup connections to a bank or credit card.

from pysimplefin import DefaultAuth, SimpleFinclient, DatabaseManager

# pass the url generated from your claim token to the DefaultAuth
auth = DefaultAuth.from_url("https://user:pass@example_simpfin.tld/path")

# get client and data same as above
client = SimpleFinClient(auth)
data = client.get_data(start_date=datetime.now()-timedelta(days=90), end_date=datetime.now(), pending=True)

# Sync data with a database
database = DatabaseManager() # Initialize a Database Manager
database.sync(data) # Sync the data with the database.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysimplefin-0.2.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

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

pysimplefin-0.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file pysimplefin-0.2.tar.gz.

File metadata

  • Download URL: pysimplefin-0.2.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysimplefin-0.2.tar.gz
Algorithm Hash digest
SHA256 204efc4d9f774722b81fd91cc274b4f5407a0f78fb7e9824501f18d46e5b4c96
MD5 04e6eb2fe6f1db9d760ff69652e0016f
BLAKE2b-256 ae4fce4ef93551461bb274af765caa24827e2dec905f63a2847441da197c5f32

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysimplefin-0.2.tar.gz:

Publisher: python-package.yml on seesteins/pySimplefin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pysimplefin-0.2-py3-none-any.whl.

File metadata

  • Download URL: pysimplefin-0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysimplefin-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87ce890272ecb85354ceae155d85bfd2b939e532316b1febd99c86fe6b44481f
MD5 d414600499f1c9f3934a67da9a9932f6
BLAKE2b-256 cdb0663f24c6ae3d10f191a8ae50ccf2a765331c68372c8ff1da7fe112095575

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysimplefin-0.2-py3-none-any.whl:

Publisher: python-package.yml on seesteins/pySimplefin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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