Data Structures (datatype conversion) Conversion package
current data-structure supported: List, Dictionary, Tuple, Set
##Installation Run the following to install: '''python pip install disconv'''
##Usage '''python import disconv as foo
#Conversion to int foo.tonum(data)
#Conversion to float foo.tofloat(data)
#Conversion to int foo.tostr(data)
#data refers to a variable of any of the supported datastructure types '''
##Methods:
tonum() : converts values in supported datastructures to int type
conversions: source_type:output_type => int:int, float:int, str: list of ASCII values if len(str)>1; else, returns ASCII value of str , bool: {True:1,False:0}
tostr() : converts values in supported datastructures to str type
tofloat() : converts values in supported datastructures to float type
conversions: source_type:output_type => int:float, float:float, str: list of float of ASCII values if len(str)>1; else, returns float of ASCII value of str , bool: {True:1.0,False:0.0}
Note_1: Conversion of dict type data-structures convert the datatype of the values of the dictionary
Developing disconv
To install disconv, along with the tools you need to develop and run tests, run the following in your virtualenv: '''bash $ pip install -e .[dev] '''
Note_2: This is a work in progress. Do feel free to contact me with any suggestions, improvements or bugs you find at you have at: leejohnsdecarmel@gmail.com
Metadata
Release files for disconv 0.0.3
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 |
|---|---|---|---|---|
| disconv-0.0.3.tar.gz | 4.4 kB | Without provenance | Details for disconv-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| disconv-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for disconv-0.0.3-py3-none-any.whl |
Total release size: 8.2 kB
Release files / disconv-0.0.3.tar.gz
| Download URL | disconv-0.0.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
145796410ae5b638c40c0d3549ff133de6685f9e1d01b3bc2e2f95679a2a560a
|
|
BLAKE2b-256 checksum How to use checksums |
2e7c46088007eb9ec5a7a4e7da1d4c1b04f9cc2249f0c34cd9c645712aa190de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.1
|
Release files / disconv-0.0.3-py3-none-any.whl
| Download URL | disconv-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c2f4f720c1e7719bb1c14e0c0a6f839b687630314954dbc05a7db9596dcd547
|
|
BLAKE2b-256 checksum How to use checksums |
6d8da0208deb868e93e822955c6478b2f5adfaf2022483be1ae04d3ccc6bc9ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.1
|
Security for disconv 0.0.3
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.