A lightweight archive downloader for pre-built binary dependencies.
Project description
Poks
Source Code: https://github.com/cuinixam/poks
A lightweight, cross-platform archive downloader for pre-built binary dependencies. Inspired by Scoop, Poks provides a uniform way to install and manage developer tools using simple JSON manifests.
While Poks includes a CLI, its main purpose is to be used programmatically to manage dependencies in your Python projects and automation scripts.
Features
- Programmatic API: First-class Python support for integrating into your tools
- Cross-Platform: Works on Windows, Linux, and macOS
- No Admin Rights: Installs tools in user space
- Deterministic: Pin exact versions in manifests for reproducible builds
- Relocatable: The apps directory is self-contained and portable
Installation
pip install poks
For CLI-only usage:
pipx install poks
Concepts
- App: A tool or dependency you want to install (e.g., CMake, a compiler toolchain). Each app has a name and one or more versions.
- Manifest: A JSON file that describes an app — its download URLs, checksums, and platform-specific archives. One manifest per app (e.g.,
cmake.json). See examples/cmake.json. - Bucket: A git repository containing a collection of manifests. Buckets are how manifests are shared and distributed.
- Config file: A JSON file (
poks.json) that ties it all together — it lists which buckets to use and which apps (with versions) to install from them. See examples/poks.json.
Installing apps
From a config file
Use a config file when you want to define a reproducible set of tools for a project. The config references one or more buckets and lists the apps to install from them.
poks install --config poks.json
From a bucket
Install a single app directly, without a config file. Poks looks up the app's manifest in the specified bucket.
poks install --app cmake --version 3.28.1 --bucket main
poks install --app cmake --version 3.28.1 --bucket https://github.com/poks/main-bucket.git
poks install --app cmake --version 3.28.1 # searches all local buckets
From a manifest file
Install directly from a local manifest file — no bucket needed. Useful for testing a manifest before publishing it to a bucket. The app name is derived from the filename.
poks install --manifest cmake.json --version 4.2.3
Platform filtering
Apps in a config file can be restricted to specific operating systems or architectures using the os and arch fields. Apps that don't match the current platform are silently skipped.
{
"apps": [
{ "name": "cmake", "version": "3.28.1", "bucket": "main" },
{ "name": "mingw-tools", "version": "1.0.0", "bucket": "extras", "os": ["windows"] },
{ "name": "build-essential", "version": "1.0.0", "bucket": "extras", "os": ["linux", "macos"] }
]
}
Supported values — os: windows, linux, macos; arch: x86_64, aarch64. When omitted, the app is installed on all platforms.
Other commands
poks uninstall cmake@3.28.1 # specific version
poks uninstall cmake # all versions
poks uninstall --all # everything
poks search cmake # search across local buckets
poks list # list installed apps
Python API
Poks is designed to be used programmatically. See examples/ for complete scripts.
from pathlib import Path
from poks.poks import Poks
poks = Poks(root_dir=Path.home() / ".poks")
poks.install(Path("poks.json")) # from config file
poks.install_app("cmake", "3.28.1", bucket="main") # from bucket
poks.install_from_manifest(Path("cmake.json"), "3.28.1") # from manifest file
Manifest format
For the manifest schema and detailed specifications, see docs/specs.md.
Contributing
This project uses pypeline for build automation and uv for dependency management.
# Install pypeline
uv tool install pypeline-runner
# Run full pipeline (lint + tests)
pypeline run
For AI agents, see AGENTS.md.
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poks-0.7.0.tar.gz.
File metadata
- Download URL: poks-0.7.0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c8d632c1712529914990fdc7476ae317c141315495e432c2e3688a40258202c
|
|
| MD5 |
e52fb16f299fcdf4bef8c819ba593ad5
|
|
| BLAKE2b-256 |
1571a1b7e783d9283ecd6991aa0bfebcdcbed54b7b1b528a710817030c32a766
|
Provenance
The following attestation bundles were made for poks-0.7.0.tar.gz:
Publisher:
ci.yml on cuinixam/poks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
poks-0.7.0.tar.gz -
Subject digest:
8c8d632c1712529914990fdc7476ae317c141315495e432c2e3688a40258202c - Sigstore transparency entry: 957440759
- Sigstore integration time:
-
Permalink:
cuinixam/poks@c97510417ef49260d74bd07e54a6dc4bc3f61b4f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cuinixam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c97510417ef49260d74bd07e54a6dc4bc3f61b4f -
Trigger Event:
push
-
Statement type:
File details
Details for the file poks-0.7.0-py3-none-any.whl.
File metadata
- Download URL: poks-0.7.0-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50de6dc612fc8e9e6259696e558fbed13c2b0a17f31483d4bc4fc0222690f4c8
|
|
| MD5 |
e267eb6d2b478c3389344d9706543819
|
|
| BLAKE2b-256 |
bdc5268af395f061e6c1414d7c701758ece73c362054e422bf328fcaee48e969
|
Provenance
The following attestation bundles were made for poks-0.7.0-py3-none-any.whl:
Publisher:
ci.yml on cuinixam/poks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
poks-0.7.0-py3-none-any.whl -
Subject digest:
50de6dc612fc8e9e6259696e558fbed13c2b0a17f31483d4bc4fc0222690f4c8 - Sigstore transparency entry: 957440788
- Sigstore integration time:
-
Permalink:
cuinixam/poks@c97510417ef49260d74bd07e54a6dc4bc3f61b4f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cuinixam
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c97510417ef49260d74bd07e54a6dc4bc3f61b4f -
Trigger Event:
push
-
Statement type: