A personal financial information aggregator and planning tool. Collects and categorizes transactions, manages budgets, tracks investments, calculates net worth, and predicts future performance.
List of dependencies for package to run.
- 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
- Encryption extension to encrypt database file. Does not encrypt SSL or importers folders
- sqlcipher3-binary
- Cipher
- pycryptodome
Install module
> python -m pip install .
> # For autocomplete, activate completion hook
> activate-global-python-argcompleteInstall 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 installRun create command to make a new portfolio. Then start a web server using flask.
> nummus create
> flask --app nummus.web runA 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-financialThe 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 |
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 testsCoverage report
> python -m coverage run && python -m coverage reportCode 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
formatters.shwill run every formatterlinters.shwill run every lintermake_test_portfolio.pywill create a portfolio with pseudorandom datarun_tailwindcss.shwill run tailwindcss with proper arguments
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 passwordVersioning of this projects adheres to Semantic Versioning and is implemented using git tags.