bracex 2.7
pip install bracex
Released:
Bash style brace expander.
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
๐ Avatar for facelessuser from gravatar.comfacelessuser
Unverified details
These details have not been verified by PyPIMeta
-
License Expression: MIT
SPDX License Expression - Author: Isaac Muse
- Tags bash , brace , expand
- Requires: Python >=3.10
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
- Typing
Project description
๐ Donate via PayPal
๐ Coverage Status
๐ PyPI Version
๐ PyPI - Python Version
๐ License
Bracex
Bracex is a brace expanding library (ร la Bash) for Python. Brace expanding is used to generate arbitrary strings.
$ echo{{a,b},c}d ad bd cd
Bracex adds this ability to Python:
>>> bracex.expand(r'file-{{a,b},c}d.txt') ['file-ad.txt', 'file-bd.txt', 'file-cd.txt']
and as a command:
$ python3-mbracex-0"base/{a,b}/{1..2}"|xargs-0mkdir-p $ treebase/ base/ โโโ a โ โโโ 1 โ โโโ 2 โโโ b โโโ 1 โโโ 2
-
Why Bracex over other solutions?
Bracex actually follows pretty closely to how Bash processes braces. It is not a 1:1 implementation of how Bash handles braces, but generally, it follows very closely. Almost all of the test cases are run through Bash first, then our implementation is compared against the results Bash gives. There are a few cases where we have purposely deviated. For instance, we are not handling Bash's command line inputs, so we are not giving special meaning to back ticks and quotes at this time.
On the command line Bracex can handle more expansions than Bash itself.
Install
$ pipinstallbracex
Documentation
Documentation is found here: https://facelessuser.github.io/bracex/.
License
MIT License
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
๐ Avatar for facelessuser from gravatar.comfacelessuser
Unverified details
These details have not been verified by PyPIMeta
-
License Expression: MIT
SPDX License Expression - Author: Isaac Muse
- Tags bash , brace , expand
- Requires: Python >=3.10
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
- Typing
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bracex-2.7.tar.gz.
File metadata
- Download URL: bracex-2.7.tar.gz
- Upload date:
- Size: 42.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cb5d415a707f6beeb2779099486090bf98cbd8b7edbdfcb7cbea2f5fe6bdb48
|
|
| MD5 |
603309d75dc8f45a5870070b799ab525
|
|
| BLAKE2b-256 |
377ca2a8a52db0ee751007507ddad3a1ddf1b0f763de546c588e7a828579bdad
|
Provenance
The following attestation bundles were made for bracex-2.7.tar.gz:
Publisher:
deploy.yml on facelessuser/bracex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bracex-2.7.tar.gz -
Subject digest:
4cb5d415a707f6beeb2779099486090bf98cbd8b7edbdfcb7cbea2f5fe6bdb48 - Sigstore transparency entry: 1998447780
- Sigstore integration time:
-
Permalink:
facelessuser/bracex@022d3e73614fb9515b97714aaaf9a8b85cf08ea4 -
Branch / Tag:
refs/tags/2.7-fixed - Owner: https://github.com/facelessuser
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@022d3e73614fb9515b97714aaaf9a8b85cf08ea4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bracex-2.7-py3-none-any.whl.
File metadata
- Download URL: bracex-2.7-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
025043774188f8a05db36de9e3d4f7d82a8509a41a115cc134c44a60c36375eb
|
|
| MD5 |
9ec497f608d986a799154eb5ce746f21
|
|
| BLAKE2b-256 |
ba2467865d7a710d86de496c7984e06023aa3656b5fae16ee229a530b57c0491
|
Provenance
The following attestation bundles were made for bracex-2.7-py3-none-any.whl:
Publisher:
deploy.yml on facelessuser/bracex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bracex-2.7-py3-none-any.whl -
Subject digest:
025043774188f8a05db36de9e3d4f7d82a8509a41a115cc134c44a60c36375eb - Sigstore transparency entry: 1998447875
- Sigstore integration time:
-
Permalink:
facelessuser/bracex@022d3e73614fb9515b97714aaaf9a8b85cf08ea4 -
Branch / Tag:
refs/tags/2.7-fixed - Owner: https://github.com/facelessuser
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@022d3e73614fb9515b97714aaaf9a8b85cf08ea4 -
Trigger Event:
push
-
Statement type:
