How to Install and Uninstall python-temps Package on openSUSE Leap

Last updated: May 22,2024

1. Install "python-temps" package

This tutorial shows how to install python-temps on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install python-temps

2. Uninstall "python-temps" package

Please follow the guidelines below to uninstall python-temps on openSUSE Leap:

$ sudo zypper remove python-temps

3. Information about the python-temps package on openSUSE Leap

Information for package python-temps:
-------------------------------------
Repository : Main Repository
Name : python-temps
Version : 0.3.0-bp153.1.13
Arch : noarch
Vendor : openSUSE
Installed Size : 16,2 KiB
Installed : No
Status : not installed
Source package : python-temps-0.3.0-bp153.1.13.src
Summary : Context managers for creating and cleaning up temporary directories and files
Description :
temps is a python module containing context managers for creating and
cleaning up temporary files and directories.
* It has a context manager for creating a temp dir and another for
temp files.
* The context manager cleans up the dir or file upon context exit,
not upon file closure.
* No ambiguity about whether you can or cannot open a file twice.
* You can set the permissions of the temp file or dir to what you
want.
* It is very clear what the implementation is:
+ directories are created and the path is returned.
+ files are not created, since you'll want to do that in a with
open(filename) ... statement, and the path is returned.
+ directories and files are cleaned up by the context managers.
+ file and dir names are generated using the uuid module, which
presumably will avoid race conditions.