Skip to main content

Developers Toolbox

Convert Size

Convert file sizes between IEC (binary, 1024) and SI (decimal, 1000) units, including bits, nibbles, and bytes.

Install

pip install lupaxa-convert-size

Requires Python 3.10+.

Usage

from lupaxa.convert_size import convert_size, get_name_from_code

convert_size(1024, "B", "KiB")
# 1.0

convert_size(2000, "B", "kB", si_units=True)
# 2.0

convert_size(1, "KiB", "Kibit")
# 8.0

convert_size(1, "B", "nibble")
# 2.0

get_name_from_code("MiB")
# "Mebibyte"

convert-size is a library only. There is no console script and no python -m entry point.

Documentation

Site pages live in mkdocs/ and publish to https://convert-size.thelupaxaproject.org/.

make init
make python-install-dev
make mkdocs-serve
The Lupaxa Project Footer

Metadata

Release files for lupaxa-convert-size 0.1.3

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

Source distribution (sdist)

Source distribution for lupaxa-convert-size 0.1.3
File Size Uploaded
lupaxa_convert_size-0.1.3.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-convert-size 0.1.3
File Interpreter ABI Platform
lupaxa_convert_size-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / lupaxa_convert_size-0.1.3.tar.gz

Download URL lupaxa_convert_size-0.1.3.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
29bbe35cd09aede4837ca9ed857ec2df0b7d38c25baac5de3d83e301d52aae7c
BLAKE2b-256 checksum
How to use checksums
52e486c0287eae6b617a72a85ba976b648da16103ed102eae27c437bddbb2621
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / lupaxa_convert_size-0.1.3-py3-none-any.whl

Download URL lupaxa_convert_size-0.1.3-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5e0bc29bd60fb2350dd62bc7e213006e642c36d934a83fbc76cd5bc27c5bc73
BLAKE2b-256 checksum
How to use checksums
c1e97566b184f1043407f28491f409c836b7f48e1b078978ba5b8eae48e70cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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