Port details
py-docify Script to add docstrings to Python type stubs using reflection
1.2.1 textproc Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.2.1Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-08-19 13:00:25
Last Update: 2026-08-19 12:55:13
Commit Hash: 5ab1005
Also Listed In: python
License: MIT
WWW:
https://github.com/atoerien/docify
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}docify>0:textproc/py-docify@${PY_FLAVOR}
To install the port: #
cd /usr/ports/textproc/py-docify/ && make install clean
To add the package, run one of these commands:
  • pkg install textproc/py-docify
  • pkg install py312-docify
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py312-docify listed in the above command, you can pick from the names under the Packages section.
To download the package and its dependencies for another FreeBSD version or architecture, without installing it:
  • pkg -o ABI=FreeBSD:15:$(pkg config abi | cut -d: -f3) fetch -d -o . py312-docify
Change 15 to the FreeBSD major version you want; the rest keeps your current architecture. The files are saved under ./All/. Copy them to the other machine and install them there with pkg add. Ignore any warning that suggests pkg bootstrap -f. The quarterly or latest branch comes from your own repository configuration, not from this page.
PKGNAME: py312-docify
Package flavors (<flavor>: <package>) #
  • py312: py312-docify
distinfo: #
TIMESTAMP = 1784005014 SHA256 (docify-1.2.1.tar.gz) = ed565259a3b20cd754438405b7830e12579f2223bb3c3f13c8e9318c258bc0a8 SIZE (docify-1.2.1.tar.gz) = 30605

Packages (timestamps in pop-ups are UTC): #
py312-docify
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest1.2.11.2.1--1.2.1
FreeBSD:14:quarterly1.2.11.2.1--1.2.1
FreeBSD:15:latest1.2.11.2.1n/a-n/a
FreeBSD:15:quarterly1.2.11.2.1n/a-n/a
FreeBSD:16:latest CURRENT1.2.11.2.1n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. py312-hatchling>=0 : devel/py-hatchling@py312
  2. python3.12 : lang/python312
  3. py312-build>=0 : devel/py-build@py312
  4. py312-installer>=0 : devel/py-installer@py312
Test dependencies: #
  1. python3.12 : lang/python312
Runtime dependencies: #
  1. py312-libcst>=1.1.0 : devel/py-libcst@py312
  2. py312-tqdm>=4.66.4 : misc/py-tqdm@py312
  3. python3.12 : lang/python312
There are no ports dependent upon this port #

Configuration Options: #
No options to configure
Options name: #
textproc_py-docify
USES: #
python shebangfix
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/d/docify/
  2. https://pypi.org/packages/source/d/docify/
Collapse this list.

Number of commits found: 1 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1.2.1
19 Aug 2026 12:55:13
commit hash: 5ab100563a99503d1171687a4d7259d801fae203commit hash: 5ab100563a99503d1171687a4d7259d801fae203commit hash: 5ab100563a99503d1171687a4d7259d801fae203commit hash: 5ab100563a99503d1171687a4d7259d801fae203 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
textproc/py-docify: Add py-docify 1.2.1

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.

Number of commits found: 1