{"id":15663951,"url":"https://github.com/facelessuser/bracex","last_synced_at":"2025-04-04T21:08:10.534Z","repository":{"id":32436857,"uuid":"133765873","full_name":"facelessuser/bracex","owner":"facelessuser","description":"Bash style brace expansion for Python","archived":false,"fork":false,"pushed_at":"2025-01-02T23:47:44.000Z","size":3232,"stargazers_count":24,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T20:07:49.215Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://facelessuser.github.io/bracex/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facelessuser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"facelessuser","custom":["https://www.paypal.me/facelessuser"]}},"created_at":"2018-05-17T06:00:10.000Z","updated_at":"2025-01-17T11:07:32.000Z","dependencies_parsed_at":"2025-01-19T02:16:54.331Z","dependency_job_id":"0a376b18-6713-49ba-86a0-c455b968912c","html_url":"https://github.com/facelessuser/bracex","commit_stats":{"total_commits":79,"total_committers":2,"mean_commits":39.5,"dds":"0.025316455696202556","last_synced_commit":"14645af4bf4de0e1abe4fd6c29bf98871f549273"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facelessuser%2Fbracex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facelessuser%2Fbracex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facelessuser%2Fbracex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facelessuser%2Fbracex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facelessuser","download_url":"https://codeload.github.com/facelessuser/bracex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249525,"owners_count":20908212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:40:38.225Z","updated_at":"2025-04-04T21:08:10.514Z","avatar_url":"https://github.com/facelessuser.png","language":"Python","funding_links":["https://github.com/sponsors/facelessuser","https://www.paypal.me/facelessuser"],"categories":[],"sub_categories":[],"readme":"[![Donate via PayPal][donate-image]][donate-link]\n[![Build][github-ci-image]][github-ci-link]\n[![Coverage Status][codecov-image]][codecov-link]\n[![PyPI Version][pypi-image]][pypi-link]\n[![PyPI - Python Version][python-image]][pypi-link]\n![License][license-image-mit]\n# Bracex\n\nBracex is a brace expanding library (à la Bash) for Python. Brace expanding is used to generate arbitrary strings.\n\n```console\n$ echo {{a,b},c}d\nad bd cd\n```\n\nBracex adds this ability to Python:\n\n```python\n\u003e\u003e\u003e bracex.expand(r'file-{{a,b},c}d.txt')\n['file-ad.txt', 'file-bd.txt', 'file-cd.txt']\n```\n\nand as a command:\n\n```console\n$ python3 -m bracex -0 \"base/{a,b}/{1..2}\" | xargs -0 mkdir -p\n$ tree base/\nbase/\n├── a\n│   ├── 1\n│   └── 2\n└── b\n    ├── 1\n    └── 2\n```\n\n- **Why Bracex over other solutions?**\n\n    Bracex actually follows pretty closely to how Bash processes braces. It is not a 1:1 implementation of how Bash\n    handles braces, but generally, it follows very closely. Almost all of the test cases are run through Bash first,\n    then our implementation is compared against the results Bash gives. There are a few cases where we have purposely\n    deviated. For instance, we are not handling Bash's command line inputs, so we are not giving special meaning to back\n    ticks and quotes at this time.\n\n    On the command line Bracex can handle more expansions than Bash itself.\n\n## Install\n\n```console\n$ pip install bracex\n```\n\n## Documentation\n\nDocumentation is found here: https://facelessuser.github.io/bracex/.\n\n## License\n\nMIT License\n\n[github-ci-image]: https://github.com/facelessuser/bracex/actions/workflows/build.yml/badge.svg?branch=master\u0026event=push\n[github-ci-link]: https://github.com/facelessuser/bracex/actions?query=workflow%3Abuild+branch%3Amaster\n[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/bracex/master.svg?logo=codecov\u0026logoColor=aaaaaa\u0026labelColor=333333\n[codecov-link]: https://codecov.io/github/facelessuser/bracex\n[pypi-image]: https://img.shields.io/pypi/v/bracex.svg?logo=pypi\u0026logoColor=aaaaaa\u0026labelColor=333333\n[pypi-link]: https://pypi.python.org/pypi/bracex\n[python-image]: https://img.shields.io/pypi/pyversions/bracex?logo=python\u0026logoColor=aaaaaa\u0026labelColor=333333\n[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333\n[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal\n[donate-link]: https://www.paypal.me/facelessuser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacelessuser%2Fbracex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacelessuser%2Fbracex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacelessuser%2Fbracex/lists"}