Development WorkflowΒΆ
-
Define tool name:
- Think of a tool name
- Use kebab-case naming convention as for example "choose-a-name"
-
Create Dev Container:
-
Add dependencies:
- Add needed package into dependencies in
tools/choose-a-name/pyproject.toml. - Run
uv syncin order to update virtual environment with new packages or (re-start) docker viadocker compose -f tools/choose-a-name/compose.yml up
- Add needed package into dependencies in
-
Implement your code:
- pypackage: You can use the preinstalled infdb python package to interact with the InfDB database and services. See API -> pyinfdb for more information.
- Python: Add your code to
src/ - SQL: Add your scripts to
sql/- We recommend adding numbers according to the execution order (executed in alphabetical order) - Execution: Start your added python code btw. sql scripts in
main.py. The sql files can be easily executed as shown insrc/demo.py. This spllting ensures clarity and easy overview what is executed.
-
Document your code:
- Add docstrings and comments to your code
- Update Readme_template.md for user of your tool