Documentation: https://jalvaradosegura.github.io/tmp-folder/
tmp-folder
Easily create a temporary folder. Put files in it and after you're done tmp-folder will delete the folder automatically.
Installation
Install from PyPI:
pip install tmp-folder
Usage
This is the minimum you need to get started with tmp-folder:
from pathlib import Path
from tmp_folder import use_tmp_folder
@use_tmp_folder
def foo(tmp_folder: Path):
pass
Just decorate the function in which you need a temporary folder. Then add as first parameter, the variable that will hold the temporary folder path (it can be named however you want). Finally, after the function execution is completed, the folder will be deleted.
Metadata
Release files for tmp-folder 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tmp_folder-0.2.0.tar.gz | 3.3 kB | Without provenance | Details for tmp_folder-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tmp_folder-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for tmp_folder-0.2.0-py3-none-any.whl |
Total release size: 6.7 kB
Release files / tmp_folder-0.2.0.tar.gz
| Download URL | tmp_folder-0.2.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9864955a30cd250c5c81822ae9c5b215c23fba847cfd5b804d9eae5afa1187fb
|
|
BLAKE2b-256 checksum How to use checksums |
4509c9610e97af89478f3176b6657efb8608f66c6bfb96fe101e12e0f03af8cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.2 Darwin/20.6.0
|
Release files / tmp_folder-0.2.0-py3-none-any.whl
| Download URL | tmp_folder-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bc73073b31839ea5d1b488fd46bbfa3761a3ff9dd56331ad39d7a5c2de77660
|
|
BLAKE2b-256 checksum How to use checksums |
1b7cdd8714b8e2e47b9ac55735c0814d621e9f1a133b80d402aeecc91db41991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.2 Darwin/20.6.0
|
Security for tmp-folder 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.