Skip to main content

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


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

collection_views-0.0.1-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page