rookery 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. rookery-0.7.0/LICENSE +21 -0
  2. rookery-0.7.0/PKG-INFO +134 -0
  3. rookery-0.7.0/README.md +105 -0
  4. rookery-0.7.0/pyproject.toml +108 -0
  5. rookery-0.7.0/src/rookery/__init__.py +12 -0
  6. rookery-0.7.0/src/rookery/__main__.py +1308 -0
  7. rookery-0.7.0/src/rookery/appimage_program.py +32 -0
  8. rookery-0.7.0/src/rookery/cli_helpers.py +101 -0
  9. rookery-0.7.0/src/rookery/config.py +140 -0
  10. rookery-0.7.0/src/rookery/deb_program.py +137 -0
  11. rookery-0.7.0/src/rookery/fetching.py +565 -0
  12. rookery-0.7.0/src/rookery/github_program.py +107 -0
  13. rookery-0.7.0/src/rookery/github_utils.py +168 -0
  14. rookery-0.7.0/src/rookery/install_resolution.py +55 -0
  15. rookery-0.7.0/src/rookery/installer.py +339 -0
  16. rookery-0.7.0/src/rookery/link_status.py +211 -0
  17. rookery-0.7.0/src/rookery/operations.py +455 -0
  18. rookery-0.7.0/src/rookery/path_utils.py +69 -0
  19. rookery-0.7.0/src/rookery/program.py +589 -0
  20. rookery-0.7.0/src/rookery/programs/__init__.py +0 -0
  21. rookery-0.7.0/src/rookery/programs/bat.py +76 -0
  22. rookery-0.7.0/src/rookery/programs/blender.py +133 -0
  23. rookery-0.7.0/src/rookery/programs/cuda_run.py +330 -0
  24. rookery-0.7.0/src/rookery/programs/drawio.py +90 -0
  25. rookery-0.7.0/src/rookery/programs/dust.py +81 -0
  26. rookery-0.7.0/src/rookery/programs/dysk.py +79 -0
  27. rookery-0.7.0/src/rookery/programs/eza.py +84 -0
  28. rookery-0.7.0/src/rookery/programs/fasttarutils.py +1511 -0
  29. rookery-0.7.0/src/rookery/programs/fastziputils.py +632 -0
  30. rookery-0.7.0/src/rookery/programs/gdu.py +75 -0
  31. rookery-0.7.0/src/rookery/programs/gping.py +105 -0
  32. rookery-0.7.0/src/rookery/programs/hyperfine.py +75 -0
  33. rookery-0.7.0/src/rookery/programs/imcat.py +97 -0
  34. rookery-0.7.0/src/rookery/programs/just.py +92 -0
  35. rookery-0.7.0/src/rookery/programs/kpod.py +705 -0
  36. rookery-0.7.0/src/rookery/programs/mc.py +170 -0
  37. rookery-0.7.0/src/rookery/programs/netron.py +67 -0
  38. rookery-0.7.0/src/rookery/programs/nvim.py +75 -0
  39. rookery-0.7.0/src/rookery/programs/storageexplorer.py +137 -0
  40. rookery-0.7.0/src/rookery/programs/tarssh.py +284 -0
  41. rookery-0.7.0/src/rookery/programs/yazi.py +178 -0
  42. rookery-0.7.0/src/rookery/py.typed +0 -0
  43. rookery-0.7.0/src/rookery/registry.py +99 -0
  44. rookery-0.7.0/src/rookery/shell_script_program.py +170 -0
  45. rookery-0.7.0/src/rookery/state.py +284 -0
  46. rookery-0.7.0/src/rookery/sudo.py +89 -0
  47. rookery-0.7.0/src/rookery/sudo_requirement.py +12 -0
  48. rookery-0.7.0/src/rookery/system.py +513 -0
  49. rookery-0.7.0/src/rookery/version.py +85 -0
  50. rookery-0.7.0/src/rookery/version_sources.py +342 -0
  51. rookery-0.7.0/src/rookery/workflows/__init__.py +40 -0
  52. rookery-0.7.0/src/rookery/workflows/install.py +205 -0
  53. rookery-0.7.0/src/rookery/workflows/pin.py +94 -0
  54. rookery-0.7.0/src/rookery/workflows/uninstall.py +180 -0
  55. rookery-0.7.0/src/rookery/workflows/update.py +303 -0
  56. rookery-0.7.0/src/rookery/workflows/versions.py +85 -0
rookery-0.7.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ben Elfner
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
rookery-0.7.0/PKG-INFO ADDED
@@ -0,0 +1,134 @@
1
+ Metadata-Version: 2.4
2
+ Name: rookery
3
+ Version: 0.7.0
4
+ Summary: Rookery - package manager for third-party development tools
5
+ Keywords: package-manager,cli,developer-tools,installer,linux
6
+ Author: belfner
7
+ Author-email: belfner <belfner@belfner.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: System Administrators
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: System :: Installation/Setup
19
+ Classifier: Topic :: System :: Software Distribution
20
+ Classifier: Topic :: Utilities
21
+ Requires-Dist: typer>=0.20.0
22
+ Requires-Dist: rich>=13.0.0
23
+ Requires-Dist: niquests>=3.18.4
24
+ Requires-Python: >=3.12
25
+ Project-URL: Homepage, https://github.com/belfner/rookery
26
+ Project-URL: Issues, https://github.com/belfner/rookery/issues
27
+ Project-URL: Repository, https://github.com/belfner/rookery
28
+ Description-Content-Type: text/markdown
29
+
30
+ # Rookery
31
+
32
+ Package manager for third-party dev tools on Linux. Installs, updates, and wires up symlinks, man pages, and desktop entries so you don't have to.
33
+
34
+ ## Features
35
+
36
+ - Async downloads with Rich progress bars
37
+ - Parallel batch installs
38
+ - Symlinks, man pages, and desktop entries set up automatically
39
+ - Only asks for sudo when the install paths actually need it
40
+ - GitHub API token support to avoid rate limits
41
+ - Version tracking with update and downgrade support
42
+ - List and install specific versions (`rookery install nvim@0.10.4`)
43
+ - Pin a version to hold it across updates (`rookery pin`)
44
+
45
+ ## Supported Programs
46
+
47
+ | Program | Type | Description |
48
+ |---------|------|-------------|
49
+ | bat | GitHub binary | `cat` clone with syntax highlighting |
50
+ | blender | Standalone | 3D creation suite |
51
+ | cuda-run | Shell script | Run a command in a throwaway uv environment with a PyPI CUDA toolkit |
52
+ | drawio | GitHub AppImage | Diagram editor |
53
+ | dust | GitHub binary | Intuitive `du` alternative |
54
+ | dysk | GitHub binary | Filesystem information tool |
55
+ | eza | GitHub binary | Modern `ls` replacement |
56
+ | fasttarutils | Python script | Multi-format tar compression/extraction (ftar/funtar) with parallel backends |
57
+ | fastziputils | Shell script | Zip compression/extraction with pv progress bars |
58
+ | gdu | GitHub binary | Disk usage analyzer |
59
+ | gping | GitHub binary | Ping with a graph |
60
+ | hyperfine | GitHub binary | Command-line benchmarking tool |
61
+ | imcat | GitHub source | 24-bit terminal image viewer, compiled from source |
62
+ | just | GitHub binary | Command runner |
63
+ | kpod | Shell script | `kubectl` wrappers that resolve a pod by name prefix |
64
+ | mc | GitHub binary | MinIO Client for S3-compatible object storage |
65
+ | netron | GitHub .deb | Neural network model viewer |
66
+ | nvim | GitHub binary | Hyperextensible Vim-based editor |
67
+ | storageexplorer | GitHub binary | Azure Storage Explorer |
68
+ | tarssh | Shell script | Stream a directory/file over SSH via tar pipe |
69
+ | yazi | GitHub binary | Terminal file manager |
70
+
71
+ ## Installation
72
+
73
+ Requires Python 3.12+ and [uv](https://docs.astral.sh/uv/).
74
+
75
+ ```bash
76
+ uv tool install rookery
77
+ ```
78
+
79
+ To install the development version from source:
80
+
81
+ ```bash
82
+ uv tool install git+https://github.com/belfner/rookery.git
83
+ ```
84
+
85
+ ## Usage
86
+
87
+ ```bash
88
+ rookery install nvim # Install the latest version
89
+ rookery install nvim@0.10.4 # Install a specific version
90
+ rookery install --all # Install all programs
91
+ rookery update # Update all installed programs
92
+ rookery update nvim --force # Force reinstall
93
+ rookery list # List installed programs (with pin status)
94
+ rookery uninstall nvim # Uninstall a program
95
+ rookery link --all # Create system links
96
+ rookery unlink --all # Remove system links
97
+ rookery info # Show configuration and stats
98
+ ```
99
+
100
+ ### Versions and pinning
101
+
102
+ ```bash
103
+ rookery versions nvim # List available versions (--all, --include-prerelease, --json)
104
+ rookery install nvim@0.10.4 --pin # Install a specific version and pin it
105
+ rookery pin nvim # Pin the currently installed version
106
+ rookery pin nvim 0.10.4 --install # Install a version, then pin it
107
+ rookery unpin nvim # Remove the pin
108
+ rookery pins # List pinned programs (--json)
109
+ ```
110
+
111
+ A pin holds a program at its pinned version: `rookery update` skips pinned programs and reports
112
+ them. Use `rookery unpin`, or `rookery install <prog>@<version> --pin`, to move a pinned program.
113
+ `rookery versions` and `rookery install <prog>@<version>` work for GitHub-release programs; programs
114
+ with a single bundled version (shell scripts) and a few composite sources install the latest only.
115
+
116
+ ### Environment Variables
117
+
118
+ | Variable | Description |
119
+ |----------|-------------|
120
+ | `ROOKERY_INSTALL_DIR` | Installation directory (default: `/opt/rookery-programs`) |
121
+ | `ROOKERY_BIN_DIR` | Binary symlink directory |
122
+ | `ROOKERY_DESKTOP_DIR` | Desktop entry directory |
123
+ | `ROOKERY_MAN_DIR` | Man page directory |
124
+ | `ROOKERY_TEMP_DIR` | Download staging directory (default: `/tmp/rookery`) |
125
+ | `ROOKERY_MAX_PARALLEL` | Concurrency limit for batch installs and updates (default: 10) |
126
+ | `GITHUB_TOKEN` / `GH_TOKEN` | GitHub API token for higher rate limits |
127
+
128
+ ## Adding a Program
129
+
130
+ Create a `Program` subclass in `src/rookery/programs/`. Programs are discovered automatically at runtime. See `agent_docs/new_program.md` for the template and conventions.
131
+
132
+ ## License
133
+
134
+ [MIT](https://github.com/belfner/rookery/blob/master/LICENSE)
@@ -0,0 +1,105 @@
1
+ # Rookery
2
+
3
+ Package manager for third-party dev tools on Linux. Installs, updates, and wires up symlinks, man pages, and desktop entries so you don't have to.
4
+
5
+ ## Features
6
+
7
+ - Async downloads with Rich progress bars
8
+ - Parallel batch installs
9
+ - Symlinks, man pages, and desktop entries set up automatically
10
+ - Only asks for sudo when the install paths actually need it
11
+ - GitHub API token support to avoid rate limits
12
+ - Version tracking with update and downgrade support
13
+ - List and install specific versions (`rookery install nvim@0.10.4`)
14
+ - Pin a version to hold it across updates (`rookery pin`)
15
+
16
+ ## Supported Programs
17
+
18
+ | Program | Type | Description |
19
+ |---------|------|-------------|
20
+ | bat | GitHub binary | `cat` clone with syntax highlighting |
21
+ | blender | Standalone | 3D creation suite |
22
+ | cuda-run | Shell script | Run a command in a throwaway uv environment with a PyPI CUDA toolkit |
23
+ | drawio | GitHub AppImage | Diagram editor |
24
+ | dust | GitHub binary | Intuitive `du` alternative |
25
+ | dysk | GitHub binary | Filesystem information tool |
26
+ | eza | GitHub binary | Modern `ls` replacement |
27
+ | fasttarutils | Python script | Multi-format tar compression/extraction (ftar/funtar) with parallel backends |
28
+ | fastziputils | Shell script | Zip compression/extraction with pv progress bars |
29
+ | gdu | GitHub binary | Disk usage analyzer |
30
+ | gping | GitHub binary | Ping with a graph |
31
+ | hyperfine | GitHub binary | Command-line benchmarking tool |
32
+ | imcat | GitHub source | 24-bit terminal image viewer, compiled from source |
33
+ | just | GitHub binary | Command runner |
34
+ | kpod | Shell script | `kubectl` wrappers that resolve a pod by name prefix |
35
+ | mc | GitHub binary | MinIO Client for S3-compatible object storage |
36
+ | netron | GitHub .deb | Neural network model viewer |
37
+ | nvim | GitHub binary | Hyperextensible Vim-based editor |
38
+ | storageexplorer | GitHub binary | Azure Storage Explorer |
39
+ | tarssh | Shell script | Stream a directory/file over SSH via tar pipe |
40
+ | yazi | GitHub binary | Terminal file manager |
41
+
42
+ ## Installation
43
+
44
+ Requires Python 3.12+ and [uv](https://docs.astral.sh/uv/).
45
+
46
+ ```bash
47
+ uv tool install rookery
48
+ ```
49
+
50
+ To install the development version from source:
51
+
52
+ ```bash
53
+ uv tool install git+https://github.com/belfner/rookery.git
54
+ ```
55
+
56
+ ## Usage
57
+
58
+ ```bash
59
+ rookery install nvim # Install the latest version
60
+ rookery install nvim@0.10.4 # Install a specific version
61
+ rookery install --all # Install all programs
62
+ rookery update # Update all installed programs
63
+ rookery update nvim --force # Force reinstall
64
+ rookery list # List installed programs (with pin status)
65
+ rookery uninstall nvim # Uninstall a program
66
+ rookery link --all # Create system links
67
+ rookery unlink --all # Remove system links
68
+ rookery info # Show configuration and stats
69
+ ```
70
+
71
+ ### Versions and pinning
72
+
73
+ ```bash
74
+ rookery versions nvim # List available versions (--all, --include-prerelease, --json)
75
+ rookery install nvim@0.10.4 --pin # Install a specific version and pin it
76
+ rookery pin nvim # Pin the currently installed version
77
+ rookery pin nvim 0.10.4 --install # Install a version, then pin it
78
+ rookery unpin nvim # Remove the pin
79
+ rookery pins # List pinned programs (--json)
80
+ ```
81
+
82
+ A pin holds a program at its pinned version: `rookery update` skips pinned programs and reports
83
+ them. Use `rookery unpin`, or `rookery install <prog>@<version> --pin`, to move a pinned program.
84
+ `rookery versions` and `rookery install <prog>@<version>` work for GitHub-release programs; programs
85
+ with a single bundled version (shell scripts) and a few composite sources install the latest only.
86
+
87
+ ### Environment Variables
88
+
89
+ | Variable | Description |
90
+ |----------|-------------|
91
+ | `ROOKERY_INSTALL_DIR` | Installation directory (default: `/opt/rookery-programs`) |
92
+ | `ROOKERY_BIN_DIR` | Binary symlink directory |
93
+ | `ROOKERY_DESKTOP_DIR` | Desktop entry directory |
94
+ | `ROOKERY_MAN_DIR` | Man page directory |
95
+ | `ROOKERY_TEMP_DIR` | Download staging directory (default: `/tmp/rookery`) |
96
+ | `ROOKERY_MAX_PARALLEL` | Concurrency limit for batch installs and updates (default: 10) |
97
+ | `GITHUB_TOKEN` / `GH_TOKEN` | GitHub API token for higher rate limits |
98
+
99
+ ## Adding a Program
100
+
101
+ Create a `Program` subclass in `src/rookery/programs/`. Programs are discovered automatically at runtime. See `agent_docs/new_program.md` for the template and conventions.
102
+
103
+ ## License
104
+
105
+ [MIT](https://github.com/belfner/rookery/blob/master/LICENSE)
@@ -0,0 +1,108 @@
1
+ [project]
2
+ name = "rookery"
3
+ version = "0.7.0"
4
+ description = "Rookery - package manager for third-party development tools"
5
+ readme = "README.md"
6
+ authors = [
7
+ { name = "belfner", email = "belfner@belfner.com" }
8
+ ]
9
+ license = "MIT"
10
+ license-files = ["LICENSE"]
11
+ requires-python = ">=3.12"
12
+ keywords = [
13
+ "package-manager",
14
+ "cli",
15
+ "developer-tools",
16
+ "installer",
17
+ "linux",
18
+ ]
19
+ classifiers = [
20
+ "Development Status :: 4 - Beta",
21
+ "Environment :: Console",
22
+ "Intended Audience :: Developers",
23
+ "Intended Audience :: System Administrators",
24
+ "Operating System :: POSIX :: Linux",
25
+ "Programming Language :: Python :: 3",
26
+ "Programming Language :: Python :: 3.12",
27
+ "Programming Language :: Python :: 3.13",
28
+ "Topic :: System :: Installation/Setup",
29
+ "Topic :: System :: Software Distribution",
30
+ "Topic :: Utilities",
31
+ ]
32
+ dependencies = [
33
+ "typer>=0.20.0",
34
+ "rich>=13.0.0",
35
+ "niquests>=3.18.4",
36
+ ]
37
+
38
+ [project.urls]
39
+ Homepage = "https://github.com/belfner/rookery"
40
+ Repository = "https://github.com/belfner/rookery"
41
+ Issues = "https://github.com/belfner/rookery/issues"
42
+
43
+ [dependency-groups]
44
+ dev = [
45
+ "mypy>=1.18.2",
46
+ "pre-commit>=4.3.0",
47
+ "pytest>=9.1.1",
48
+ "pytest-asyncio>=1.4.0",
49
+ "ruff>=0.14.3",
50
+ "ty>=0.0.1a25",
51
+ ]
52
+
53
+ [project.scripts]
54
+ rookery = "rookery.__main__:app"
55
+
56
+ [build-system]
57
+ requires = ["uv_build>=0.9.4,<0.10.0"]
58
+ build-backend = "uv_build"
59
+
60
+ [tool.ruff]
61
+ line-length = 120
62
+ target-version = "py312"
63
+ exclude = [
64
+ ".git",
65
+ ".mypy_cache",
66
+ ".pytest_cache",
67
+ ".ruff_cache",
68
+ ".venv",
69
+ ]
70
+
71
+ [tool.ruff.lint]
72
+ select = [
73
+ "E", # pycodestyle errors
74
+ "W", # pycodestyle warnings
75
+ "F", # pyflakes
76
+ "N", # pep8-naming
77
+ "UP", # pyupgrade
78
+ "B", # flake8-bugbear
79
+ "C4", # flake8-comprehensions
80
+ "PTH", # flake8-use-pathlib
81
+ "SIM", # flake8-simplify
82
+ "RET", # flake8-return
83
+ ]
84
+ ignore = [
85
+ "E501", # Line too long (handled by formatter)
86
+ "SIM118", # Use `key in dict` instead of `key in dict.keys()`
87
+ "RET505", # Superfluous else after return
88
+ ]
89
+
90
+ [tool.ruff.lint.per-file-ignores]
91
+ "tests/**/*.py" = [
92
+ "S101", # Allow assert in tests
93
+ ]
94
+
95
+ [tool.ruff.format]
96
+ quote-style = "double"
97
+ indent-style = "space"
98
+ docstring-code-format = true
99
+
100
+ [tool.mypy]
101
+ python_version = "3.12"
102
+ strict = true
103
+ disallow_untyped_decorators = false
104
+ files = ["src"]
105
+
106
+ [tool.pytest.ini_options]
107
+ asyncio_mode = "auto"
108
+ testpaths = ["tests"]
@@ -0,0 +1,12 @@
1
+ """Rookery - package manager for third-party development tools."""
2
+
3
+ from importlib.metadata import (
4
+ PackageNotFoundError,
5
+ version,
6
+ )
7
+
8
+
9
+ try:
10
+ __version__ = version("rookery")
11
+ except PackageNotFoundError:
12
+ __version__ = "0.0.0.dev"