Registry / devops / pyct
library0.6.0pypypi✓ verified 24d ago

pyct (Python Common Tasks) is a utility package from the HoloViz ecosystem designed to simplify common tasks for Python projects, such as copying examples, fetching data, and reporting environment details. It also provides utilities for package building, primarily as a convenience for project maintainers. The current version is 0.6.0. It maintains an active development pace with regular releases addressing Python compatibility, introducing new utilities, and deprecating older patterns.

pip install pyct
INSTALL
IMPORT
SIG · PYCT
P
pyct
devopspythonv0.6.0
Install
2.1s avg
Import
20ms
Disk
23MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.022s · 24.5MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.1s · import 0.019s · 26MB
23MB installed
● package 23MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pyct
import pyct
cmd
from pyct import cmd
build
from pyct import build
add_pv_commands
from pyct.cmd import add_commands
from pyct.cmd import add_pv_commands
The function `add_pv_commands` was renamed to `add_commands` in pyct v0.4.4.

This quickstart demonstrates how to use `pyct.report()` to display version information for the pyct library and other specified packages in the current environment.

import pyct import sys import io # Redirect stdout to capture output for programmatic example old_stdout = sys.stdout redirected_output = io.StringIO() sys.stdout = redirected_output try: # Use pyct.report to print version information about specified packages pyct.report(packages=['pyct', 'numpy', 'param']) output = redirected_output.getvalue() print("--- pyct.report output ---") print(output.strip()) print("--------------------------") finally: sys.stdout = old_stdout # Restore stdout print("You can also run 'pyct report' from the command line.")
pyct --version
Debug
Known issues
breakingpyct version 0.6.0 dropped support for Python versions older than 3.8. Earlier versions (0.5.0) also dropped support for Python 2.7 and 3.7.
fix
Ensure your Python environment is version 3.8 or newer to use pyct 0.6.0+.
affects: <0.6.0 (for <3.8), <0.5.0 (for <3.7/2.7)
deprecatedThe `pyct.get_setup_version` function is deprecated and will be removed in a future version. The 'Param' dependency, which it relies on, will also be removed at the same time.
fix
Avoid direct reliance on `get_setup_version`. Consult the `pyct` documentation or GitHub for recommended alternatives for version management or if you were using 'Param' through pyct.
affects: >=0.6.0
breakingIn pyct 0.4.4, the function `pyct.cmd.add_pv_commands()` was renamed to `add_commands()`, and its interface was modified.
fix
Update calls to `pyct.cmd.add_pv_commands()` to use `pyct.cmd.add_commands()` and adjust the arguments according to the new API specification.
affects: <0.4.4
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pyct'
The 'pyct' package is not installed in the current Python environment or is not accessible via the Python interpreter's search path.
fix
Install the package using pip: `pip install pyct`
ImportError: cannot import name 'compiler' from 'tensorflow.python.autograph.pyct'
This error typically occurs due to version incompatibilities or conflicts between `tensorflow` and `tensorflow_probability` packages, where `pyct` is an internal dependency used by TensorFlow's Autograph feature.
fix
Upgrade both TensorFlow and TensorFlow Probability to their latest compatible versions, or ensure a compatible set of versions is installed. For example: `pip install --upgrade tensorflow tensorflow_probability` or `conda update tensorflow tensorflow-probability`.
AttributeError: module 'pyct' has no attribute 'some_nonexistent_attribute'
The user is attempting to access an attribute, function, or submodule from the `pyct` package that either does not exist, is misspelled, or has been deprecated. This often happens when trying to use older API calls or incorrect module names.
fix
Consult the `pyct` documentation (e.g., on PyPI or GitHub) for the correct attribute or function names for the version you are using. If `some_nonexistent_attribute` is a placeholder, replace it with the actual attribute being accessed in your code.
Upgrade
Version history
0.6.0latest on PyPI · released Sep 26, 2025
Audit
Dependencies
paramrequiredCore dependency for some utilities (e.g. get_setup_version), scheduled for removal in future versions.
setuptoolsrequiredUsed for package metadata and utilities.
packagingrequiredUsed for package metadata and utilities.
tqdmoptionalRequired for the 'cmd' optional features, such as progress bars during data fetching.
Agent activity
7 hits · last 30 days
node
6
Resources
pyct — pip install pyct · libregistry