Home
last modified time | relevance | path

Searched refs:natsort (Results 1 – 25 of 726) sorted by relevance

12345678910>>...30

/dports/devel/py-natsort/natsort-8.0.2/docs/
H A Dapi.rst2 .. currentmodule:: natsort
6 natsort API
15 :func:`~natsort.natsorted`
20 The :class:`~natsort.ns` enum
26 :func:`~natsort.natsort_key`
36 :func:`~natsort.os_sort_key`
49 :func:`~natsort.os_sorted`
54 :func:`~natsort.realsorted`
130 |:attr:`natsort.NatsortKeyType` | Returned by :func:`natsort.natsort_keygen`, and type of :attr:`n…
132 |:attr:`natsort.OSSortKeyType` | Returned by :func:`natsort.os_sort_keygen`, and type of :attr:`n…
[all …]
H A Dindex.rst1 .. natsort documentation master file, created by
6 natsort: Simple yet flexible natural sorting in Python.
9 - Source Code: https://github.com/SethMMorton/natsort
10 - Downloads: https://pypi.org/project/natsort/
11 - Documentation: https://natsort.readthedocs.io/
13 Please see the `GitHub main page <https://github.com/SethMMorton/natsort#natsort>`_
H A Dshell.rst2 .. currentmodule:: natsort
9 The ``natsort`` shell script is automatically installed when you install
10 :mod:`natsort` with pip.
88 to bad analysis. To remedy this, use ``natsort``:
92 $ natsort *.out
97 $ natsort -t r *.out | xargs your_program
104 $ find . -name "*.out" | natsort -t r | xargs your_program
112 $ natsort *
131 $ natsort -t r *.out -e 1000.35 # Exclude 1000.35 from search
147 $ find . ! -path . -type f | natsort
[all …]
H A Dlocale_issues.rst2 .. currentmodule:: natsort
6 Possible Issues with :func:`~natsort.humansorted` or ``ns.LOCALE``
21 Regenerate Key With :func:`~natsort.natsort_keygen` After Changing Locale
24 When :func:`~natsort.natsort_keygen` is called it returns a key function that
30 Corollary: Do Not Reuse :func:`~natsort.natsort_keygen` After Changing Locale
35 :func:`~natsort.natsort_keygen` is called it does the best job that it can to
47 :mod:`natsort` will use `PyICU`_ for :func:`~natsort.humansorted` or
79 - https://github.com/SethMMorton/natsort/issues/21 (contains instructons on installing)
81 - https://github.com/SethMMorton/natsort/issues/34
86 1. As of ``natsort`` version 4.0.0, ``natsort`` is configured
H A Dexamples.rst2 .. currentmodule:: natsort
26 >>> from natsort import natsorted, ns
124 >>> from natsort import humansorted
221 >>> from natsort import realsorted
264 >>> import natsort
278 >>> float_re = natsort.numeric_regex_chooser(natsort.FLOAT | natsort.SIGNED)
307 >>> from natsort import natsort_keygen
369 >>> from natsort import as_ascii
384 >>> from natsort import as_utf8
396 >>> from natsort import decoder
[all …]
/dports/audio/picard/picard-release-2.6.2/test/
H A Dtest_util_natsort.py26 from picard.util import natsort
31 self.assertTrue(natsort.natkey('foo1bar') < natsort.natkey('foo02bar'))
32 self.assertTrue(natsort.natkey('foo1bar') == natsort.natkey('foo01bar'))
33 self.assertTrue(natsort.natkey('foo (100)') < natsort.natkey('foo (00200)'))
38 sorted_list = natsort.natsorted(unsorted_list)
42 self.assertEqual(natsort.natkey('foo\0'), natsort.natkey('foo'))
46 natsort.natkey('foo0123456789|²³|٠١٢٣٤٥٦٧٨٩|๐๑๒๓๔๕๖๗๘๙|����bar'),
/dports/devel/py-natsort/natsort-8.0.2/
H A DCHANGELOG.md191 - Revert layout from `src/natsort/` back to `natsort/` to make user
204 - Development layout is now `src/natsort/` instead of `natsort/`
264 - Bug with the `from natsort import *` mechanism
265 - Bug with using `natsort` with `python -OO` (issues #38, #39)
326 - Made default behavior of `natsort` search for unsigned ints,
392 - `alg` argument to the `natsort` functions. This argument
396 keyword-only options in `natsort` version 4.0.0
401 allows `natsort` to perform true "human sorting" (issue #14)
420 deprecate at natsort version 4.0.0
563 - Can now execute `natsort` from command line with `python -m natsort` as well
[all …]
H A DREADME.rst1 natsort chapter
41 ``natsort`` version 7.0.0.
141 from natsort import os_sorted
222 `the ns enum <https://natsort.readthedocs.io/en/master/api.html#natsort.ns>`_.
319 ``natsort``, or use the ``natsort`` key as part of your rich comparison
326 How *does* ``natsort`` work?
334 the key generator ``natsort.natsort_keygen()``. ``natsort.natsorted()``
366 ``natsort`` comes with a shell script called ``natsort``, or can also be called
403 $ pip install natsort
416 $ pip install natsort[fast]
[all …]
H A DPKG-INFO2 Name: natsort
35 natsort
75 ``natsort`` version 7.0.0.
256 `the ns enum <https://natsort.readthedocs.io/en/master/api.html#natsort.ns>`_.
353 ``natsort``, or use the ``natsort`` key as part of your rich comparison
360 How *does* ``natsort`` work?
368 the key generator ``natsort.natsort_keygen()``. ``natsort.natsorted()``
400 ``natsort`` comes with a shell script called ``natsort``, or can also be called
437 $ pip install natsort
450 $ pip install natsort[fast]
[all …]
H A DRELEASING.md4 [Travis CI](https://travis-ci.com/SethMMorton/natsort) must be passing:
5 …Status](https://travis-ci.com/SethMMorton/natsort.svg?branch=master)](https://travis-ci.com/SethMM…
26 - [ ] Check that the [Travis CI build](https://travis-ci.com/SethMMorton/natsort) has
27 deployed correctly to [the test PyPI](https://test.pypi.org/project/natsort/#history).
35 - [ ] Check that the tagged [Travis CI build](https://travis-ci.com/SethMMorton/natsort) has
36 deployed correctly to [PyPI](https://pypi.org/project/natsort/#history).
41 python -m pip uninstall -y natsort && python -m pip install -U natsort
/dports/devel/py-natsort/natsort-8.0.2/natsort.egg-info/
H A DPKG-INFO2 Name: natsort
35 natsort
75 ``natsort`` version 7.0.0.
256 `the ns enum <https://natsort.readthedocs.io/en/master/api.html#natsort.ns>`_.
353 ``natsort``, or use the ``natsort`` key as part of your rich comparison
360 How *does* ``natsort`` work?
368 the key generator ``natsort.natsort_keygen()``. ``natsort.natsorted()``
400 ``natsort`` comes with a shell script called ``natsort``, or can also be called
437 $ pip install natsort
450 $ pip install natsort[fast]
[all …]
/dports/lang/php73/php-7.3.33/ext/spl/tests/
H A DarrayObject_natsort_basic1.phpt2 SPL: Test ArrayObject::natsort() function : basic functionality
5 /* Prototype : int ArrayObject::natsort()
6 * Description: proto int ArrayIterator::natsort()
12 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n";
16 var_dump($ao1->natsort());
18 var_dump($ao2->natsort('blah'));
23 *** Testing ArrayObject::natsort() : basic functionality ***
/dports/lang/php74/php-7.4.27/ext/spl/tests/
H A DarrayObject_natsort_basic1.phpt2 SPL: Test ArrayObject::natsort() function : basic functionality
5 /* Prototype : int ArrayObject::natsort()
6 * Description: proto int ArrayIterator::natsort()
12 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n";
16 var_dump($ao1->natsort());
18 var_dump($ao2->natsort('blah'));
23 *** Testing ArrayObject::natsort() : basic functionality ***
/dports/www/mod_php73/php-7.3.33/ext/spl/tests/
H A DarrayObject_natsort_basic1.phpt2 SPL: Test ArrayObject::natsort() function : basic functionality
5 /* Prototype : int ArrayObject::natsort()
6 * Description: proto int ArrayIterator::natsort()
12 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n";
16 var_dump($ao1->natsort());
18 var_dump($ao2->natsort('blah'));
23 *** Testing ArrayObject::natsort() : basic functionality ***
/dports/www/mod_php74/php-7.4.27/ext/spl/tests/
H A DarrayObject_natsort_basic1.phpt2 SPL: Test ArrayObject::natsort() function : basic functionality
5 /* Prototype : int ArrayObject::natsort()
6 * Description: proto int ArrayIterator::natsort()
12 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n";
16 var_dump($ao1->natsort());
18 var_dump($ao2->natsort('blah'));
23 *** Testing ArrayObject::natsort() : basic functionality ***
/dports/devel/py-natsort/natsort-8.0.2/natsort/
H A D__main__.py7 import natsort
8 from natsort.utils import regex_chooser
67 version="%(prog)s {}".format(natsort.__version__),
309 natsort.ns.FLOAT * is_float
310 | natsort.ns.SIGNED * signed
311 | natsort.ns.NOEXP * (not args.exp)
312 | natsort.ns.PATH * args.paths
313 | natsort.ns.LOCALE * args.locale
322 natsort.ns.FLOAT * is_float
323 | natsort.ns.SIGNED * signed
[all …]
H A D__init__.py3 from natsort.natsort import (
23 from natsort.ns_enum import NSType, ns
24 from natsort.utils import KeyType, NatsortInType, NatsortOutType, chain_functions
H A Dnatsort.py26 import natsort.compat.locale
27 from natsort import utils
28 from natsort.ns_enum import NSType, NS_DUMB, ns
29 from natsort.utils import (
204 sep = natsort.compat.locale.null_string_locale_max
206 sep = natsort.compat.locale.null_string_max
207 pre_sep = natsort.compat.locale.null_string_max
210 sep = natsort.compat.locale.null_string_locale
212 sep = natsort.compat.locale.null_string
213 pre_sep = natsort.compat.locale.null_string
[all …]
/dports/devel/py-natsort/natsort-8.0.2/tests/
H A Dtest_os_sorted.py8 import natsort
36 result = natsort.os_sorted(given)
41 natsort.os_sorted([9, 4.3, None, float("nan")])
47 result = natsort.os_sorted(given, key=lambda x: cast(str, x).replace("g", "f"))
204 result = natsort.os_sorted(given)
H A Dprofile_natsorted.py13 from natsort import ns, natsort_keygen
16 from natsort import ns, natsort_keygen
18 from natsort.natsort import NatsortKeyType
/dports/www/mod_php81/php-8.1.1/ext/spl/tests/
H A DarrayObject_natsort_basic1.phpt2 SPL: Test ArrayObject::natsort() function : basic functionality
10 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n";
14 var_dump($ao1->natsort());
17 var_dump($ao2->natsort('blah'));
24 *** Testing ArrayObject::natsort() : basic functionality ***
41 ArrayObject::natsort() expects exactly 0 arguments, 1 given
/dports/lang/php80/php-8.0.15/ext/spl/tests/
H A DarrayObject_natsort_basic1.phpt2 SPL: Test ArrayObject::natsort() function : basic functionality
10 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n";
14 var_dump($ao1->natsort());
17 var_dump($ao2->natsort('blah'));
24 *** Testing ArrayObject::natsort() : basic functionality ***
41 ArrayObject::natsort() expects exactly 0 arguments, 1 given
/dports/lang/php81/php-8.1.1/ext/spl/tests/
H A DarrayObject_natsort_basic1.phpt2 SPL: Test ArrayObject::natsort() function : basic functionality
10 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n";
14 var_dump($ao1->natsort());
17 var_dump($ao2->natsort('blah'));
24 *** Testing ArrayObject::natsort() : basic functionality ***
41 ArrayObject::natsort() expects exactly 0 arguments, 1 given
/dports/www/mod_php80/php-8.0.15/ext/spl/tests/
H A DarrayObject_natsort_basic1.phpt2 SPL: Test ArrayObject::natsort() function : basic functionality
10 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n";
14 var_dump($ao1->natsort());
17 var_dump($ao2->natsort('blah'));
24 *** Testing ArrayObject::natsort() : basic functionality ***
41 ArrayObject::natsort() expects exactly 0 arguments, 1 given
/dports/biology/py-biom-format/biom-format-2.1.10/biom/tests/
H A Dtest_util.py21 from biom.util import (natsort, flatten, unzip, HAVE_H5PY,
72 self.assertEqual(natsort(s),
75 self.assertEqual(natsort(s),
77 self.assertEqual(natsort(list('cba321')), list('123abc'))
80 self.assertEqual(natsort(list('cdba')), list('abcd'))
83 self.assertEqual(natsort(['11', '2', '1', '0']),
87 self.assertEqual(natsort(['1.11', '1.12', '1.00', '0.009']),
92 natsort([('11', 'A'), ('2', 'B'), ('1', 'C'), ('0', 'D')]),

12345678910>>...30