Skip to main content
Release files added late

2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

CLSP

CLSP short for Command Line Selection Prompt, is a by fzf inspired, minimalistic, and fast to navigate single choice prompt.

from clsp import select


user_choice = select([1, 2, 3], info="Please pick a number:")

print("You selected:")
print(user_choice)

Preview

CLSP is designed to be user-friendly, minimal, and very easy to understand.

Due to it's search function, it supports large lists and spares the end-user unnecessary frustration.

It's especially useful if you'd like the user to choose between files, numbers, country codes, and much more.

Documentation

# CLSP can be easily imported using:
from clsp import select

# You can then show the actual prompt by calling the select function while passing a list type as the positional argument.

user_choice = select(["Choose me!", "Dare to choose me!"])

# You can navigate using the arrow key up and the arrow key down while pressing enter to confirm your selection.

You can provide additional key arguments for further configuration:

Name Type Description
title STR Information shown above the prompt.
prompt STR Text in front of user input.
search STR Pre-insert text into the input prompt.
current INT Index as the default selection.
rows INT Amount of choices at a time.
cutoff FLOAT Precision of search. (0 < x < 1).
amount_results INT The maximum amount of search results to return.
highlight_color STR Highlight color for search (black, red, green, yellow, blue, magenta, cyan, white).
full_exit BOOL Exit completely or pass None on KeyBoardInterrupt or ESC.
ignore_warnings BOOL Ignore warnings.
# The function 'select' will return a Selection object which holds following attributes:

print(f"Selected value: {user_choice.value}")
# > "Choose me!" or "Dare to choose me!"

print(f"Index: {user_choice.index}")
# > 0 or 1

if user_choice.search:

	print(f"Search-Query: {user_choice.search}")
	# > For example 'Dare'

	print(f"Search Result: {user_choice.search_result}")
	# > For example ["Dare to chose me!"]

Metadata

Release files for clsp 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for clsp 1.4
File Size Uploaded Provenance Actions
clsp-1.4.0.tar.gz 6.2 kB File added late: Without provenance Details for clsp-1.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for clsp 1.4
File Interpreter ABI Platform Actions
clsp-1.4.0-py3-none-any.whl Python 3 none any Details for clsp-1.4.0-py3-none-any.whl
clsp-1.4-py3-none-any.whl Python 3 none any Details for clsp-1.4-py3-none-any.whl

Total release size: 19.6 kB

Release files / clsp-1.4.0.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL clsp-1.4.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8db54f233788a43c66ca30e51b9fc8ad153adbff40ea898b612768255ee72edc
BLAKE2b-256 checksum
How to use checksums
e47b3bc6fe623e2ecd4a4072ccbb50e048ad445dc1e5c7bcafbb36a6686050e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / clsp-1.4.0-py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL clsp-1.4.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75bfa93dc542c94c2f1bef6b1e2812b2ff40ae276a68eb21bf6166e7f6f28d53
BLAKE2b-256 checksum
How to use checksums
5e409494ea27f2cd42849390e1acb1e9459b4dd2b269aaf77f28a969e9a16d2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / clsp-1.4-py3-none-any.whl

Download URL clsp-1.4-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ab3292b51247a4e1a55fb2f7f924411b3450d5cbf68139d909e2c3eff3d2efe
BLAKE2b-256 checksum
How to use checksums
eb475bd35c9faa46869c8320611b5120ca2562a0182baf3978707031c7db1bdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Security for clsp 1.4

Upload timing

Release files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page