BSD Ports

textproc/py-docify 1.2.1 DragonFly

Script to add docstrings to Python type stubs using reflection

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
python, textproc
Package size
22.1 KiB, 99.9 KiB installed

Description

docify is a script to add docstrings to Python type stubs using reflection.

Features:

  • Uses LibCST to parse and modify the stub file
  • Dynamically imports the actual module to get the runtime docstring
  • Handles most sys.version and sys.platform conditional blocks, will only add docstrings to the correct branch
  • Able to modify files in-place with -i or --in-place
  • Won't overwrite existing docstrings
  • With -b or --builtins-only, will only add docstrings for modules found in sys.builtin_module_names (stdlib modules written in C).
  • With --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.

In the other systems

The newest version among them is 1.2.1, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlytextproc/py-docify1.2.1 newestnone known-[email protected]-
FreeBSDtextproc/py-docify1.2.1 newestnone known-[email protected]2026-08-19
HardenedBSDtextproc/py-docify1.2.1 newestno data-[email protected]-
GhostBSDtextproc/py-docify1.2.1 newestno data-[email protected]-

Version history 1

  1. 1.2.1

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install py312-docify

From DPorts:

cd /usr/dports/textproc/py-docify && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 3

No port depends on this one.