Convert all of your bytes
Project description
DataConverter
I needed a tool that would convert data sizes. It was a good candidate to put up.
Details
Give this tool a string with space separated values and it will return the byte size conversions from bytes to petabytes.
Usage
First arguement will always be what the current data size level is in: pages = p kb = k mb = m gb = g tb = t pb = pb
any number values after that will be summed, then output to 4 conversions + the current data size level.
You can also mix and repeat arguments!
p num num k num num pb 1 p num num num k num ...
This makes the tool more versitile than originally implemented.
Example
p 100 200 300 k 400 250 512 pb 1 g 400 25 p 50000
will yield:
Bytes : 1126356662822912.0
Pages : 137494709817.25
Kilobytes : 1099957678538.0
Megabytes : 1074177420.4472656
Gigabytes : 1049001.3871555328
Terabytes : 1024.415417144075
Petabytes : 1.0004056808047608
todo
Ducktype for:
string - space separated string - comma separated dictionary tuple list
The return type of this tool is always a dict so you can pick which or all byte value types. this allows the appliation to choose what values to collect and use.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file bytesized-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: bytesized-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0852429599ffe98b461507933736bb5ea4f5cf38c51a9ea6543f0bc3a9688800 |
|
MD5 | d9a573dbc2dc6d4d2ec00710eb59c9e6 |
|
BLAKE2b-256 | d5a05db41dbac6c0a67c42596870de6f1b4a9cdc7cff0a2456bb62d475998153 |