How to Install and Uninstall python3-wurlitzer Package on Ubuntu 21.10 (Impish Indri)

Last updated: June 26,2024

1. Install "python3-wurlitzer" package

This guide covers the steps necessary to install python3-wurlitzer on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-wurlitzer

2. Uninstall "python3-wurlitzer" package

Learn how to uninstall python3-wurlitzer on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-wurlitzer $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-wurlitzer package on Ubuntu 21.10 (Impish Indri)

Package: python3-wurlitzer
Architecture: all
Version: 2.0.1-2
Priority: optional
Section: universe/python
Source: wurlitzer
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 35
Depends: python3:any
Filename: pool/universe/w/wurlitzer/python3-wurlitzer_2.0.1-2_all.deb
Size: 7396
MD5sum: eab491e76a8b62c45e584fb14ba28c53
SHA1: 751363dfba50a270c6a0a8e697f59983c1f1cad9
SHA256: 4d0e9b8a18c9f6ca7349337587396032611d3653f1b13c5a9f36a894fcc90970
SHA512: 8dc340912478c00ed28a031a789e2b5c5979d11d5d04b8c3fdb721964e1958a051a8d4d05862e7a70c5dd30ff3aeb251bfe2cf63f29db43d67a7d4e3e40e5fd6
Homepage: https://github.com/minrk/wurlitzer
Description-en: Capture C-level output in context managers
A common task in Python (especially while testing or
debugging) is to redirect sys.stdout to a stream or a file while
executing some piece of code. However, simply "redirecting stdout" is
sometimes not as easy as one would expect. In particular, things
become interesting when you want C code running within your Python
process (including, but not limited to, Python modules implemented as
C extensions) to also have its stdout redirected according to your
wish. This turns out to be tricky and leads us into the interesting
world of file descriptors, buffers and system calls.
.
This package supports redirecting this output in a straightforward way
using a context manager.
Description-md5: f588cb01be6f440a7f9c10edfc926830