aiotempfile-0.5.4
توضیحات
Provides asynchronous temporary files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aiotempfile-0.5.4 |
| نام | aiotempfile |
| نسخه کتابخانه | 0.5.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Richard Davis |
| ایمیل نویسنده | crashvb@gmail.com |
| آدرس صفحه اصلی | https://github.com/crashvb/aiotempfile |
| آدرس اینترنتی | https://pypi.org/project/aiotempfile/ |
| مجوز | Apache License 2.0 |
# aiotempfile
[](https://pypi.org/project/aiotempfile)
[](https://github.com/crashvb/aiotempfile/actions)
[](https://coveralls.io/github/crashvb/aiotempfile)
[](https://pypi.org/project/aiotempfile)
[](https://github.com/PyCQA/pylint)
[](https://github.com/psf/black)
[](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)
نیازمندی
| مقدار | نام |
|---|---|
| - | aiofiles |
| - | black |
| - | coveralls |
| - | pylint |
| - | pytest |
| - | pytest-asyncio |
| - | twine |
| - | wheel |
نحوه نصب
نصب پکیج whl aiotempfile-0.5.4:
pip install aiotempfile-0.5.4.whl
نصب پکیج tar.gz aiotempfile-0.5.4:
pip install aiotempfile-0.5.4.tar.gz