Netbox plugin to manage attachments for any model
Project description
NetBox Attachments Plugin
NetBox plugin for attaching files to NetBox objects.
Overview
netbox-attachments adds an attachment model and UI/API workflows to upload, link, and manage files against NetBox models.
- Project documentation: docs/index.md
- Installation guide: docs/installation.md
- Configuration reference: docs/configuration.md
- Usage guide: docs/usage.md
- Compatibility policy: docs/compatibility.md
- Release process: docs/release-process.md
Compatibility
Supported now:
- NetBox:
4.5.x - Plugin:
11.x - Python:
3.12,3.13,3.14
Compatibility details and legacy version notes are documented in docs/compatibility.md.
Installation
Install from PyPI:
pip install netbox-attachments
Enable the plugin in configuration.py:
PLUGINS = ["netbox_attachments"]
Create storage directory and set permissions:
mkdir -p /opt/netbox/netbox/media/netbox-attachments
chown netbox /opt/netbox/netbox/media/netbox-attachments
Run migrations:
python3 manage.py migrate netbox_attachments
Full installation details: docs/installation.md.
Configuration
Plugin settings are configured via PLUGINS_CONFIG["netbox_attachments"].
PLUGINS_CONFIG = {
"netbox_attachments": {
"applied_scope": "model",
"scope_filter": ["dcim.device", "ipam.prefix", "tenancy"],
"display_default": "right_page",
"create_add_button": True, # show top "Attachments" dropdown in additional_tab mode
"display_setting": {"ipam.vlan": "left_page"},
}
}
Complete settings reference: docs/configuration.md.
API
Attachment APIs are exposed under:
/api/plugins/netbox-attachments/netbox-attachments//api/plugins/netbox-attachments/netbox-attachment-assignments/
Workflow:
- Upload/create attachment via
netbox-attachments. - Link it to an object via
netbox-attachment-assignments.
Additional usage details: docs/usage.md.
Testing
Primary local command:
make test
Packaging check:
python -m build
Support
- Bug reports and feature requests: GitHub Issues
- NetBox community support: NetDev Community Slack and GitHub Discussions in netbox-community
Contributing
Contribution workflow and expectations are documented in CONTRIBUTING.md.
Release Notes
Project release history follows Keep a Changelog:
Screenshots
- Attachment List
- Attachment Detail
- Object Attachments Tab
- Create Assignment
License
Licensed under Apache 2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netbox_attachments-11.1.0.tar.gz.
File metadata
- Download URL: netbox_attachments-11.1.0.tar.gz
- Upload date:
- Size: 358.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63ac7c3698a87f37dec8688784052e3e7b60cf81f01fd0d661600a6d3c9dbec
|
|
| MD5 |
318c6fc1f46b685e0fe3f6899e3c8b18
|
|
| BLAKE2b-256 |
c19c8efadc076034629182eaf00291277390571d1f01d3ebb7488475314cd0cd
|
File details
Details for the file netbox_attachments-11.1.0-py3-none-any.whl.
File metadata
- Download URL: netbox_attachments-11.1.0-py3-none-any.whl
- Upload date:
- Size: 64.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3d6b50b20cbf04bf62b74a951a7fe5401f9d9d9b80bd0f0210b519065561299
|
|
| MD5 |
0ced831caad80de63c4177f5ab2f4b2a
|
|
| BLAKE2b-256 |
fbdc9ed58e153ae203b35f8962ffad6f3b42bdfe0cea1c3c48154efdeb7705d3
|