neuron-zk-generator/README.md
2025-01-21 17:59:04 +00:00

1 KiB

neuron-zk-generator

This Python application reads data from my zettelkasten and formats it so that it can be compiled as a Neuron project and from there published as a static-site on the Web.

Local development

Activate the virtual environment:

source venv/bin/activate

Run:

python3 src/app.py

Build single executable

Use pyinstaller to create single executable file. pyinstaller is installed along with other packages specified in setup.py.

Ensure the virtual environment is running.

From root:

pyinstaller --onefile src/app.py --name neuron-zk-generator
# -F compiles to single file

Outputs to neuron-zk-generator/dist/app.

Sourcing the executable:

${HOME}/repos/neuron-zk-generator/dist/app

Run executable as program

sudo mv ${HOME}/repos/neuron-zk-generator/dist/app /usr/local/bin

Then run with:

neuron-zk-generator