Installation
```pip install listinfo```
Example
from listinfo import listinfo
sample_list=[1,2,3,4,5,6]
ls=listinfo(sample_list)
print(ls.liststats())
print(ls.listtochunks(chunk=3))
print(ls.splitlist(splitval=2))
Params
Below are few parameters and functions we have to provide according to our requirements:
1 liststats:(No Parameters Required)
Here we get statistics of list. The ouput what we get will be in dict fromat.
There will be four values(length,datatype and count,list to tuple,size of list) in the output.
length:It shows the length of list.
datatype and count:It demonstrates how many types of datatypes and thier count.
list to tuple: It is the tuple version of list.
memory usage: It shows memory storaged used by list(in bytes).
OUTPUT EXAMPLE:
{'length': 6, 'datatype and count': {<class 'int'>: 6}, 'list to tuple': (1, 2, 3, 4, 5, 6), 'memory usage': '136 bytes'}
2 listtochunks(chunk='')
DEFAULT VALUE=1
It converts list to chunks. chunk is the param,where we have to size of chunk.
OUTPUT EXAMPLE:
[[1, 2, 3], [4, 5, 6]]
3 splitlist(splitval='')
DEFAULT VALUE=1
It splits list to lists of list of size splival.
OUTPUT EXAMPLE:
[[1, 2], [3, 4], [5, 6]]
More Updates Coming Soon... 😄
Contact
I would like to get feedback from the community. If you have feature suggestions, support questions or general comments, please email me at susmit.vssut@gmail.com
Metadata
Release files for listinfo 1.0
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 | |
|---|---|---|---|---|
| listinfo-1.0.tar.gz | 3.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| listinfo-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / listinfo-1.0.tar.gz
| Download URL | listinfo-1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14326530899c92a80a846c535da351481bc4027fc304d0eb1152cef7dab1df0f
|
|
BLAKE2b-256 checksum How to use checksums |
94b524b4f60c48b6e174d2e7a18880a0f710b8fd7fa0c404172af80949b5beb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / listinfo-1.0-py3-none-any.whl
| Download URL | listinfo-1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71ce812fef92f9b617f4c1c612be242c573c66d0a1859aa2588bbc8584dd1cf6
|
|
BLAKE2b-256 checksum How to use checksums |
7835fce4d9fb2046bc61c25694fc912f276b3f51cb4e2dc88d3d500a3bcfeaca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Security for listinfo 1.0
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.