Mutable and immutable views over standard collections with proper type annotations.
Project description
Python collection views
Mutable and immutable views over standard collections with proper type annotations.
Install
pip install collection-views
Sample
from collection_views import ImmutableViewList
mylist = ["Hello", "collection", "views"]
myview = ImmutableViewList(mylist)
print(myview[1]) # prints "collection"
print(myview[1:]) # prints "['collection', 'views']"
myview[0] = "Bye" # Does not support item assignment!
Python support
New releases will support all actively maintained Python versions. The latest release targets python 3.8 through 3.12.
Features
ImmutableViewList
, an immutable view over a list.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for collection_views-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 715a681b1e1b398cc203302f4b4ce562658261cf85f005b2643dceb56e1eca2e |
|
MD5 | 77a5a7f4640a40e3d124e4249d8f0ec7 |
|
BLAKE2b-256 | 0e34fe81253410cc5a0c9777f6b8d806d23a9dd8bd29e1b5b247da5a11e13435 |