Skip to main content

Provides asynchronous temporary files.

Project description

aiotempfile

pypi version build status coverage status python versions linting code style license

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

Source Control

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiotempfile-0.5.5.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

aiotempfile-0.5.5-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file aiotempfile-0.5.5.tar.gz.

File metadata

  • Download URL: aiotempfile-0.5.5.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.4

File hashes

Hashes for aiotempfile-0.5.5.tar.gz
Algorithm Hash digest
SHA256 d0a0fa4b9a9f71ccc75e1fb01690e1e6af73bf8ae4c3fb4ffb65ee0e12606a26
MD5 60c682845a65bd05ad810f7d6e256e73
BLAKE2b-256 83f3ea9f30296b965bd4b2ad1819c483d7cb305eaef1157cd67e6a6fbe9652ee

See more details on using hashes here.

File details

Details for the file aiotempfile-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: aiotempfile-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.4

File hashes

Hashes for aiotempfile-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 28400bfd227cca8fecf0d5dfbe3891bd1934419a6eadf7fc5d89ad27b198f04c
MD5 838947f6b8e4ede687847ee91c17a166
BLAKE2b-256 4906078297d3a261b2771fc1078210293bb6d08e0bbea7c55811b10c4ac29be6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page