https://github.com/kcalmwinds/dataconverter
I needed a tool that would convert data sizes. It was a good candidate to put up even if it is just useful for me. If work with 8k pages and need the conversion, this tool is your one stop.
https://github.com/kcalmwinds/dataconverter
dataconverter sql-server
Last synced: 5 months ago
JSON representation
I needed a tool that would convert data sizes. It was a good candidate to put up even if it is just useful for me. If work with 8k pages and need the conversion, this tool is your one stop.
- Host: GitHub
- URL: https://github.com/kcalmwinds/dataconverter
- Owner: kcalmwinds
- License: lgpl-3.0
- Created: 2019-05-15T21:36:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-23T17:29:31.000Z (about 5 years ago)
- Last Synced: 2025-07-14T22:41:37.460Z (6 months ago)
- Topics: dataconverter, sql-server
- Language: Python
- Homepage:
- Size: 4.61 MB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.