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.1.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

bracex-1.1.1-py2.py3-none-any.whl (13.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: bracex-1.1.1.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for bracex-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1344a148d68ba34b7fe52d4e04903e174ba65ee609065e97a5ed0aed4fa360c6
MD5 a1cd7bfd1b6def4474869fdd69c88a13
BLAKE2b-256 dbc31741310ca195704300175c0ade1840353bf7469048d665b3a7374ffdd688

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bracex-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for bracex-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6bf29a906f48823f34dff54be050378417e8fc62627a37e43041b262af4d25e9
MD5 b031db122e3c68e0388556806720d086
BLAKE2b-256 acd4e8b001a6734d64f63900f0a64deab9b9e1f5d3bcd0768bbe16c66a3e373e

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