A case-insensitive list for Python
Project description
Overview
Class NocaseList is a case-insensitive list that preserves the lexical case of its items.
Example:
$ 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
Installation
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.
Documentation
Change History
Contributing
For information on how to contribute to the nocaselist project, see Contributing.
License
The nocaselist project is provided under the Apache Software License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nocaselist-1.0.0.tar.gz
(24.3 kB
view hashes)
Built Distribution
Close
Hashes for nocaselist-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac688d0517520bfcf86d1e8197f388484477a1acc45746b032581d0de748b6f7 |
|
MD5 | 4a41e9c376b874c31a36a14639c8ed2c |
|
BLAKE2b-256 | eb1fad030a72a9e80b510ef527ad382e29051f9af768427341c3dbd691f19151 |