Skip to main content

Bunit

A dead simple binary unit conversion tool.

Usage

Hereinafter are few examples of how to use this tool.

Converting between two units

echo "1024" | bunit --in=kiB --out=MiB
1.0
echo "128" | bunit --in=b --out=B
16

Converting between units of the same system

echo "32" | bunit --in=GiB
+------+-------------+
| Unit |    Value    |
+------+-------------+
| kiB  | 33554432.00 |
| MiB  |   32768.00  |
| GiB  |    32.00    |
| TiB  |     0.03    |
| PiB  |     0.00    |
| EiB  |     0.00    |
| ZiB  |     0.00    |
| YiB  |     0.00    |
+------+-------------+

Converting between units of different systems

echo "1" | bunit --in=GiB --system=bytes
+------+---------------+
| Unit |     Value     |
+------+---------------+
|  B   | 1073741824.00 |
|  kB  |   1073741.82  |
|  MB  |    1073.74    |
|  GB  |      1.07     |
|  TB  |      0.00     |
|  PB  |      0.00     |
|  EB  |      0.00     |
|  ZB  |      0.00     |
|  YB  |      0.00     |
+------+---------------+

Metadata

Release files for bunit 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bunit 0.1
File Size Uploaded Provenance Actions
bunit-0.1.tar.gz 2.9 kB Without provenance Details for bunit-0.1.tar.gz

Release files / bunit-0.1.tar.gz

Download URL bunit-0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2b3127dea9bd7cb1746cdfcf612511cb08ef7e3a7899501fbef9eb4f682048b6
BLAKE2b-256 checksum
How to use checksums
1feced66e329b1e99e937aa55c41ec18092af9cca5e86a13e631b639e6679a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bunit 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page