| Name | netbox-binary-prefix JSON |
| Version |
1.0.0
JSON |
| download |
| home_page | None |
| Summary | NetBox plugin to display disk and memory units with IEC binary prefixes |
| upload_time | 2025-10-27 19:54:03 |
| maintainer | None |
| docs_url | None |
| author | Nate Cohen |
| requires_python | >=3.12 |
| license | MIT License Copyright (c) 2025 Nate Cohen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| keywords |
netbox-plugin
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# 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 |
## Installation
Install the plugin from PyPI:
```bash
pip install netbox-binary-prefix
```
or by adding to your `local_requirements.txt` or `plugin_requirements.txt` (netbox-docker):
```bash
netbox-binary-prefix
```
Enable the plugin in `/opt/netbox/netbox/netbox/configuration.py`,
or if you use netbox-docker, your `/configuration/plugins.py` file :
```python
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](https://netboxlabs.com/docs/netbox/configuration/miscellaneous/#disk_base_unit).
Raw data
{
"_id": null,
"home_page": null,
"name": "netbox-binary-prefix",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "netbox-plugin",
"author": "Nate Cohen",
"author_email": "Nate Cohen <94263748+natecohen@users.noreply.github.com>",
"download_url": "https://files.pythonhosted.org/packages/3e/51/9b7d1517e86a869a9b5ebc428b12638e57d9768750c872fb36e7c59a74cd/netbox_binary_prefix-1.0.0.tar.gz",
"platform": null,
"description": "# NetBox Binary Prefix\r\n\r\nA 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).\r\n\r\n## Compatibility\r\n\r\n| NetBox Version | Plugin Version |\r\n|----------------|----------------|\r\n| 4.2 | 1.0.0 |\r\n| 4.3 | 1.0.0 |\r\n| 4.4 | 1.0.0 |\r\n\r\n\r\n## Installation\r\n\r\nInstall the plugin from PyPI:\r\n\r\n```bash\r\npip install netbox-binary-prefix\r\n```\r\n\r\nor by adding to your `local_requirements.txt` or `plugin_requirements.txt` (netbox-docker):\r\n\r\n```bash\r\nnetbox-binary-prefix\r\n```\r\n\r\nEnable the plugin in `/opt/netbox/netbox/netbox/configuration.py`,\r\n or if you use netbox-docker, your `/configuration/plugins.py` file :\r\n\r\n```python\r\nPLUGINS = [\r\n \"netbox_binary_prefix\",\r\n]\r\n```\r\n\r\n## Usage\r\n\r\nOnce installed and enabled, the plugin will automatically patch the `_humanize_megabytes` helper function to display sizes with binary units.\r\n\r\nThis functionality is dependent on the `DISK_BASE_UNIT` and `RAM_BASE_UNIT` configuration variables being set to `1024` as [documented here](https://netboxlabs.com/docs/netbox/configuration/miscellaneous/#disk_base_unit).",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2025 Nate Cohen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "NetBox plugin to display disk and memory units with IEC binary prefixes",
"version": "1.0.0",
"project_urls": {
"Documentation": "https://github.com/natecohen/netbox-binary-prefix/blob/main/README.md",
"Source": "https://github.com/natecohen/netbox-binary-prefix",
"Tracker": "https://github.com/natecohen/netbox-binary-prefix/issues"
},
"split_keywords": [
"netbox-plugin"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "18fa427eb296a310bb65f95f711eec59aed64ae826da952190e9a942fde47361",
"md5": "e1ca5d0658750937ca1dafded4209989",
"sha256": "dd0fffc80c67d9bcec7dfde5d2b5e73bd2a2f6a80bc5771d4607e2759edd02a9"
},
"downloads": -1,
"filename": "netbox_binary_prefix-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e1ca5d0658750937ca1dafded4209989",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 3323,
"upload_time": "2025-10-27T19:54:02",
"upload_time_iso_8601": "2025-10-27T19:54:02.682047Z",
"url": "https://files.pythonhosted.org/packages/18/fa/427eb296a310bb65f95f711eec59aed64ae826da952190e9a942fde47361/netbox_binary_prefix-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3e519b7d1517e86a869a9b5ebc428b12638e57d9768750c872fb36e7c59a74cd",
"md5": "3a962c82734d5911196ae744ead9baf6",
"sha256": "df131a2922474779d54d170594c9527d8b8b0e87e95d493ce7cd732f493b473f"
},
"downloads": -1,
"filename": "netbox_binary_prefix-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "3a962c82734d5911196ae744ead9baf6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 2581,
"upload_time": "2025-10-27T19:54:03",
"upload_time_iso_8601": "2025-10-27T19:54:03.937643Z",
"url": "https://files.pythonhosted.org/packages/3e/51/9b7d1517e86a869a9b5ebc428b12638e57d9768750c872fb36e7c59a74cd/netbox_binary_prefix-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-27 19:54:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "natecohen",
"github_project": "netbox-binary-prefix",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "netbox-binary-prefix"
}