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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
204efc4d9f774722b81fd91cc274b4f5407a0f78fb7e9824501f18d46e5b4c96
|
|
| MD5 |
04e6eb2fe6f1db9d760ff69652e0016f
|
|
| BLAKE2b-256 |
ae4fce4ef93551461bb274af765caa24827e2dec905f63a2847441da197c5f32
|
Provenance
The following attestation bundles were made for pysimplefin-0.2.tar.gz:
Publisher:
python-package.yml on seesteins/pySimplefin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysimplefin-0.2.tar.gz -
Subject digest:
204efc4d9f774722b81fd91cc274b4f5407a0f78fb7e9824501f18d46e5b4c96 - Sigstore transparency entry: 660742559
- Sigstore integration time:
-
Permalink:
seesteins/pySimplefin@08ae3ee961134cb5c98fc19e2c95418931ae016c -
Branch / Tag:
refs/heads/master - Owner: https://github.com/seesteins
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@08ae3ee961134cb5c98fc19e2c95418931ae016c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ce890272ecb85354ceae155d85bfd2b939e532316b1febd99c86fe6b44481f
|
|
| MD5 |
d414600499f1c9f3934a67da9a9932f6
|
|
| BLAKE2b-256 |
cdb0663f24c6ae3d10f191a8ae50ccf2a765331c68372c8ff1da7fe112095575
|
Provenance
The following attestation bundles were made for pysimplefin-0.2-py3-none-any.whl:
Publisher:
python-package.yml on seesteins/pySimplefin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysimplefin-0.2-py3-none-any.whl -
Subject digest:
87ce890272ecb85354ceae155d85bfd2b939e532316b1febd99c86fe6b44481f - Sigstore transparency entry: 660742560
- Sigstore integration time:
-
Permalink:
seesteins/pySimplefin@08ae3ee961134cb5c98fc19e2c95418931ae016c -
Branch / Tag:
refs/heads/master - Owner: https://github.com/seesteins
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@08ae3ee961134cb5c98fc19e2c95418931ae016c -
Trigger Event:
push
-
Statement type: