How to Install and Uninstall python-natsort-doc Package on Kali Linux

Last updated: October 05,2024

1. Install "python-natsort-doc" package

This is a short guide on how to install python-natsort-doc on Kali Linux

$ sudo apt update $ sudo apt install python-natsort-doc

2. Uninstall "python-natsort-doc" package

This guide covers the steps necessary to uninstall python-natsort-doc on Kali Linux:

$ sudo apt remove python-natsort-doc $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-natsort-doc package on Kali Linux

Package: python-natsort-doc
Source: natsort
Version: 8.0.2-2
Installed-Size: 479
Maintainer: Debian Python Team
Architecture: all
Depends: libjs-sphinxdoc (>= 4.3), libjs-mathjax
Recommends: python3-natsort
Size: 120212
SHA256: 4e5d90a7867380b4f7f3e705583cdadb61337135bfd1438dc298b52ee839c7c4
SHA1: a22422169ce53ec0a22f79592de202f1422f0dd3
MD5sum: 83a2ec4c6eaa8e40f09cde9b16e8c9c9
Description: Natural sorting for Python (doc)
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 package contains API documentation and examples.
Description-md5:
Multi-Arch: foreign
Homepage: https://github.com/SethMMorton/natsort
Section: doc
Priority: optional
Filename: pool/main/n/natsort/python-natsort-doc_8.0.2-2_all.deb