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

Last updated: May 16,2024

1. Install "python-natsort-doc" package

In this section, we are going to explain the necessary steps to install python-natsort-doc on Ubuntu 21.10 (Impish Indri)

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

2. Uninstall "python-natsort-doc" package

This is a short guide on how to uninstall python-natsort-doc on Ubuntu 21.10 (Impish Indri):

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

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

Package: python-natsort-doc
Architecture: all
Version: 7.1.0-1
Multi-Arch: foreign
Priority: optional
Section: doc
Source: natsort
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 464
Depends: libjs-sphinxdoc (>= 2.4.3-5~), libjs-mathjax
Recommends: python3-natsort
Filename: pool/main/n/natsort/python-natsort-doc_7.1.0-1_all.deb
Size: 102796
MD5sum: f85815ac2203f1e036abaf6bedacc85f
SHA1: 23095b5c03a8c1a07b34a8d503940ad5a86d0307
SHA256: 1b34654417a33c15f4fafee61a29389a19822558695a684127f5608bd554c38e
SHA512: 5d7eda2a0676798daccc4bc959586b2439332baea7a91265570770ef59e0c3ad1fe775bd4f31d79c98ddd5c746cc29ea8f7135f1b1c337ea1b50faa4d2bb5315
Homepage: https://github.com/SethMMorton/natsort
Description-en: 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: b215fc4cbb6a240e87497b54a8e99ad2