aiotempfile


Nameaiotempfile JSON
Version 0.5.5 PyPI version JSON
download
home_pagehttps://github.com/crashvb/aiotempfile
SummaryProvides asynchronous temporary files.
upload_time2024-08-18 00:49:43
maintainerNone
docs_urlNone
authorRichard Davis
requires_pythonNone
licenseApache License 2.0
keywords aio aiotempfile async asynchronous file files temp temporary
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # aiotempfile

[![pypi version](https://img.shields.io/pypi/v/aiotempfile.svg)](https://pypi.org/project/aiotempfile)
[![build status](https://github.com/crashvb/aiotempfile/actions/workflows/main.yml/badge.svg)](https://github.com/crashvb/aiotempfile/actions)
[![coverage status](https://coveralls.io/repos/github/crashvb/aiotempfile/badge.svg)](https://coveralls.io/github/crashvb/aiotempfile)
[![python versions](https://img.shields.io/pypi/pyversions/aiotempfile.svg?logo=python&logoColor=FBE072)](https://pypi.org/project/aiotempfile)
[![linting](https://img.shields.io/badge/linting-pylint-yellowgreen)](https://github.com/PyCQA/pylint)
[![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![license](https://img.shields.io/github/license/crashvb/aiotempfile.svg)](https://github.com/crashvb/aiotempfile/blob/master/LICENSE.md)

## Overview

Provides asynchronous temporary files.

## Installation
### From [pypi.org](https://pypi.org/project/aiotempfile/)

```
$ pip install aiotempfile
```

### From source code

```bash
$ git clone https://github.com/crashvb/aiotempfile
$ cd aiotempfile
$ virtualenv env
$ source env/bin/activate
$ python -m pip install --editable .[dev]
```

## Usage

This implementation is a derivation of [aiofiles](https://pypi.org/project/aiofile/) and functions the same way.

```python
import aiotempfile
async with aiotempfile.open() as file:
    file.write(b"data")
```

If the context manager is not used, files will need be explicitly closed; otherwise, they will only be removed during the interepreter teardown.

```python
import aiotempfile
file = await aiotempfile.open()
file.write(b"data")
file.close()
```

### Environment Variables

| Variable | Default Value | Description |
| ---------| ------------- | ----------- |
| AIOTEMPFILE\_DEBUG | | Adds additional debug logging.

## Development

[Source Control](https://github.com/crashvb/aiotempfile)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/crashvb/aiotempfile",
    "name": "aiotempfile",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "aio aiotempfile async asynchronous file files temp temporary",
    "author": "Richard Davis",
    "author_email": "crashvb@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/83/f3/ea9f30296b965bd4b2ad1819c483d7cb305eaef1157cd67e6a6fbe9652ee/aiotempfile-0.5.5.tar.gz",
    "platform": null,
    "description": "# aiotempfile\n\n[![pypi version](https://img.shields.io/pypi/v/aiotempfile.svg)](https://pypi.org/project/aiotempfile)\n[![build status](https://github.com/crashvb/aiotempfile/actions/workflows/main.yml/badge.svg)](https://github.com/crashvb/aiotempfile/actions)\n[![coverage status](https://coveralls.io/repos/github/crashvb/aiotempfile/badge.svg)](https://coveralls.io/github/crashvb/aiotempfile)\n[![python versions](https://img.shields.io/pypi/pyversions/aiotempfile.svg?logo=python&logoColor=FBE072)](https://pypi.org/project/aiotempfile)\n[![linting](https://img.shields.io/badge/linting-pylint-yellowgreen)](https://github.com/PyCQA/pylint)\n[![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![license](https://img.shields.io/github/license/crashvb/aiotempfile.svg)](https://github.com/crashvb/aiotempfile/blob/master/LICENSE.md)\n\n## Overview\n\nProvides asynchronous temporary files.\n\n## Installation\n### From [pypi.org](https://pypi.org/project/aiotempfile/)\n\n```\n$ pip install aiotempfile\n```\n\n### From source code\n\n```bash\n$ git clone https://github.com/crashvb/aiotempfile\n$ cd aiotempfile\n$ virtualenv env\n$ source env/bin/activate\n$ python -m pip install --editable .[dev]\n```\n\n## Usage\n\nThis implementation is a derivation of [aiofiles](https://pypi.org/project/aiofile/) and functions the same way.\n\n```python\nimport aiotempfile\nasync with aiotempfile.open() as file:\n    file.write(b\"data\")\n```\n\nIf the context manager is not used, files will need be explicitly closed; otherwise, they will only be removed during the interepreter teardown.\n\n```python\nimport aiotempfile\nfile = await aiotempfile.open()\nfile.write(b\"data\")\nfile.close()\n```\n\n### Environment Variables\n\n| Variable | Default Value | Description |\n| ---------| ------------- | ----------- |\n| AIOTEMPFILE\\_DEBUG | | Adds additional debug logging.\n\n## Development\n\n[Source Control](https://github.com/crashvb/aiotempfile)\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Provides asynchronous temporary files.",
    "version": "0.5.5",
    "project_urls": {
        "Bug Reports": "https://github.com/crashvb/aiotempfile/issues",
        "Homepage": "https://github.com/crashvb/aiotempfile",
        "Source": "https://github.com/crashvb/aiotempfile"
    },
    "split_keywords": [
        "aio",
        "aiotempfile",
        "async",
        "asynchronous",
        "file",
        "files",
        "temp",
        "temporary"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4906078297d3a261b2771fc1078210293bb6d08e0bbea7c55811b10c4ac29be6",
                "md5": "838947f6b8e4ede687847ee91c17a166",
                "sha256": "28400bfd227cca8fecf0d5dfbe3891bd1934419a6eadf7fc5d89ad27b198f04c"
            },
            "downloads": -1,
            "filename": "aiotempfile-0.5.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "838947f6b8e4ede687847ee91c17a166",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9380,
            "upload_time": "2024-08-18T00:49:42",
            "upload_time_iso_8601": "2024-08-18T00:49:42.727851Z",
            "url": "https://files.pythonhosted.org/packages/49/06/078297d3a261b2771fc1078210293bb6d08e0bbea7c55811b10c4ac29be6/aiotempfile-0.5.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "83f3ea9f30296b965bd4b2ad1819c483d7cb305eaef1157cd67e6a6fbe9652ee",
                "md5": "60c682845a65bd05ad810f7d6e256e73",
                "sha256": "d0a0fa4b9a9f71ccc75e1fb01690e1e6af73bf8ae4c3fb4ffb65ee0e12606a26"
            },
            "downloads": -1,
            "filename": "aiotempfile-0.5.5.tar.gz",
            "has_sig": false,
            "md5_digest": "60c682845a65bd05ad810f7d6e256e73",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8659,
            "upload_time": "2024-08-18T00:49:43",
            "upload_time_iso_8601": "2024-08-18T00:49:43.598225Z",
            "url": "https://files.pythonhosted.org/packages/83/f3/ea9f30296b965bd4b2ad1819c483d7cb305eaef1157cd67e6a6fbe9652ee/aiotempfile-0.5.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-18 00:49:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "crashvb",
    "github_project": "aiotempfile",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aiotempfile"
}
        
Elapsed time: 0.33832s