natsort 7.0.0-0ubuntu1 source package in Ubuntu
Changelog
natsort (7.0.0-0ubuntu1) focal; urgency=medium * New upstream version, supporting Python 3.8. -- Matthias Klose <email address hidden> Thu, 30 Jan 2020 10:06:52 +0100
Upload details
- Uploaded by:
- Matthias Klose
- Uploaded to:
- Focal
- Original maintainer:
- Agustin Henze
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section |
---|
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
natsort_7.0.0.orig.tar.gz | 130.0 KiB | 62da4ab04532c5e94a8c4c282b239b7ed2d557559c1c0adf53abe62f1531bcf8 |
natsort_7.0.0-0ubuntu1.debian.tar.xz | 3.9 KiB | 672dac2177d53f8ac8ce72f958f32bf811ba694a50cea67711596738a0c7fc47 |
natsort_7.0.0-0ubuntu1.dsc | 2.1 KiB | d9690bf19f83a2e5c82ab6b83ed911fcbb410de21230c39176130021a50b0cd9 |
Available diffs
Binary packages built by this source
- python-natsort-doc: 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.
- python3-natsort: 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.