backrefs


Namebackrefs JSON
Version 6.0.1 PyPI version JSON
download
home_pageNone
SummaryA wrapper around re and regex that adds additional back references.
upload_time2025-07-30 02:51:32
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords re regex
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            [![Donate via PayPal][donate-image]][donate-link]
[![Build][github-ci-image]][github-ci-link]
[![Coverage Status][codecov-image]][codecov-link]
[![PyPI Version][pypi-image]][pypi-link]
[![PyPI Downloads][pypi-down]][pypi-link]
[![PyPI - Python Version][python-image]][pypi-link]
[![License][license-image-mit]][license-link]

# Backrefs

Backrefs is a wrapper around Python's built-in [Re][re] and the 3rd party [Regex][regex] library.  Backrefs adds various
additional back references (and a couple other features) that are known to some regular expression engines, but not to
Python's Re and/or Regex.  The supported back references actually vary depending on the regular expression engine being
used as the engine may already have support for some.

```python
>>> from backrefs import bre
>>> pattern = bre.compile(r'(\p{Letter}+)')
>>> pattern.sub(r'\C\1\E', 'sometext')
'SOMETEXT'
```

# Documentation

https://facelessuser.github.io/backrefs/

# License

MIT

[github-ci-image]: https://github.com/facelessuser/backrefs/workflows/build/badge.svg
[github-ci-link]: https://github.com/facelessuser/backrefs/actions?query=workflow%3Abuild+branch%3Amaster
[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/backrefs/master.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333
[codecov-link]: https://codecov.io/github/facelessuser/backrefs
[pypi-image]: https://img.shields.io/pypi/v/backrefs.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
[pypi-down]: https://img.shields.io/pypi/dm/backrefs.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
[pypi-link]: https://pypi.python.org/pypi/backrefs
[python-image]: https://img.shields.io/pypi/pyversions/backrefs?logo=python&logoColor=aaaaaa&labelColor=333333
[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333
[license-link]: https://github.com/facelessuser/backrefs/blob/main/LICENSE.md
[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal
[donate-link]: https://www.paypal.me/facelessuser

[re]: https://docs.python.org/3/library/re.html
[regex]: https://pypi.python.org/pypi/regex

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "backrefs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "re, regex",
    "author": null,
    "author_email": "Isaac Muse <Isaac.Muse@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/91/e6/5eac48095081c358926a0cd8821351d7a013168b05cad9530fa3bcae3071/backrefs-6.0.1.tar.gz",
    "platform": null,
    "description": "[![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 Downloads][pypi-down]][pypi-link]\n[![PyPI - Python Version][python-image]][pypi-link]\n[![License][license-image-mit]][license-link]\n\n# Backrefs\n\nBackrefs is a wrapper around Python's built-in [Re][re] and the 3rd party [Regex][regex] library.  Backrefs adds various\nadditional back references (and a couple other features) that are known to some regular expression engines, but not to\nPython's Re and/or Regex.  The supported back references actually vary depending on the regular expression engine being\nused as the engine may already have support for some.\n\n```python\n>>> from backrefs import bre\n>>> pattern = bre.compile(r'(\\p{Letter}+)')\n>>> pattern.sub(r'\\C\\1\\E', 'sometext')\n'SOMETEXT'\n```\n\n# Documentation\n\nhttps://facelessuser.github.io/backrefs/\n\n# License\n\nMIT\n\n[github-ci-image]: https://github.com/facelessuser/backrefs/workflows/build/badge.svg\n[github-ci-link]: https://github.com/facelessuser/backrefs/actions?query=workflow%3Abuild+branch%3Amaster\n[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/backrefs/master.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333\n[codecov-link]: https://codecov.io/github/facelessuser/backrefs\n[pypi-image]: https://img.shields.io/pypi/v/backrefs.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333\n[pypi-down]: https://img.shields.io/pypi/dm/backrefs.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333\n[pypi-link]: https://pypi.python.org/pypi/backrefs\n[python-image]: https://img.shields.io/pypi/pyversions/backrefs?logo=python&logoColor=aaaaaa&labelColor=333333\n[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333\n[license-link]: https://github.com/facelessuser/backrefs/blob/main/LICENSE.md\n[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal\n[donate-link]: https://www.paypal.me/facelessuser\n\n[re]: https://docs.python.org/3/library/re.html\n[regex]: https://pypi.python.org/pypi/regex\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A wrapper around re and regex that adds additional back references.",
    "version": "6.0.1",
    "project_urls": {
        "Homepage": "https://github.com/facelessuser/backrefs"
    },
    "split_keywords": [
        "re",
        " regex"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "03c9482590c6e687e8e962d6446c5279a4b5f498c31dd0352352e106af6fd1d7",
                "md5": "865425cb099caa16b0035d0acbaf32e0",
                "sha256": "78a69e21b71d739b625b52b5adbf7eb1716fb4cf0a39833826f59546f321cb99"
            },
            "downloads": -1,
            "filename": "backrefs-6.0.1-py310-none-any.whl",
            "has_sig": false,
            "md5_digest": "865425cb099caa16b0035d0acbaf32e0",
            "packagetype": "bdist_wheel",
            "python_version": "py310",
            "requires_python": ">=3.9",
            "size": 381119,
            "upload_time": "2025-07-30T02:51:21",
            "upload_time_iso_8601": "2025-07-30T02:51:21.376070Z",
            "url": "https://files.pythonhosted.org/packages/03/c9/482590c6e687e8e962d6446c5279a4b5f498c31dd0352352e106af6fd1d7/backrefs-6.0.1-py310-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3dca7476846268a6382f0e7535fecedf81b514bdeae1404d2866040e1ec21ae3",
                "md5": "ea301b61afb2bb9980e0ec3e88e383db",
                "sha256": "6ba76d616ccb02479a3a098ad1f46d92225f280d7bdce7583bc62897f32d946c"
            },
            "downloads": -1,
            "filename": "backrefs-6.0.1-py311-none-any.whl",
            "has_sig": false,
            "md5_digest": "ea301b61afb2bb9980e0ec3e88e383db",
            "packagetype": "bdist_wheel",
            "python_version": "py311",
            "requires_python": ">=3.9",
            "size": 392915,
            "upload_time": "2025-07-30T02:51:23",
            "upload_time_iso_8601": "2025-07-30T02:51:23.311117Z",
            "url": "https://files.pythonhosted.org/packages/3d/ca/7476846268a6382f0e7535fecedf81b514bdeae1404d2866040e1ec21ae3/backrefs-6.0.1-py311-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6568349b7d6d646d36d00aca3fd9c80082ec8991138b74046afb1895235f4ae9",
                "md5": "ec219ef847f1b507c3e29656ad250c11",
                "sha256": "2f440f79f5ef5b9083fd366a09a976690044eca0ea0e59ac0508c3630e0ebc7c"
            },
            "downloads": -1,
            "filename": "backrefs-6.0.1-py312-none-any.whl",
            "has_sig": false,
            "md5_digest": "ec219ef847f1b507c3e29656ad250c11",
            "packagetype": "bdist_wheel",
            "python_version": "py312",
            "requires_python": ">=3.9",
            "size": 398827,
            "upload_time": "2025-07-30T02:51:24",
            "upload_time_iso_8601": "2025-07-30T02:51:24.741025Z",
            "url": "https://files.pythonhosted.org/packages/65/68/349b7d6d646d36d00aca3fd9c80082ec8991138b74046afb1895235f4ae9/backrefs-6.0.1-py312-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a74584853f5ce1182cc283beebd0a7f05e4210aac06b4f39192cefd60e5901b1",
                "md5": "58ad430331bfe6cd255a5ec740a9f90e",
                "sha256": "62ea7e9b286808576f35b2d28a0daa09b85ae2fc71b82a951d35729b0138e66b"
            },
            "downloads": -1,
            "filename": "backrefs-6.0.1-py313-none-any.whl",
            "has_sig": false,
            "md5_digest": "58ad430331bfe6cd255a5ec740a9f90e",
            "packagetype": "bdist_wheel",
            "python_version": "py313",
            "requires_python": ">=3.9",
            "size": 400784,
            "upload_time": "2025-07-30T02:51:26",
            "upload_time_iso_8601": "2025-07-30T02:51:26.577920Z",
            "url": "https://files.pythonhosted.org/packages/a7/45/84853f5ce1182cc283beebd0a7f05e4210aac06b4f39192cefd60e5901b1/backrefs-6.0.1-py313-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cb072e43935cbaa0ec12d7e225e942a3c1e39fc8233f7b18100bcbffd25e6192",
                "md5": "df0ff0ce0d180bb71af49a498ba05636",
                "sha256": "3ba0d943178d24a3721c5d915734767fa93f3bde1d317c4ef9e0f33b21b9c302"
            },
            "downloads": -1,
            "filename": "backrefs-6.0.1-py314-none-any.whl",
            "has_sig": false,
            "md5_digest": "df0ff0ce0d180bb71af49a498ba05636",
            "packagetype": "bdist_wheel",
            "python_version": "py314",
            "requires_python": ">=3.9",
            "size": 412645,
            "upload_time": "2025-07-30T02:51:28",
            "upload_time_iso_8601": "2025-07-30T02:51:28.521579Z",
            "url": "https://files.pythonhosted.org/packages/cb/07/2e43935cbaa0ec12d7e225e942a3c1e39fc8233f7b18100bcbffd25e6192/backrefs-6.0.1-py314-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e29b14e312dbbc994093caa942a3462dc9f5f54bd0770c8171c6f6aec06e8600",
                "md5": "6b4955d37d66faea460eb944eda9f819",
                "sha256": "b1a61b29c35cc72cfb54886164b626fbe64cab74e9d8dcac125155bd3acdb023"
            },
            "downloads": -1,
            "filename": "backrefs-6.0.1-py39-none-any.whl",
            "has_sig": false,
            "md5_digest": "6b4955d37d66faea460eb944eda9f819",
            "packagetype": "bdist_wheel",
            "python_version": "py39",
            "requires_python": ">=3.9",
            "size": 381118,
            "upload_time": "2025-07-30T02:51:30",
            "upload_time_iso_8601": "2025-07-30T02:51:30.749080Z",
            "url": "https://files.pythonhosted.org/packages/e2/9b/14e312dbbc994093caa942a3462dc9f5f54bd0770c8171c6f6aec06e8600/backrefs-6.0.1-py39-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "91e65eac48095081c358926a0cd8821351d7a013168b05cad9530fa3bcae3071",
                "md5": "b77676c23c7ebd8ff7c20b7b706d2df8",
                "sha256": "54f8453c9ae38417a83c06d23745c634138c8da622d87a12cb3eef9ba66dd466"
            },
            "downloads": -1,
            "filename": "backrefs-6.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b77676c23c7ebd8ff7c20b7b706d2df8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 5767249,
            "upload_time": "2025-07-30T02:51:32",
            "upload_time_iso_8601": "2025-07-30T02:51:32.816818Z",
            "url": "https://files.pythonhosted.org/packages/91/e6/5eac48095081c358926a0cd8821351d7a013168b05cad9530fa3bcae3071/backrefs-6.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-30 02:51:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "facelessuser",
    "github_project": "backrefs",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "backrefs"
}
        
Elapsed time: 0.68880s