Basic template for creating a project using PBP.
.gitignoremain.pyMakefilepackage.jsonREADME.md
extend with project-specific files to be ignored
import project-specific code and Leaf parts
modify NAME to match that of the project
insert project-specific JS dependencies (if any)
modify to suit project
pbp/PBP.xml
The Parts Based Programming Tools, such as t2t, kernel, das and tas
t2t means "text to text". A tool for transmogrifying input text into output text. Like REGEX, but more powerful.
Palette of Part symbols for draw.io editor.
.gitviagit init- project specific files
Editor for creating Container Parts for the project. Download it from https://drawio.com, or use the online version.
Create a fresh copy of this template directory.
At a minimum,
- edit
main.py- import an Leaf parts needed for the project
- initialize each Leaf part after creating the template registry
zd.initialize_from_files (...)and before starting the systemzd.start (...)
- edit
Makefile- the
NAMEvariable to match the project name - to insert the kick-off argument to the project (if needed)
- the
Some of the Part names contain Unicode.
You may need to enable Unicode before running make using this version of PBP.
In Linux/Mac:
export PYTHONUTF8=1
In Windows:
set PYTHONUTF8=1