python-naturalsort_1.0.3-1.1_all.deb


Advertisement

Description

python-naturalsort - Simple natural order sorting API for Python that just works

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe amd64
Package name: python-naturalsort
Package version: 1.0.3
Package release: 1.1
Package architecture: all
Package type: deb
Installed size: 50 B
Download size: 5.55 KB
Official Mirror: archive.ubuntu.com
The ``natsort.natsort()`` function in the ``naturalsort`` package is a very simple alternative to Python's ``sorted()`` function that implements `natural order sorting`_ in Python. The package is available on PyPI, so getting started is very simple: $ pip install naturalsort $ python > from natsort import natsort > versions = ['1.8.1-r26', '1.8.1-r30', '2.0-r2', '2.0-r7', '2.0-r11'] > natsort(['my-package-%s' % v for v in versions]) ['my-package-1.8.1-r26', 'my-package-1.8.1-r30', 'my-package-2.0-r2', 'my-package-2.0-r7', 'my-package-2.0-r11'] The main use case that this package was originally created for is sorting of pathnames with versions numbers embedded in them. This is why the sorting key defined by the ``naturalsort`` package ignores filename extensions (not doing so can give unexpected results).

Alternatives

    Download

    Source package: python-naturalsort

    Install Howto

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

    Files

    • /usr/lib/python2.7/dist-packages/natsort.py
    • /usr/lib/python2.7/dist-packages/natsort_tests.py
    • /usr/lib/python2.7/dist-packages/naturalsort-1.0.3.egg-info/PKG-INFO
    • /usr/lib/python2.7/dist-packages/naturalsort-1.0.3.egg-info/SOURCES.txt
    • /usr/lib/python2.7/dist-packages/naturalsort-1.0.3.egg-info/dependency_links.txt
    • /usr/lib/python2.7/dist-packages/naturalsort-1.0.3.egg-info/top_level.txt
    • /usr/share/doc/python-naturalsort/changelog.Debian.gz
    • /usr/share/doc/python-naturalsort/copyright

    Changelog

    2014-03-28 - Evgeni Golov <evgeni@debian.org> python-naturalsort (1.0.3-1.1) unstable; urgency=medium * Non-maintainer upload. * Add python-setuptools to Build-Depends. (Closes: #725563)

    2013-09-19 - Cyril Bouthors <cyril@bouthors.org> python-naturalsort (1.0.3-1) unstable; urgency=low * Initial release (closes: #723742).

    Advertisement
    Advertisement