Skip to main content

NetBox plugin to display disk and memory units with IEC binary prefixes

Project description

NetBox Binary Prefix

A simple NetBox plugin that patches the display of disk and memory sizes to use proper IEC binary prefixes (KiB, MiB, GiB, etc.) instead of the default decimal ones (KB, MB, GB).

Compatibility

NetBox Version Plugin Version
4.2 1.0.0
4.3 1.0.0
4.4 1.0.0
4.5 1.0.1

Installation

Install the plugin from PyPI:

pip install netbox-binary-prefix

or by adding to your local_requirements.txt or plugin_requirements.txt (netbox-docker):

netbox-binary-prefix

Enable the plugin in /opt/netbox/netbox/netbox/configuration.py, or if you use netbox-docker, your /configuration/plugins.py file :

PLUGINS = [
    "netbox_binary_prefix",
]

Usage

Once installed and enabled, the plugin will automatically patch the _humanize_megabytes helper function to display sizes with binary units.

This functionality is dependent on the DISK_BASE_UNIT and RAM_BASE_UNIT configuration variables being set to 1024 as documented here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_binary_prefix-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_binary_prefix-1.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file netbox_binary_prefix-1.0.1.tar.gz.

File metadata

  • Download URL: netbox_binary_prefix-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for netbox_binary_prefix-1.0.1.tar.gz
Algorithm Hash digest
SHA256 09d3f10e63679f3bacc6224be16f41caecd7fd816efbc1fdbf344b36bc42d49b
MD5 303a9b1303a4ad1d1a4d2602965cedd3
BLAKE2b-256 d40b19cd8a10f0391a2891478046eb2afa51aac65535274c7b0991d9d417ba39

See more details on using hashes here.

File details

Details for the file netbox_binary_prefix-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: netbox_binary_prefix-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for netbox_binary_prefix-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 937b513fb02211f2b35db07347388641db1980b2c2f8e9d28b35fe4da6ff7dcc
MD5 916ffd904774616132779b7610d833a0
BLAKE2b-256 c7447688c36fb35656d0cb45a2b3c88da23a6600115fffd6b83be9dce846854b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page