File | Date | Author | Commit |
---|---|---|---|
.github | 2025-02-08 |
![]() |
[2bcff2] rewrite name to pitono.buildr |
contrib | 2025-03-10 |
![]() |
[b3a0ca] - |
etc | 2025-04-01 |
![]() |
[36dcba] subset is hard to perfect |
src | 2025-04-01 |
![]() |
[36dcba] subset is hard to perfect |
LICENCE | 2025-02-08 |
![]() |
[2bcff2] rewrite name to pitono.buildr |
MANIFEST.in | 2025-02-08 |
![]() |
[7bb49e] test_simple builds and tests |
README.md | 2025-03-10 |
![]() |
[b3a0ca] - |
defs.mk | 2025-03-10 |
![]() |
[1fe5c1] - |
noxfile.py | 2025-02-08 |
![]() |
[2bcff2] rewrite name to pitono.buildr |
requirements.txt | 2025-02-21 |
![]() |
[909615] - |
LICENSE | 2025-02-08 |
![]() |
[2bcff2] rewrite name to pitono.buildr |
pyproject.toml | 2025-02-08 |
![]() |
[7740a4] choose project |
This README is just an introduction. There is a more detailed discussion in contrib/.
This packages provides some useful utilities for Python systems.
It is packaged as a module within in Python namespace.
The modules and classes are
from pitono.buildr import Pdb0
Pdb0().trap0 = 5
# and then in your code
Pdb0().trap1 = 5
This will then break in your code. You will break inside the Pdb0().trap1 method. You use "u" to see the Pdb0().trap1 line.
This can be more useful than inserting import pdb; pdb.set_trace() statements in your code. The trap0 statement can be activated late in the client code to trap particular conditions.
There are many other utilities in the module. Pdb0Helper0 is very useful. It can pickle using the "dill" module. It can simplify and centralize logging. And it can pretty-print structures to JSON.
There is an application framework of Singleton objects - Helper0. See my other project pitono.weaves.config for how this is used to manage configurations from TOML, JSON and .netrc files.
There is a outline of a pipeline processing system in
pitono.buildr.fajfado
There are utility scripts in pitono.buildr.ekstra. These can convert a pickle file to JSON and a JSON file to XML.
The pitono.buildr.tests has a useful utility class Envs0 for managing the HOME and PWD directories seen by test classes. It can set up the environment to use the directories in tests/home0 and tests/home1.
The package and its modules are extensively used by the other packages in the pitono namespace.