A case-insensitive list for Python
Class NocaseList is a case-insensitive list that preserves the lexical case of its items.
$ python >>> from nocaselist import NocaseList >>> list1 = NocaseList(['Alpha', 'Beta']) >>> print(list1) # Any access is case-preserving ['Alpha', 'Beta'] >>> 'ALPHA' in list1 # Any lookup or comparison is case-insensitive True
The NocaseList class supports the functionality of the built-in list class of Python 3.8 on all Python versions it supports (except for being case-insensitive, of course). This includes the clear() and copy() methods added in Python 3.3 to the built-in list class.
To install the latest released version of the nocaselist package into your active Python environment:
$ pip install nocaselist
The nocaselist package has no prerequisite Python packages.
For more details and alternative ways to install, see Installation.
For information on how to contribute to the nocaselist project, see Contributing.
The nocaselist project is provided under the Apache Software License 2.0.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size nocaselist-1.0.2-py2.py3-none-any.whl (11.7 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size nocaselist-1.0.2.tar.gz (27.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for nocaselist-1.0.2-py2.py3-none-any.whl