pyfill


Namepyfill JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
Summarypyfill is a tool to detect Python versions and automatically replace deprecated features (e.g. datetime.utcnow) with alternative methods.
upload_time2025-02-27 10:10:44
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseCC0-1.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyfill
pyfill is a tool that detects Python versions and replaces deprecated features or standard libraries (e.g. datetime.utcnow) with alternative methods using only the standard library or Python itself whenever possible.
## Why this exists
I use deprecated features in the process of maintaining multiple libraries, such as apsig, and then use the same features in multiple versions by replacing them with alternative features in deprecated and subsequent versions. However, this method does not allow me to reuse the same deprecated features when creating another library (except for copy/paste, etc.). To make this possible, this library is licensed under CC0.
## Current Features
- `datetime.utcnow()` (`pyfill.datetime.utcnow()`)
- `datetime.utcfromtimestamp()` (`pyfill.datetime.utcfromtimestamp()`)
## Other Alternatives
[`audioop-lts`](https://github.com/AbstractUmbra/audioop): LTS port for the audioop module, which was removed in 3.13 and deprecated in 3.11.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyfill",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "AmaseCocoa <cocoa@amase.cc>",
    "download_url": "https://files.pythonhosted.org/packages/2a/24/4d0a4c14bf12c64a19a802054deedf8c3ee0cf39ef5a98914523502e9fd6/pyfill-0.1.2.tar.gz",
    "platform": null,
    "description": "# pyfill\npyfill is a tool that detects Python versions and replaces deprecated features or standard libraries (e.g. datetime.utcnow) with alternative methods using only the standard library or Python itself whenever possible.\n## Why this exists\nI use deprecated features in the process of maintaining multiple libraries, such as apsig, and then use the same features in multiple versions by replacing them with alternative features in deprecated and subsequent versions. However, this method does not allow me to reuse the same deprecated features when creating another library (except for copy/paste, etc.). To make this possible, this library is licensed under CC0.\n## Current Features\n- `datetime.utcnow()` (`pyfill.datetime.utcnow()`)\n- `datetime.utcfromtimestamp()` (`pyfill.datetime.utcfromtimestamp()`)\n## Other Alternatives\n[`audioop-lts`](https://github.com/AbstractUmbra/audioop): LTS port for the audioop module, which was removed in 3.13 and deprecated in 3.11.\n",
    "bugtrack_url": null,
    "license": "CC0-1.0",
    "summary": "pyfill is a tool to detect Python versions and automatically replace deprecated features (e.g. datetime.utcnow) with alternative methods.",
    "version": "0.1.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0aaa22d6600cfeb0f4266a2504a2860ddd8292ea8640a8521419959489d2f9a9",
                "md5": "27328409552a54b03eef313d66d56f60",
                "sha256": "0566902fe6075d3554767d4aa265fbeb7bfb01876e5d07103ba00988f63333cc"
            },
            "downloads": -1,
            "filename": "pyfill-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "27328409552a54b03eef313d66d56f60",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5020,
            "upload_time": "2025-02-27T10:10:43",
            "upload_time_iso_8601": "2025-02-27T10:10:43.316729Z",
            "url": "https://files.pythonhosted.org/packages/0a/aa/22d6600cfeb0f4266a2504a2860ddd8292ea8640a8521419959489d2f9a9/pyfill-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2a244d0a4c14bf12c64a19a802054deedf8c3ee0cf39ef5a98914523502e9fd6",
                "md5": "844283c8350bfc8629c02ae66581ff3d",
                "sha256": "e8be1a3f17d1b6afd635c65128ae1432307b2470de3bf328c56d164f111dc347"
            },
            "downloads": -1,
            "filename": "pyfill-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "844283c8350bfc8629c02ae66581ff3d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4162,
            "upload_time": "2025-02-27T10:10:44",
            "upload_time_iso_8601": "2025-02-27T10:10:44.270188Z",
            "url": "https://files.pythonhosted.org/packages/2a/24/4d0a4c14bf12c64a19a802054deedf8c3ee0cf39ef5a98914523502e9fd6/pyfill-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-27 10:10:44",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pyfill"
}
        
Elapsed time: 1.57102s