Skip to main content

A lightweight archive downloader for pre-built binary dependencies.

Project description

Poks

CI Status Test coverage percentage

uv Ruff pypeline pre-commit

PyPI Version Supported Python versions License


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

Install via pip (or your favorite package manager):

pip install poks

Programmatic Usage

Poks is designed to be easily integrated into your Python scripts.

Quick Start

from pathlib import Path
from poks.poks import Poks

# Initialize Poks with a root directory for apps/cache
poks = Poks(root_dir=Path("./.tools"))

# Install a specific application
# (Automatically searches configured buckets)
poks.install_app("cmake@3.28.1")

# Install from a configuration file (poks.json)
poks.install(Path("poks.json"))

# Uninstall
poks.uninstall(app_name="cmake", version="3.28.1")

CLI Usage

You can also use Poks from the command line.

Installation (CLI)

Install via pipx:

pipx install poks

Quick Start

Create a poks.json configuration file:

{
    "buckets": [
        {
            "name": "main",
            "url": "https://github.com/poks/main-bucket.git"
        }
    ],
    "apps": [
        {
            "name": "cmake",
            "version": "3.28.1",
            "bucket": "main"
        }
    ]
}

Install the defined tools:

poks install -c poks.json

CLI Reference

# Install tools from config file
poks install -c poks.json

# Install a specific tool
poks install zephyr-sdk@0.16.5-1 --bucket main

# Uninstall a specific version
poks uninstall zephyr-sdk@0.16.5-1

# Uninstall all versions of an app
poks uninstall zephyr-sdk

# Uninstall everything
poks uninstall --all

Documentation

For detailed specifications and manifest format, see docs/specs.md.

Contributing

We welcome contributions! Please see our development guidelines below.

Setup and Development

This project uses pypeline for build automation and uv for dependency management.

  1. Install Prerequisites: Ensure you have Python 3.10+ and uv installed. pypeline will automatically use uv to create virtual environments.

  2. Install Pypeline:

    uv tool install pypeline-runner
    
  3. Run the Pipeline: The pipeline handles environment setup, linting, and testing.

    # Run full pipeline (lint + tests)
    pypeline run
    
    # Run only linting (pre-commit hooks)
    pypeline run --step PreCommit
    
    # Run tests with specific Python version
    pypeline run --step CreateVEnv --step PyTest --single --input python_version=3.13
    

AI Agents

For AI agents contributing to this project, please explicitly read and follow AGENTS.md for detailed instructions on workflows, coding standards, and verification steps.

Credits

Copier

This package was created with Copier and the browniebroke/pypackage-template project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poks-0.2.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poks-0.2.1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file poks-0.2.1.tar.gz.

File metadata

  • Download URL: poks-0.2.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for poks-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f4186aa2d55c55693e2a41b234b8b8a19a0fa3ff4e3bc50a771d373b0be5b3fb
MD5 07a0d2e6ad4a9c5059d5010a704e9687
BLAKE2b-256 957a8d70345e2318eadc84ee9ddc695084d744de6e668ce896fa0a6ae480ca5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for poks-0.2.1.tar.gz:

Publisher: ci.yml on cuinixam/poks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file poks-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: poks-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for poks-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8236fb20c0bbe2e03044841d6e8351a5dc88fa4eb0d51bc7f70016f2f56e2259
MD5 b1bf7d447ceca18290bd9c46b6a6418e
BLAKE2b-256 dfab62aa2ae4fb9cbcdad9d1ed0235e7bc5beb340b547ebdb75d5fb8f49cc7a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for poks-0.2.1-py3-none-any.whl:

Publisher: ci.yml on cuinixam/poks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page