
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
A script to add docstrings to Python type stubs using reflection
sys.version
and sys.platform
conditional blocks, will only add docstrings to the correct branch-i
or --in-place
-b
or --builtins-only
, will only add docstrings for modules found in sys.builtin_module_names
(stdlib modules written in C).--if-needed
, will only add docstrings if the object's (Python) source code is unavailable. Useful for language servers like basedpyright that are able to extract docstrings from source code.Install from PyPI:
pip install docify
docify
# or
python -m docify
Or from conda-forge:
conda install conda-forge::docify
docify
# or
python -m docify
Or just download and run the script directly:
# Install dependencies
pip install libcst tqdm # tqdm is optional, and is only used if not running with -q
python docify.py
# or
python -m docify
# or
chmod +x docify.py
./docify.py
docify [-h] [-V] [-v] [-q] [-b] [--if-needed] (-i | -o OUTPUT_DIR) INPUT_DIR [INPUT_DIR ...]
A script to add docstrings to Python type stubs using reflection
positional arguments:
INPUT_DIR directory to read stubs from
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
-v, --verbose increase verbosity
-q, --quiet decrease verbosity
-b, --builtins-only only add docstrings to modules found in `sys.builtin_module_names`
--if-needed only add a docstring if the object's source code cannot be found
-i, --in-place modify stubs in-place
-o, --output OUTPUT_DIR
directory to write modified stubs to
FAQs
A script to add docstrings to Python type stubs using reflection
We found that docify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.