0 purchases
afinipy 0.2.0
Afinipy is a, CLI, python package that builds your init files for you.
It works by, recursively, parsing the directory and modules using Python’s Abstract Syntax Trees.
Afinipy features two modes, top-level and recursive. The top-level mode builds a single __init__ at
the root directory even if modules are located into subdirectories. The recursive mode will build a
__init__ for each subdirectory. For additional options see the usage section below or the notebook
in the examples directory.
All ‘private’ functions, those starting with an underscore, are excluded from the init. Optionally,
additional functions, classes or the contents of a directory can be excluded by specifying them in
a file and passed to the exclusion_path parameter.
All functions or all classes can be excluded by, respectively, specifying –exclude ‘functions’ or –exclude ‘classes’
See https://github.com/RUrlus/afinipy for details
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.