dataview
dataview is a module that allows you to create views of your sequences or its slices
Install
pip install dataview
To upgrade a previous installation, use:
pip install dataview
Usage && Examples
>>> from dataview import DataView
>>> # You have some data, it can be any sequence (str, list, bytes, tuple, etc..)
>>> source_data = list(range(5))
>>> # DataView is just a pointer to your source_data and start/stop/step
>>> DataView(source_data)
[0, 1, 2, 3, 4]
>>> DataView(source_data, 3)
[0, 1, 2]
>>> DataView(source_data, 1, 5)
[1, 2, 3, 4]
>>> DataView(source_data, None, None, -1)
[4, 3, 2, 1, 0]
>>> # You can use slices (completely the same way as list slices)
>>> DataView(source_data)[::-1]
[4, 3, 2, 1, 0]
>>> # Slice return a new DataView object, that points to the previous DataView
>>> DataView(source_data)[::-1][2:4]
[2, 1]
>>> # You can change start/stop/step anytime
>>> view = DataView(source_data, 0, 1)
>>> view.start = 1
>>> view.stop = 2
>>> view
[1]
>>> # View always points to actual data
>>> source_data[1] = 2
>>> view
[2]
>>> # You can change a view source data
>>> view.data = list(range(5))
>>> view
[1]
Metadata
Release files for dataview 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dataview-1.0.5.zip | 6.0 kB | Without provenance | Details for dataview-1.0.5.zip |
Release files / dataview-1.0.5.zip
| Download URL | dataview-1.0.5.zip |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9a8a2fbe4dc1f40b9f577ccd9ec1db62848ec62ae375fcfb825db0c646f3315
|
|
BLAKE2b-256 checksum How to use checksums |
7cfbcbb31c1a74fac878677979922e2e10f74151cbae8f4b4e2240bc9bd8091d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dataview 1.0.5
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.