aiotempfile
Overview
Provides asynchronous temporary files.
Installation
From pypi.org
$ pip install aiotempfile
From source code
$ 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 and functions the same way.
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.
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
Release files for aiotempfile 0.5.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiotempfile-0.5.5.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiotempfile-0.5.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / aiotempfile-0.5.5.tar.gz
| Download URL | aiotempfile-0.5.5.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0a0fa4b9a9f71ccc75e1fb01690e1e6af73bf8ae4c3fb4ffb65ee0e12606a26
|
|
BLAKE2b-256 checksum How to use checksums |
83f3ea9f30296b965bd4b2ad1819c483d7cb305eaef1157cd67e6a6fbe9652ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.4
|
Release files / aiotempfile-0.5.5-py3-none-any.whl
| Download URL | aiotempfile-0.5.5-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28400bfd227cca8fecf0d5dfbe3891bd1934419a6eadf7fc5d89ad27b198f04c
|
|
BLAKE2b-256 checksum How to use checksums |
4906078297d3a261b2771fc1078210293bb6d08e0bbea7c55811b10c4ac29be6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.4
|