py34-natsort-5.5.0

Basic Info:

Natural sorting for python

homepage: https://github.com/SethMMorton/natsort
license: mit
install size: 328827
build date: 2019-01-30 01:31:32 +0000
package file: py34-natsort-5.5.0.tgz
package size: 70381

Description:

When you try to sort a list of strings that contain numbers, the
normal python sort algorithm sorts lexicographically, so you might
not get the results that you expect:

>>> a
>>> sorted(a)
['a1', 'a10', 'a2', 'a4', 'a9']

Notice that it has the order ('1', '10', '2') - this is because the
list is being sorted in lexicographical order, which sorts numbers
like you would letters (i.e. 'b', 'ba', 'c').

natsort provides a function natsorted that helps sort lists
"naturally", either as real numbers (i.e. signed/unsigned floats
or ints), or as versions. Using natsorted is simple:

>>> from natsort import natsorted
>>> a
>>> natsorted(a)
['a1', 'a2', 'a4', 'a9', 'a10']

natsorted identifies numbers anywhere in a string and sorts them
naturally.

Homepage:
https://github.com/SethMMorton/natsort

Provides:

Requires:

Depends:

py34-setuptools>=0.8
python>=3.4<3.5

Package List

File NameDateSize
bin/natsort-3.42019-01-29 18:31385 bytes
lib/python3.4/site-packages/natsort-5.5.0-py3.4.egg-info/PKG-INFO2019-01-29 18:3124748 bytes
lib/python3.4/site-packages/natsort-5.5.0-py3.4.egg-info/SOURCES.txt2019-01-29 18:311526 bytes
lib/python3.4/site-packages/natsort-5.5.0-py3.4.egg-info/dependency_links.txt2019-01-29 18:311 bytes
lib/python3.4/site-packages/natsort-5.5.0-py3.4.egg-info/entry_points.txt2019-01-29 18:3151 bytes
lib/python3.4/site-packages/natsort-5.5.0-py3.4.egg-info/requires.txt2019-01-29 18:3147 bytes
lib/python3.4/site-packages/natsort-5.5.0-py3.4.egg-info/top_level.txt2019-01-29 18:318 bytes
lib/python3.4/site-packages/natsort/__init__.py2018-11-18 15:531266 bytes
lib/python3.4/site-packages/natsort/__pycache__/__init__.cpython-34.pyc2019-01-29 18:311359 bytes
lib/python3.4/site-packages/natsort/__pycache__/__init__.cpython-34.pyo2019-01-29 18:311359 bytes
lib/python3.4/site-packages/natsort/__main__.py2018-11-17 18:559291 bytes
lib/python3.4/site-packages/natsort/__pycache__/__main__.cpython-34.pyc2019-01-29 18:319146 bytes
lib/python3.4/site-packages/natsort/__pycache__/__main__.cpython-34.pyo2019-01-29 18:319146 bytes
lib/python3.4/site-packages/natsort/compat/__init__.py2018-05-17 21:390 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/__init__.cpython-34.pyc2019-01-29 18:31143 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/__init__.cpython-34.pyo2019-01-29 18:31143 bytes
lib/python3.4/site-packages/natsort/compat/fake_fastnumbers.py2018-09-09 19:573089 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/fake_fastnumbers.cpython-34.pyc2019-01-29 18:313327 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/fake_fastnumbers.cpython-34.pyo2019-01-29 18:313327 bytes
lib/python3.4/site-packages/natsort/compat/fastnumbers.py2018-09-09 19:57765 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/fastnumbers.cpython-34.pyc2019-01-29 18:31721 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/fastnumbers.cpython-34.pyo2019-01-29 18:31721 bytes
lib/python3.4/site-packages/natsort/compat/locale.py2018-11-17 18:554878 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/locale.cpython-34.pyc2019-01-29 18:313524 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/locale.cpython-34.pyo2019-01-29 18:313524 bytes
lib/python3.4/site-packages/natsort/compat/pathlib.py2018-09-09 19:57327 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/pathlib.cpython-34.pyc2019-01-29 18:31406 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/pathlib.cpython-34.pyo2019-01-29 18:31406 bytes
lib/python3.4/site-packages/natsort/compat/py23.py2018-11-17 18:553656 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/py23.cpython-34.pyc2019-01-29 18:313914 bytes
lib/python3.4/site-packages/natsort/compat/__pycache__/py23.cpython-34.pyo2019-01-29 18:313914 bytes
lib/python3.4/site-packages/natsort/natsort.py2018-11-18 11:4119807 bytes
lib/python3.4/site-packages/natsort/__pycache__/natsort.cpython-34.pyc2019-01-29 18:3120176 bytes
lib/python3.4/site-packages/natsort/__pycache__/natsort.cpython-34.pyo2019-01-29 18:3120176 bytes
lib/python3.4/site-packages/natsort/ns_enum.py2018-11-18 11:419464 bytes
lib/python3.4/site-packages/natsort/__pycache__/ns_enum.cpython-34.pyc2019-01-29 18:319450 bytes
lib/python3.4/site-packages/natsort/__pycache__/ns_enum.cpython-34.pyo2019-01-29 18:319448 bytes
lib/python3.4/site-packages/natsort/unicode_numbers.py2018-09-09 20:271413 bytes
lib/python3.4/site-packages/natsort/__pycache__/unicode_numbers.cpython-34.pyc2019-01-29 18:311452 bytes
lib/python3.4/site-packages/natsort/__pycache__/unicode_numbers.cpython-34.pyo2019-01-29 18:311452 bytes
lib/python3.4/site-packages/natsort/unicode_numeric_hex.py2018-11-17 18:5522186 bytes
lib/python3.4/site-packages/natsort/__pycache__/unicode_numeric_hex.cpython-34.pyc2019-01-29 18:3121478 bytes
lib/python3.4/site-packages/natsort/__pycache__/unicode_numeric_hex.cpython-34.pyo2019-01-29 18:3121478 bytes
lib/python3.4/site-packages/natsort/utils.py2018-11-18 11:4126376 bytes
lib/python3.4/site-packages/natsort/__pycache__/utils.cpython-34.pyc2019-01-29 18:3124678 bytes
lib/python3.4/site-packages/natsort/__pycache__/utils.cpython-34.pyo2019-01-29 18:3124675 bytes