tempfile312


Nametempfile312 JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummaryBackport of Python 3.12's tempfile library for Python 3.8+
upload_time2024-12-10 22:50:52
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords tempfile backport
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            tempfile312
===========

Backport of Python 3.12's `tempfile` library for older Python versions. Notably, supports
the `delete_on_close` parameter to `NamedTemporaryFile` to make it useful on Windows.

See official documentation here: https://docs.python.org/3.12/library/tempfile.html.

Major changes from Python 3.8:
- Added *delete\_on\_close* parameter to `NamedTemporaryFile`
- Added *ignore\_cleanup\_errors* and *delete* parameters to `TemporaryDirectory`
- `gettempdir()` always returns a str. Previously it would return any tempdir value regardless of type so long as it was not `None`.
- `SpooledTemporaryFile` fully implements the `io.BufferedIOBase` and `io.TextIOBase` abstract base classes (depending on whether binary or text mode was specified).
- `mkdtemp()` now always returns an absolute path, even if dir is relative.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tempfile312",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "tempfile, backport",
    "author": null,
    "author_email": "Red Balloon Security <ofrak@redballoonsecurity.com>",
    "download_url": "https://files.pythonhosted.org/packages/fb/dc/ef06f6d6a68318cec0e9e2fee0bd881282a07ebce06b5e5bf782a83b3f4f/tempfile312-1.0.1.tar.gz",
    "platform": null,
    "description": "tempfile312\n===========\n\nBackport of Python 3.12's `tempfile` library for older Python versions. Notably, supports\nthe `delete_on_close` parameter to `NamedTemporaryFile` to make it useful on Windows.\n\nSee official documentation here: https://docs.python.org/3.12/library/tempfile.html.\n\nMajor changes from Python 3.8:\n- Added *delete\\_on\\_close* parameter to `NamedTemporaryFile`\n- Added *ignore\\_cleanup\\_errors* and *delete* parameters to `TemporaryDirectory`\n- `gettempdir()` always returns a str. Previously it would return any tempdir value regardless of type so long as it was not `None`.\n- `SpooledTemporaryFile` fully implements the `io.BufferedIOBase` and `io.TextIOBase` abstract base classes (depending on whether binary or text mode was specified).\n- `mkdtemp()` now always returns an absolute path, even if dir is relative.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Backport of Python 3.12's tempfile library for Python 3.8+",
    "version": "1.0.1",
    "project_urls": {
        "Documentation": "https://docs.python.org/3.12/library/tempfile.html",
        "Homepage": "https://github.com/rbs-forks/tempfile312",
        "Source": "https://github.com/rbs-forks/tempfile312"
    },
    "split_keywords": [
        "tempfile",
        " backport"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6decf2a0c83ac290c055c64b6e4515b2ba81199494016855d123feb77b509270",
                "md5": "779fe4ce4e416a932ea25429190fa37f",
                "sha256": "45001c0645170bf6b350e3ff3154d726890e6432028fba2737ccd7b9c1a92315"
            },
            "downloads": -1,
            "filename": "tempfile312-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "779fe4ce4e416a932ea25429190fa37f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 19088,
            "upload_time": "2024-12-10T22:50:50",
            "upload_time_iso_8601": "2024-12-10T22:50:50.904462Z",
            "url": "https://files.pythonhosted.org/packages/6d/ec/f2a0c83ac290c055c64b6e4515b2ba81199494016855d123feb77b509270/tempfile312-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbdcef06f6d6a68318cec0e9e2fee0bd881282a07ebce06b5e5bf782a83b3f4f",
                "md5": "f89b4c33b152d9557c8ff778bca1b5f4",
                "sha256": "0324691192bf2e1655af6f0c6366d9bee9612874a34b9bfd7f820fa2f4dd5031"
            },
            "downloads": -1,
            "filename": "tempfile312-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f89b4c33b152d9557c8ff778bca1b5f4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 33958,
            "upload_time": "2024-12-10T22:50:52",
            "upload_time_iso_8601": "2024-12-10T22:50:52.044161Z",
            "url": "https://files.pythonhosted.org/packages/fb/dc/ef06f6d6a68318cec0e9e2fee0bd881282a07ebce06b5e5bf782a83b3f4f/tempfile312-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-10 22:50:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rbs-forks",
    "github_project": "tempfile312",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tempfile312"
}
        
Elapsed time: 0.50776s