How to Install and Uninstall python-decorator Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 02,2024

1. Install "python-decorator" package

Learn how to install python-decorator on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python-decorator

2. Uninstall "python-decorator" package

Here is a brief guide to show you how to uninstall python-decorator on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python-decorator $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-decorator package on Ubuntu 21.10 (Impish Indri)

Package: python-decorator
Architecture: all
Version: 4.4.2-0ubuntu1
Multi-Arch: foreign
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 43
Depends: python2:any (<< 2.8), python2:any (>= 2.7~)
Enhances: python-pylons
Filename: pool/universe/p/python-decorator/python-decorator_4.4.2-0ubuntu1_all.deb
Size: 10256
MD5sum: 3c5dd4eb68962aeab13569e8aaa5201e
SHA1: 858d4b7e7c3ea3639965dfdb18a393a7d0529b9b
SHA256: 05f986622c8ccf4e3b3d9e2293f81d484b4c92fc5f1ef53c2b3aa1c6223a2e4c
SHA512: 3ea03b7cb4b0fb77cdceaf7c96cd1b190bd905e793a25c8c2a79c86b35728d28ac9ce4be1f4ada27a2077e3af5b9d40d1688d11c5a8073a061101137e2085764
Homepage: https://pypi.python.org/pypi/decorator
Description-en: simplify usage of Python decorators by programmers
Python 2.4 decorators have significantly changed the way Python programs are
structured.
* decorators help reduce boilerplate code;
* decorators help the separation of concerns;
* decorators enhance readability and maintainability;
* decorators are very explicit.
Still, as of now, writing custom decorators correctly requires some
experience and is not as easy as it could be. For instance, typical
implementations of decorators involve nested functions and we all know that
flat is better than nested.
The aim of the decorator module it to simplify the usage of decorators for
the average programmer and to popularize decorators usage giving examples of
useful decorators, such as memoize, tracing, redirecting_stdout, locked, etc.
Description-md5: 09bcb708a2302a7d9046e3a7b8bdcbef