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

If you're not sure about the file name format, learn more about wheel file names.

collection_views-0.0.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file collection_views-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for collection_views-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a15a086e7794f25b0820de0b142677c056002e9cc8ee3d50d96972df3e995903
MD5 8b60d45be522bf0f860d981a46c0f66f
BLAKE2b-256 9075a199706c429c765c9e6bdcc5d937bda531ff325a39231bb46c48dcdf98e5

See more details on using hashes here.

Supported by

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