regex-as-re-globally


Nameregex-as-re-globally JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/brondsem/regex-as-re-globally/
SummaryCreates a regex-as-re-globally.pth to replace stdlib "re" module with "regex" module globally before any code runs.
upload_time2023-05-22 21:39:45
maintainer
docs_urlNone
authorDave Brondsema
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## regex-as-re-globally

This package does very unusual things, and you normally don't need it.
It helps you use the "[regex](https://pypi.org/project/regex/)" package which is a backwards-compatible replacement for `re`, with additional features and better performance in some situations (and worse performance in others).
Normally you can put `import regex as re` in your .py files and that's all you need.

However, if you want to use `regex` instead of `re` across your whole environment, even within 3rd-party libraries, then this package is for you.

Run `pip install regex-as-re-globally` to install this package.
It will create a .pth file in site-packages which modifies `sys.modules` so that `regex` is used _everywhere_ instead of `re`.
**This changes behavior within the whole python environment.**

The wheel files generated are platform and python specific due to the limitations of wheel files, where the relative directory for site-packages needs to be determined at wheel building time, not install time. The directory is dependent on the version of python and the platform you are on.

The site-packages .pth technique is heavily inspired by https://github.com/dougn/coverage_pth and https://nedbatchelder.com/blog/201001/running_code_at_python_startup.html  Thanks!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/brondsem/regex-as-re-globally/",
    "name": "regex-as-re-globally",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Dave Brondsema",
    "author_email": "dave@brondsema.net",
    "download_url": "https://files.pythonhosted.org/packages/2c/b6/6c6aa810ee11af46311587bd2cc40c285db58ceb70a6dd85bdf607eaced6/regex-as-re-globally-0.0.3.tar.gz",
    "platform": null,
    "description": "## regex-as-re-globally\n\nThis package does very unusual things, and you normally don't need it.\nIt helps you use the \"[regex](https://pypi.org/project/regex/)\" package which is a backwards-compatible replacement for `re`, with additional features and better performance in some situations (and worse performance in others).\nNormally you can put `import regex as re` in your .py files and that's all you need.\n\nHowever, if you want to use `regex` instead of `re` across your whole environment, even within 3rd-party libraries, then this package is for you.\n\nRun `pip install regex-as-re-globally` to install this package.\nIt will create a .pth file in site-packages which modifies `sys.modules` so that `regex` is used _everywhere_ instead of `re`.\n**This changes behavior within the whole python environment.**\n\nThe wheel files generated are platform and python specific due to the limitations of wheel files, where the relative directory for site-packages needs to be determined at wheel building time, not install time. The directory is dependent on the version of python and the platform you are on.\n\nThe site-packages .pth technique is heavily inspired by https://github.com/dougn/coverage_pth and https://nedbatchelder.com/blog/201001/running_code_at_python_startup.html  Thanks!\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Creates a regex-as-re-globally.pth to replace stdlib \"re\" module with \"regex\" module globally before any code runs.",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/brondsem/regex-as-re-globally/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2cb66c6aa810ee11af46311587bd2cc40c285db58ceb70a6dd85bdf607eaced6",
                "md5": "304e07a807b1818cfda755cc5c8e45e9",
                "sha256": "8d2beee25e72db147cc42fc81bd6a9f3331bd6a0c69e0881d6040f7c964278dc"
            },
            "downloads": -1,
            "filename": "regex-as-re-globally-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "304e07a807b1818cfda755cc5c8e45e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3210,
            "upload_time": "2023-05-22T21:39:45",
            "upload_time_iso_8601": "2023-05-22T21:39:45.215020Z",
            "url": "https://files.pythonhosted.org/packages/2c/b6/6c6aa810ee11af46311587bd2cc40c285db58ceb70a6dd85bdf607eaced6/regex-as-re-globally-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-22 21:39:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "brondsem",
    "github_project": "regex-as-re-globally",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "regex-as-re-globally"
}
        
Elapsed time: 0.08208s