pylegacy


Namepylegacy JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/pylegacy/pylegacy
SummaryBackports for abandoned Python versions
upload_time2023-10-21 11:41:26
maintainerVíctor Molina García
docs_urlNone
author
requires_python>=2.6, !=3.0.*, !=3.1.*, <3.12
licensePython Software Foundation License
keywords compatibility backports legacy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pylegacy

This library aims to provide backports from Python newer versions into
abandoned Python versions.

The `pylegacy` package tree structure resembles that of the Python
standard libraries, i.e. `pylegacy` consists of `pylegacy.abc`,
`pylegacy.builtins`, `pylegacy.os`, and so on. If a backport is
available for a piece of missing functionality, it can be used by
importing the functionality from the `pylegacy` namespace.

For example, `os.makedirs` in Python 2.7 lacks the `exist_ok` argument,
first introduced in Python 3.2. To enable this functionality, one would
replace the following failing code snippet:
```python
import os
os.makedirs("example_folder", exist_ok=True)
# Traceback (most recent call last):
#   File "<stdin>", line 1, in <module>
# TypeError: makedirs() got an unexpected keyword argument 'exist_ok'
```

with the following working code snippet:
```python
from pylegacy import os
os.makedirs("example_folder", exist_ok=True)
```

## License

The `pylegacy` package is released under the [MIT] license (see the
[`LICENSE`] file):
```
Copyright (c) 2021-2023 Víctor Molina García

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.
```

Significant portions of the `pylegacy` package are derivative work of
the Python standard libraries. The Python source code is released under
the terms of the [PSF-2.0] license and is Copyright (c) 2001-2022 Python
Software Foundation, All rights reserved. A copy of the [PSF-2.0]
license can be found in the [`LICENSE.PSF-2.0`] file.

[MIT]:
https://spdx.org/licenses/MIT.html
[PSF-2.0]:
https://spdx.org/licenses/PSF-2.0.html
[`LICENSE`]:
https://github.com/pylegacy/pylegacy/blob/v0.2.0/LICENSE
[`LICENSE.PSF-2.0`]:
https://github.com/pylegacy/pylegacy/blob/v0.2.0/LICENSE.PSF-2.0



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pylegacy/pylegacy",
    "name": "pylegacy",
    "maintainer": "V\u00edctor Molina Garc\u00eda",
    "docs_url": null,
    "requires_python": ">=2.6, !=3.0.*, !=3.1.*, <3.12",
    "maintainer_email": "molinav@users.noreply.github.com",
    "keywords": "compatibility,backports,legacy",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/eb/43/092acd9dc5a59d93cfeeaf723800281aae2381185dd68005a46ae1cdadfa/pylegacy-0.2.0.zip",
    "platform": null,
    "description": "# pylegacy\n\nThis library aims to provide backports from Python newer versions into\nabandoned Python versions.\n\nThe `pylegacy` package tree structure resembles that of the Python\nstandard libraries, i.e. `pylegacy` consists of `pylegacy.abc`,\n`pylegacy.builtins`, `pylegacy.os`, and so on. If a backport is\navailable for a piece of missing functionality, it can be used by\nimporting the functionality from the `pylegacy` namespace.\n\nFor example, `os.makedirs` in Python 2.7 lacks the `exist_ok` argument,\nfirst introduced in Python 3.2. To enable this functionality, one would\nreplace the following failing code snippet:\n```python\nimport os\nos.makedirs(\"example_folder\", exist_ok=True)\n# Traceback (most recent call last):\n#   File \"<stdin>\", line 1, in <module>\n# TypeError: makedirs() got an unexpected keyword argument 'exist_ok'\n```\n\nwith the following working code snippet:\n```python\nfrom pylegacy import os\nos.makedirs(\"example_folder\", exist_ok=True)\n```\n\n## License\n\nThe `pylegacy` package is released under the [MIT] license (see the\n[`LICENSE`] file):\n```\nCopyright (c) 2021-2023 V\u00edctor Molina Garc\u00eda\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\nSignificant portions of the `pylegacy` package are derivative work of\nthe Python standard libraries. The Python source code is released under\nthe terms of the [PSF-2.0] license and is Copyright (c) 2001-2022 Python\nSoftware Foundation, All rights reserved. A copy of the [PSF-2.0]\nlicense can be found in the [`LICENSE.PSF-2.0`] file.\n\n[MIT]:\nhttps://spdx.org/licenses/MIT.html\n[PSF-2.0]:\nhttps://spdx.org/licenses/PSF-2.0.html\n[`LICENSE`]:\nhttps://github.com/pylegacy/pylegacy/blob/v0.2.0/LICENSE\n[`LICENSE.PSF-2.0`]:\nhttps://github.com/pylegacy/pylegacy/blob/v0.2.0/LICENSE.PSF-2.0\n\n\n",
    "bugtrack_url": null,
    "license": "Python Software Foundation License",
    "summary": "Backports for abandoned Python versions",
    "version": "0.2.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/pylegacy/pylegacy/issues",
        "Homepage": "https://github.com/pylegacy/pylegacy",
        "Source": "https://github.com/pylegacy/pylegacy"
    },
    "split_keywords": [
        "compatibility",
        "backports",
        "legacy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1772980304eaf8cb7db1a86fa96ff6209716625822b8e0c84edee679176b3cdd",
                "md5": "c2d77e226cda6fe42e3a5f7702f71330",
                "sha256": "7cab56b716f719f9ecdf4ab3b39977f8f767a899995f176c92fd7c89491b8f17"
            },
            "downloads": -1,
            "filename": "pylegacy-0.2.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c2d77e226cda6fe42e3a5f7702f71330",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.6, !=3.0.*, !=3.1.*, <3.12",
            "size": 14458,
            "upload_time": "2023-10-21T11:41:24",
            "upload_time_iso_8601": "2023-10-21T11:41:24.802298Z",
            "url": "https://files.pythonhosted.org/packages/17/72/980304eaf8cb7db1a86fa96ff6209716625822b8e0c84edee679176b3cdd/pylegacy-0.2.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eb43092acd9dc5a59d93cfeeaf723800281aae2381185dd68005a46ae1cdadfa",
                "md5": "36f48feb9bf8111c42a961a252b89d22",
                "sha256": "ad34c459db9383a6141f2ba80b8b12ca511c4cf63a973095d38562c9089e7d18"
            },
            "downloads": -1,
            "filename": "pylegacy-0.2.0.zip",
            "has_sig": false,
            "md5_digest": "36f48feb9bf8111c42a961a252b89d22",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.6, !=3.0.*, !=3.1.*, <3.12",
            "size": 36338,
            "upload_time": "2023-10-21T11:41:26",
            "upload_time_iso_8601": "2023-10-21T11:41:26.424142Z",
            "url": "https://files.pythonhosted.org/packages/eb/43/092acd9dc5a59d93cfeeaf723800281aae2381185dd68005a46ae1cdadfa/pylegacy-0.2.0.zip",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-21 11:41:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pylegacy",
    "github_project": "pylegacy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pylegacy"
}
        
Elapsed time: 2.07182s