How to Install and Uninstall python3-django-pglocks Package on Kali Linux

Last updated: May 19,2024

1. Install "python3-django-pglocks" package

In this section, we are going to explain the necessary steps to install python3-django-pglocks on Kali Linux

$ sudo apt update $ sudo apt install python3-django-pglocks

2. Uninstall "python3-django-pglocks" package

In this section, we are going to explain the necessary steps to uninstall python3-django-pglocks on Kali Linux:

$ sudo apt remove python3-django-pglocks $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-django-pglocks package on Kali Linux

Package: python3-django-pglocks
Source: django-pglocks
Version: 1.0.4-1
Installed-Size: 27
Maintainer: Debian Python Team
Architecture: all
Depends: python3-django, python3-six, python3:any
Size: 5432
SHA256: bfdf9902bd99c7c5717adc0cfc80c6b33d45eba369cf7c2859f113eb2a76709c
SHA1: 4a9e6a46dabfcfa3558db83e43d31cad6c108079
MD5sum: 971759082e17566bba873f3cab491cfe
Description: Django based context manager for PostgreSQL advisory locks (Python3 version)
django-pglocks is a context manager for Django.
Advisory locks are application-level locks that are acquired and released
purely by the client of the database; PostgreSQL never acquires them on its
own. They are very useful as a way of signalling to other sessions that a
higher-level resource than a single row is in use, without having to lock an
entire table or some other structure.
.
It's entirely up to the application to correctly acquire the right lock.
.
Advisory locks are either session locks or transaction locks. A session lock
is held until the database session disconnects (or is reset); a transaction
lock is held until the transaction terminates.
.
Currently, the context manager only creates session locks, as the behavior of
a lock persisting after the context body has been exited is surprising, and
there's no way of releasing a transaction-scope advisory lock except to exit
the transaction.
.
This package contains the Python 3 version of the library.
Description-md5:
Homepage: https://github.com/Xof/django-pglocks
Section: python
Priority: optional
Filename: pool/main/d/django-pglocks/python3-django-pglocks_1.0.4-1_all.deb