Pickley

4.6.1 · active · verified Thu Apr 16

Pickley is a Python library and CLI tool designed to automate the installation and management of standalone Python command-line interfaces (CLIs). It functions similarly to pipx, but with the key difference that installed CLIs automatically self-upgrade upon use. Pickley is portable and aims for zero-configuration, installing CLIs within the same directory it resides, supporting any PyPI package with console_scripts entry points. The current version is 4.6.1, and it maintains a regular release cadence with frequent updates as seen in its GitHub release history.

Common errors

Warnings

Install

Imports

Quickstart

Pickley is primarily used as a command-line interface. After installation, you can use the `pickley` command to install and manage other Python CLIs. The example demonstrates how to install a tool like 'tox' and 'hatch' and then run it, reflecting its main utility. While it can be imported, its core functionality is exposed via the shell commands.

import os

# Ensure ~/.local/bin is in PATH for pickley to be found
# This is a common setup for CLI tools
# For a true quickstart, users would typically install via the bash commands above
# and then use `pickley` directly in their shell.
# This Python quickstart demonstrates programmatic interaction if needed.

# Example of using pickley programmatically (less common for its primary use-case)
# For CLI, you'd run commands like 'pickley install tox'

# This is a placeholder as direct programmatic API isn't extensively documented
# on PyPI/GitHub for installing other CLIs. The core functionality is via shell.
# For the purpose of this registry, showing CLI usage is more accurate.
# We simulate the shell interaction for clarity.

# Assuming pickley is installed and in PATH
# The actual Python API would be more involved than a simple 'import pickley'
# and would likely involve calling internal functions or a main entry point.
# For a quickstart focusing on its primary use:

print("To install a CLI like 'tox':")
print("$" + " pickley install tox")
print("To run an installed CLI:")
print("$" + " tox --version")
print("To install a specific version:")
print("$" + " pickley install 'hatch<2'")

view raw JSON →