A personal financial information aggregator and planning tool
Project description
nummus-financial
A personal financial information aggregator and planning tool. Collects and categorizes transactions, manages budgets, tracks investments, calculates net worth, and predicts future performance.
Environment
List of dependencies for package to run.
Required
- nummus python modules
- sqlalchemy
- gevent
- colorama
- rapidfuzz
- flask
- flask-assets
- flask-login
- pdfplumber
- yfinance
- pyspellchecker
- tqdm
- argcomplete
- scipy
- emoji
- werkzeug
- prometheus-flask-exporter
- packaging
- gunicorn
Optional
- Encryption extension to encrypt database file. Does not encrypt SSL or importers folders
- sqlcipher3-binary
- Cipher
- pycryptodome
Installation / Build / Deployment
Install module
> python -m pip install .
> # For autocomplete, activate completion hook
> activate-global-python-argcomplete
Install module with encryption
> python -m pip install .[encrypt]
For development, install as a link to repository such that code changes are used. It is recommended to install pre-commit hooks
> python -m pip install -e .[dev]
> pre-commit install
Usage
Run create command to make a new portfolio. Then start a web server using flask.
> nummus create
> flask --app nummus.web run
Docker
A better way to use nummus is hosting the web server on in a docker instance.
> docker run \
--name nummus \
--detach \
--publish 8000:8000 \
--publish 8001:8001 \
--volume nummus-data:/data \
nummus-financial
Configuration
The following environment variables are used to configure the instance.
| Env | Default | Description |
|---|---|---|
NUMMUS_PORTFOLIO |
/data/portfolio.db |
Path to portfolio inside data volume. |
NUMMUS_KEY_PATH |
/data/.key.secret |
File containing portfolio key for encryption |
NUMMUS_WEB_KEY |
nummus-admin |
Web key used when creating a new portfolio |
WEB_PORT |
8000 |
Port to bind server to |
WEB_PORT_METRICS |
8001 |
Port to bind metrics server to |
WEB_CONCURRENCY |
n(CPU) * 2 + 1 | Number of gunicorn workers to spawn |
WEB_N_THREADS |
1 |
Number of gunicorn workers threads to spawn |
WEB_TIMEOUT |
30 |
Gunicorn workers silent for more than this many seconds are killed and restarted |
Running Tests
Does not test front-end at all and minimally tests web controllers. This is out of scope for the foreseeable future.
Unit tests
> python -m tests
Coverage report
> python -m coverage run && python -m coverage report
Development
Code development of this project adheres to Google Python Guide
Linters
rufffor Pythonpyrightfor Python type analysisdjlintfor Jinja HTML templatescodespellfor all files
Formatters
isortfor Python import orderblackfor Pythonprettierfor Jinja HTML templates, CSS, and JStaplofor TOML
Tools
formatters.shwill run every formatterlinters.shwill run every linterrun_tailwindcss.shwill run tailwindcss with proper arguments
Configuration
Most configuration is made per portfolio via the web interface
There is a global config file for common user options, found at ~/.nummus/.config.ini. Defaults are:
[nummus]
secure-icon = ⚿ # Icon to print on secure CLI prompts such as unlocking password
Versioning
Versioning of this projects adheres to Semantic Versioning and is implemented using git tags.
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 nummus_financial-0.16.0.tar.gz.
File metadata
- Download URL: nummus_financial-0.16.0.tar.gz
- Upload date:
- Size: 11.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97792e18dc9a1bccedf76af69de6db5c2c86448d6fcb0deefc9b418fb3a0613b
|
|
| MD5 |
a705261e6a93639ce1cfd9eac7279462
|
|
| BLAKE2b-256 |
6c5e7833a671dc8fda274c9e9e2a5a650a5edf3bbe933d376675f29a76f9317a
|
Provenance
The following attestation bundles were made for nummus_financial-0.16.0.tar.gz:
Publisher:
deploy.yml on WattsUp/nummus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nummus_financial-0.16.0.tar.gz -
Subject digest:
97792e18dc9a1bccedf76af69de6db5c2c86448d6fcb0deefc9b418fb3a0613b - Sigstore transparency entry: 833613384
- Sigstore integration time:
-
Permalink:
WattsUp/nummus@a7f728b695e1c860850f8a81407c920429e08cec -
Branch / Tag:
refs/tags/v0.16.0 - Owner: https://github.com/WattsUp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@a7f728b695e1c860850f8a81407c920429e08cec -
Trigger Event:
release
-
Statement type:
File details
Details for the file nummus_financial-0.16.0-py3-none-any.whl.
File metadata
- Download URL: nummus_financial-0.16.0-py3-none-any.whl
- Upload date:
- Size: 11.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95a2c6da4b5ebf7b62d7a6594bfa901c7f0146f00d36c3b11441751bfad76079
|
|
| MD5 |
48321f5f1f480740cc8ca5a9831632e6
|
|
| BLAKE2b-256 |
87a76d989953809487654d5060a3e5079ea530dcbe970585186668050dcf2482
|
Provenance
The following attestation bundles were made for nummus_financial-0.16.0-py3-none-any.whl:
Publisher:
deploy.yml on WattsUp/nummus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nummus_financial-0.16.0-py3-none-any.whl -
Subject digest:
95a2c6da4b5ebf7b62d7a6594bfa901c7f0146f00d36c3b11441751bfad76079 - Sigstore transparency entry: 833613386
- Sigstore integration time:
-
Permalink:
WattsUp/nummus@a7f728b695e1c860850f8a81407c920429e08cec -
Branch / Tag:
refs/tags/v0.16.0 - Owner: https://github.com/WattsUp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@a7f728b695e1c860850f8a81407c920429e08cec -
Trigger Event:
release
-
Statement type: