Skip to main content

MiniMindsLab Shell Quote

Deterministically escape and unescape POSIX shell arguments and command lines for offline text processing.

Features

  • quote(text) -> str: quote a single token for POSIX shell safety.
  • unquote(text) -> str: parse one shell token and return its unescaped content.
  • join(tokens) -> str: build a command line from token list.
  • split(command_line) -> list[str]: split a command line into POSIX-like tokens.

All functionality is implemented with Python standard library only.

Example

from minimindslab_shell_quote import quote, join, split, unquote

assert quote("a b") == "'a b'"
assert quote("simple") == "simple"

tokens = ["a", "b c", "d'e"]
cmd = join(tokens)
assert split(cmd) == tokens

assert unquote("'hello world'") == "hello world"

Metadata

Release files for minimindslab-shell-quote 0.1.0

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

Source distribution (sdist)

Source distribution for minimindslab-shell-quote 0.1.0
File Size Uploaded Provenance
minimindslab_shell_quote-0.1.0.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for minimindslab-shell-quote 0.1.0
File Interpreter ABI Platform
minimindslab_shell_quote-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / minimindslab_shell_quote-0.1.0.tar.gz

Download URL minimindslab_shell_quote-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
84485546a9f1097a24926b4f18e1a932109f8d11822a46fa0d2efa311b71ff5e
BLAKE2b-256 checksum
How to use checksums
5962569ff51d2d1e7e8f67ac050292f88fdcd8b2079015dbf70ccd59b5d61cb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Release files / minimindslab_shell_quote-0.1.0-py3-none-any.whl

Download URL minimindslab_shell_quote-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6601dc5fb8e9aeb5e4e1795c73bf95b44383bfe8931da88b382ab3c4134c4f0
BLAKE2b-256 checksum
How to use checksums
0497962b6c4d0d29f336e50265acf9d278562f4b6600e8dbd97feab2b7987f41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Security for minimindslab-shell-quote 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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