A domain specific language (DSL) to assist in taking notes about culinary work which is intended to be repeated.
This includes support for running in a Jupyter notebook, plus using graph technologies for analytics and preparation planning.
This project uses poetry
for dependency management, virtual environment, builds, packaging, etc.
To set up an environment locally:
git clone https://github.com/DerwenAI/bwyd.git
cd bwyd
poetry install --extras=demoThe source code is currently based on Python 3.11 or later.
poetry run python3 cli.pyThen load the examples/index.html in a browser.
poetry run python3 eval_rig.py <slug>poetry run python3 -m pip install -e .
poetry run python3 -m bwyd.installpoetry run jupyter-labTo set up the test environment:
poetry install --extras=testTo run unit tests, type checking, and linting:
./lint.shTo validate the generated HTML: https://validator.w3.org/nu/#file
-
bwyd/__main__.py: Jypter kernel CLI -
bwyd/install.py: Jupyter kernel installer -
bwyd/kernel.py: Jupyter wrapper kernel -
config.toml: sample configuration settings -
examples/*.bwyd: example recipes as Bwyd scripts -
examples/*.ipynb: example recipes in Bwyd as Jupyter notebooks -
examples/*.json: example recipes data model in JSON files
###################################################################### TBD:
./venv/bin/jupyter kernelspec uninstall bwyd
python3 -m pip uninstall bwyd