python-natsort_4.0.3-2_all.deb


Advertisement

Description

python-natsort - Natural sorting for python

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe amd64
Package name: python-natsort
Package version: 4.0.3
Package release: 2
Package architecture: all
Package type: deb
Installed size: 114 B
Download size: 22.37 KB
Official Mirror: archive.ubuntu.com
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.

Alternatives

Conflicts

  • python-naturalsort

Replaces

  • python-naturalsort

    Download

    Source package: natsort

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install python-natsort deb package:
      # sudo apt-get install python-natsort

    Files

    • /usr/lib/python2.7/dist-packages/natsort/__init__.py
    • /usr/lib/python2.7/dist-packages/natsort/__main__.py
    • /usr/lib/python2.7/dist-packages/natsort/_version.py
    • /usr/lib/python2.7/dist-packages/natsort/locale_help.py
    • /usr/lib/python2.7/dist-packages/natsort/natsort.py
    • /usr/lib/python2.7/dist-packages/natsort/ns_enum.py
    • /usr/lib/python2.7/dist-packages/natsort/unicode_numbers.py
    • /usr/lib/python2.7/dist-packages/natsort/utils.py
    • /usr/lib/python2.7/dist-packages/natsort-4.0.3.egg-info/PKG-INFO
    • /usr/lib/python2.7/dist-packages/natsort-4.0.3.egg-info/dependency_links.txt
    • /usr/lib/python2.7/dist-packages/natsort-4.0.3.egg-info/entry_points.txt
    • /usr/lib/python2.7/dist-packages/natsort-4.0.3.egg-info/top_level.txt
    • /usr/lib/python2.7/dist-packages/natsort/compat/__init__.py
    • /usr/lib/python2.7/dist-packages/natsort/compat/fake_fastnumbers.py
    • /usr/lib/python2.7/dist-packages/natsort/compat/fastnumbers.py
    • /usr/lib/python2.7/dist-packages/natsort/compat/locale.py
    • /usr/lib/python2.7/dist-packages/natsort/compat/pathlib.py
    • /usr/lib/python2.7/dist-packages/natsort/compat/py23.py
    • /usr/share/doc/python-natsort/changelog.Debian.gz
    • /usr/share/doc/python-natsort/copyright

    Changelog

    2015-08-26 - Agustin Henze <tin@debian.org> natsort (4.0.3-2) unstable; urgency=medium * Fix code example in package description (Closes: #778767) Thanks to Daniele Forsi <dforsi@gmail.com>

    2015-08-21 - Agustin Henze <tin@debian.org> natsort (4.0.3-1) unstable; urgency=medium * Fix debian/watch * Imported Upstream version 4.0.3

    2014-10-20 - Agustin Henze <tin@debian.org> natsort (3.5.1-1) unstable; urgency=medium * Imported Upstream version 3.5.1 * Bumped Standard-Version to 3.9.6 (no changes required)

    2014-08-30 - Agustin Henze <tin@debian.org> natsort (3.4.1-2) unstable; urgency=medium * Add breaks field between python3-natsort and python-natsort <= 3.2.1-1

    2014-08-30 - Agustin Henze <tin@debian.org> natsort (3.4.1-1) unstable; urgency=medium * Imported Upstream version 3.4.1 * Add python-natsort-doc binary package

    2014-06-23 - Agustin Henze <tin@debian.org> natsort (3.2.1-1) unstable; urgency=medium * New Upstream version 3.2.1

    2014-06-16 - Agustin Henze <tin@debian.org> natsort (3.2.0-1) unstable; urgency=medium * Initial release. (Closes: #751813)

    Advertisement
    Advertisement