Automated init builder
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file afinipy-0.2.0.tar.gz
.
File metadata
- Download URL: afinipy-0.2.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3601757b60bf0b32daa858ea0c8b1abcffa6f95cf55573e83bbb37c65180cbc |
|
MD5 | dca63ca8ee00dbbbcb75a2e5cd4f854b |
|
BLAKE2b-256 | e42661fb16d979d9c7f31e444cb09dc508e6cacaf88f44f4381b5d357f61cf09 |