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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a15a086e7794f25b0820de0b142677c056002e9cc8ee3d50d96972df3e995903 |
|
MD5 | 8b60d45be522bf0f860d981a46c0f66f |
|
BLAKE2b-256 | 9075a199706c429c765c9e6bdcc5d937bda531ff325a39231bb46c48dcdf98e5 |