python-naturalsort_1.0.3-1.1_all.deb


Advertisement

Description

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

Property Value
Distribution Ubuntu 18.04 LTS (Bionic Beaver)
Repository Ubuntu Universe i386
Package filename python-naturalsort_1.0.3-1.1_all.deb
Package name python-naturalsort
Package version 1.0.3
Package release 1.1
Package architecture all
Package type deb
Category universe/python
Homepage -
License -
Maintainer Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Download size 5.55 KB
Installed size 50.00 KB
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

Package Version Architecture Repository
python-naturalsort_1.0.3-1.1_all.deb 1.0.3 all Ubuntu Universe
python-naturalsort - - -

Requires

Name Value
python << 2.8
python >= 2.7
python:any >= 2.7.1-0ubuntu2

Download

Type URL
Mirror archive.ubuntu.com
Binary Package python-naturalsort_1.0.3-1.1_all.deb
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

Path
/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).

See Also

Package Description
python-nautilus_1.1-6_i386.deb Python binding for Nautilus components
python-nav-msgs_1.12.5-3_all.deb Messages relating to Robot OS nav, Python interface
python-nbconvert-doc_5.3.1-1_all.deb Jupyter notebook conversion (documentation)
python-nbconvert_5.3.1-1_all.deb Jupyter notebook conversion (Python 2)
python-nbformat-doc_4.4.0-1_all.deb Jupyter notebook format (documentation)
python-nbformat_4.4.0-1_all.deb Jupyter notebook format (Python 2)
python-nbsphinx-doc_0.3.1+ds-1_all.deb Jupyter Notebook Tools for Sphinx -- doc
python-nbsphinx_0.3.1+ds-1_all.deb Jupyter Notebook Tools for Sphinx -- Python
python-nbxmpp-doc_0.6.4-1_all.deb Non blocking Jabber/XMPP Python library, documentation
python-nbxmpp_0.6.4-1_all.deb Non blocking Jabber/XMPP Python library
python-ncap_1.9.2-2.2_i386.deb Python bindings for libncap
python-ncclient-doc_0.5.3-4_all.deb Documentation for python-ncclient (Python library for NETCONF clients)
python-ncclient_0.5.3-4_all.deb Python library for NETCONF clients (Python 2)
python-ndg-httpsclient_0.4.4-1_all.deb enhanced HTTPS support for httplib and urllib2 using PyOpenSSL for Python2
python-nemu_0.3.1-1_all.deb lightweight network emulator embedded in a small python library
Advertisement
Advertisement