Skip to main content

Bash style brace expander.

Project description

Unix Build Status Windows Build Status Coverage PyPI 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']

Install

$ pip install bracex

Documentation

Documentation is found here: http://facelessuser.github.io/bracex/.

License

MIT License

Copyright (c) 2018 - 2019 Isaac Muse

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bracex-1.1.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

bracex-1.1-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bracex-1.1.tar.gz.

File metadata

  • Download URL: bracex-1.1.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for bracex-1.1.tar.gz
Algorithm Hash digest
SHA256 34d318a00ea620cf71c9ea0e36b383059a84de2f32047d0c50df62d3207f0370
MD5 10f26d2e102ef051e5352e202c1b84e4
BLAKE2b-256 277b3f1f42f0350cb4dbffcbf525ebc023edb2353342be670ed5da2b85cb715d

See more details on using hashes here.

File details

Details for the file bracex-1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: bracex-1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for bracex-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dd11f9edc0eb31d3e5e317e7924c31488ea034f91cfc87e5933ac65d379fd986
MD5 941fec249b0d3a51f40f36373a2977b0
BLAKE2b-256 a184ec1e93b6d657322ac7835947380103fde8654a97240dade01a588680f2f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page