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.
Metadata
Release files for collection-views 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| collection_views-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for collection_views-0.0.2-py3-none-any.whl |
Release files / collection_views-0.0.2-py3-none-any.whl
| Download URL | collection_views-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a15a086e7794f25b0820de0b142677c056002e9cc8ee3d50d96972df3e995903
|
|
BLAKE2b-256 checksum How to use checksums |
9075a199706c429c765c9e6bdcc5d937bda531ff325a39231bb46c48dcdf98e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for collection-views 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.