How to Install and Uninstall python3-natsort Package on Kali Linux
Last updated: May 19,2024
1. Install "python3-natsort" package
Please follow the instructions below to install python3-natsort on Kali Linux
$
sudo apt update
Copied
$
sudo apt install
python3-natsort
Copied
2. Uninstall "python3-natsort" package
Please follow the guidance below to uninstall python3-natsort on Kali Linux:
$
sudo apt remove
python3-natsort
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the python3-natsort package on Kali Linux
Package: python3-natsort
Source: natsort
Version: 8.0.2-2
Installed-Size: 166
Maintainer: Debian Python Team
Architecture: all
Depends: python3:any
Suggests: python-natsort-doc
Size: 38984
SHA256: 3806ced883e0c89ef25e9df852dfffc48e1bd63f0f2b0275f12b990dbcaa8b91
SHA1: de9825d8d39749ad685186e0eb83354f6432bd35
MD5sum: 20dbe4f7b43df74bc17218ef41ea30d6
Description: Natural sorting for Python (Python3)
natsort lets you apply natural sorting to your sequences easily, for example:
.
>>> from natsort import natsorted
>>> a = ['a2', 'a9', 'a1', 'a4', 'a10']
>>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']]
>>> natsorted(a)
['a1', 'a2', 'a4', 'a9', 'a10'
>>> natsorted(data)
[['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']]
.
natsort identifies the numbers and sorts them separately from strings.
.
natsort comes with a shell script to use natural sorting in shell scripts. You
can also execute natsort from the command line with Python -m natsort.
.
There exists another natural sorting package for Python called
python-naturalsort. You may prefer that package if you wish to only sort
version numbers.
.
This is the Python 3 version of the package.
Description-md5:
Homepage: https://github.com/SethMMorton/natsort
Section: python
Priority: optional
Filename: pool/main/n/natsort/python3-natsort_8.0.2-2_all.deb
Source: natsort
Version: 8.0.2-2
Installed-Size: 166
Maintainer: Debian Python Team
Architecture: all
Depends: python3:any
Suggests: python-natsort-doc
Size: 38984
SHA256: 3806ced883e0c89ef25e9df852dfffc48e1bd63f0f2b0275f12b990dbcaa8b91
SHA1: de9825d8d39749ad685186e0eb83354f6432bd35
MD5sum: 20dbe4f7b43df74bc17218ef41ea30d6
Description: Natural sorting for Python (Python3)
natsort lets you apply natural sorting to your sequences easily, for example:
.
>>> from natsort import natsorted
>>> a = ['a2', 'a9', 'a1', 'a4', 'a10']
>>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']]
>>> natsorted(a)
['a1', 'a2', 'a4', 'a9', 'a10'
>>> natsorted(data)
[['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']]
.
natsort identifies the numbers and sorts them separately from strings.
.
natsort comes with a shell script to use natural sorting in shell scripts. You
can also execute natsort from the command line with Python -m natsort.
.
There exists another natural sorting package for Python called
python-naturalsort. You may prefer that package if you wish to only sort
version numbers.
.
This is the Python 3 version of the package.
Description-md5:
Homepage: https://github.com/SethMMorton/natsort
Section: python
Priority: optional
Filename: pool/main/n/natsort/python3-natsort_8.0.2-2_all.deb