Skip to main content

POSIX Parameter Expansion

GitHub PyPI PyPI - Python Version PyPI - Wheel PyPI - Downloads

Tests CodeQL pre-commit

This is an experiment to create a Python library to enable POSIX parameter expansion from a string.

Obvious Test Cases

    >>> from parameter_expansion import expand
    >>> foo = 'abc/123-def.ghi'
    >>> # Bland Expansion
    >>> expand('abc $foo abc')
    'abc abc/123-def.ghi abc'
    >>> expand('abc${foo}abc')
    'abcabc/123-def.ghiabc'
    >>>
    >>> # Default Value Expansion
    >>> expand('-${foo:-bar}-')
    '-abc/123-def.ghi-'
    >>> expand('-${bar:-bar}-')
    '-bar-'

Default Value Expansion

    >>> foo = 'abc/123-def.ghi'
    >>> expand('abc $foo abc')
    'abc abc/123-def.ghi abc'
    >>> expand('abc${foo}abc')
    'abcabc/123-def.ghiabc'

Metadata

Release files for parameter-expansion 0.2.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 parameter-expansion 0.2.0
File Size Uploaded Provenance Actions
parameter-expansion-0.2.0.tar.gz 9.0 kB Without provenance Details for parameter-expansion-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for parameter-expansion 0.2.0
File Interpreter ABI Platform Actions
parameter_expansion-0.2.0-py3-none-any.whl Python 3 none any Details for parameter_expansion-0.2.0-py3-none-any.whl

Total release size: 18.5 kB

Release files / parameter-expansion-0.2.0.tar.gz

Download URL parameter-expansion-0.2.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2ec886a657d3ee49e40d68574b1a5390318071b0c7208daf9f1143eee26511ab
BLAKE2b-256 checksum
How to use checksums
4ff3f629b31fdac9ffd7c79339eac22f0449a42e6ea53e57bea019806e2be177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.0 Darwin/20.5.0

Release files / parameter_expansion-0.2.0-py3-none-any.whl

Download URL parameter_expansion-0.2.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40d33a6e892dca848ccb930167acec45859fe6965dd1058493e174ddcd8496ae
BLAKE2b-256 checksum
How to use checksums
e799977fb7a03ba78d64de658707df1c52df8d85a965208ae5a80a5a3d4c6c3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.0 Darwin/20.5.0

Security for parameter-expansion 0.2.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.2.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