I'd like to look at alternatives to packaging with setuptools. The first tool I would like to try is Flit.
Create a modal dialogue to add a HoldingMovement record from the holdings page.
Add 2 new columns to the HoldingMovement model and associated screens;
- transaction type. one of; 'buy', 'sell', 'drp'.
- money column for fees/brokerage
This may also require some changes to code and configuration
Added with this commit - https://hg.sr.ht/~andy47/Portfolio/rev/92e141cbbb0f4c523f7709a572dd3dd73b9ef333
If the FLASK_ENV (and ENV config value) is not set to 'production' display the value in the banner of the base template. This will easily enable people viewing the web interface to know if they are using a production or non-production environment.
The code is of the form;
from playhouse.db_url import connect from models import db ... connection_string = config[<whatever>].DATABASE this_db = connect(connection_string) db.initialize(this_db) ...
Each client module or script has roughly the same code to connect to the target database and then initialise the
Let's just put this in
models.pyas a callable function to reduce the complexity of the calling code and the number of modules they need to import.
Got the link in the commit wrong but this is resolved by https://hg.sr.ht/~andy47/Portfolio/rev/53ebaae1c0ca3c6a52f136c1a40841c24dc3d75f