3These scripts are all for working with Python.
5## The individual scripts
9# This adds the root of the repo to the PATH, which has cog_helpers.py
10from os.path import abspath, dirname
13sys.path.append(abspath(dirname(dirname("."))))
21 "usage": "depanalysis",
23 get a summary of every Python version installed in every Python virtualenv on my computer.
27 "usage": "deploy_to_pypi",
29 deploy a new version of a Python library: bump the version, tag the Git commit, push to PyPI and GitHub.
33 "usage": "get_all_venv_deps",
35 print all the dependencies installed in every virtualenv on my computer. See https://alexwlchan.net/2026/python-package-audit/
39 "name": "pyfmt [...PATH]",
40 "description": "Format Python files with ruff.",
43 "name": "pip_compile (--upgrade) (--no-cache)",
44 "description": "Compile any
`requirements.in` files into a list of exact versions in
`requirements.txt`.",
47 "name": "run_pip_sync (--no-cache)",
48 "description": "A wrapper around
`uv pip sync`. You don't need to call this directly.",
52cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
57 <a href="https://github.com/alexwlchan/scripts/blob/main/python/depanalysis">
58 <code>depanalysis</code>
62 get a summary of every Python version installed in every Python virtualenv on my computer.
66 <a href="https://github.com/alexwlchan/scripts/blob/main/python/deploy_to_pypi">
67 <code>deploy_to_pypi</code>
71 deploy a new version of a Python library: bump the version, tag the Git commit, push to PyPI and GitHub.
75 <a href="https://github.com/alexwlchan/scripts/blob/main/python/get_all_venv_deps">
76 <code>get_all_venv_deps</code>
80 print all the dependencies installed in every virtualenv on my computer. See https://alexwlchan.net/2026/python-package-audit/
84 <a href="https://github.com/alexwlchan/scripts/blob/main/python/pyfmt">
85 <code>pyfmt [...PATH]</code>
89 Format Python files with ruff.
93 <a href="https://github.com/alexwlchan/scripts/blob/main/python/pip_compile">
94 <code>pip_compile (--upgrade) (--no-cache)</code>
98 Compile any
`requirements.in` files into a list of exact versions in
`requirements.txt`.
102 <a href="https://github.com/alexwlchan/scripts/blob/main/python/run_pip_sync">
103 <code>run_pip_sync (--no-cache)</code>
107 A wrapper around
`uv pip sync`. You don't need to call this directly.
110<!-- [[[end]]] (sum: WIjqpb60M8) -->