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 pyctVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `pyct.report()` to display version information for the pyct library and other specified packages in the current environment.
Ensure your Python environment is version 3.8 or newer to use pyct 0.6.0+.
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.
Update calls to `pyct.cmd.add_pv_commands()` to use `pyct.cmd.add_commands()` and adjust the arguments according to the new API specification.
Install the package using pip: `pip install pyct`
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`.
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.