{"id":16266567,"url":"https://github.com/jsenecal/netbox-cable-labels","last_synced_at":"2025-03-19T23:30:43.832Z","repository":{"id":99019615,"uuid":"539534795","full_name":"jsenecal/netbox-cable-labels","owner":"jsenecal","description":"Plugin for netbox that allows the automatic generation of labels based on a user defined template","archived":false,"fork":false,"pushed_at":"2023-08-25T22:05:16.000Z","size":28,"stargazers_count":39,"open_issues_count":4,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-17T11:55:01.499Z","etag":null,"topics":["netbox","netbox-plugin","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsenecal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-21T14:36:24.000Z","updated_at":"2025-02-26T15:24:12.000Z","dependencies_parsed_at":"2023-08-23T19:56:00.551Z","dependency_job_id":"b2d46392-f73e-4117-84cb-cb7625b788be","html_url":"https://github.com/jsenecal/netbox-cable-labels","commit_stats":null,"previous_names":["jsenecal/netbox-cable-labels"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsenecal%2Fnetbox-cable-labels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsenecal%2Fnetbox-cable-labels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsenecal%2Fnetbox-cable-labels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsenecal%2Fnetbox-cable-labels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsenecal","download_url":"https://codeload.github.com/jsenecal/netbox-cable-labels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244524554,"owners_count":20466450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netbox","netbox-plugin","python3"],"created_at":"2024-10-10T17:42:27.336Z","updated_at":"2025-03-19T23:30:43.569Z","avatar_url":"https://github.com/jsenecal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetBox Auto Cable Label Plugin\n\nPlugin for netbox that allows the automatic generation of the label field content for cables based on a user defined template\n\n* Free software: Apache-2.0\n\n## Compatibility\n\n| NetBox Version | Plugin Version |\n|----------------|----------------|\n|     3.5        |      0.0.1     |\n\n\n## Installing\n\nFor adding to a NetBox Docker setup see\n[the general instructions for using netbox-docker with plugins](https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins).\n\nWhile this is still in development and not yet on pypi you can install with pip:\n\n```bash\npip install git+https://github.com/jsenecal/netbox-cable-labels\n```\n\nor by adding to your `local_requirements.txt` or `plugin_requirements.txt` (netbox-docker):\n\n```bash\ngit+https://github.com/jsenecal/netbox-cable-labels\n```\n\nEnable the plugin in `/opt/netbox/netbox/netbox/configuration.py`,\n or if you use netbox-docker, your `/configuration/plugins.py` file :\n\n```python\nPLUGINS = [\n    'netbox_cable_labels'\n]\n```\n\n\n## Configuring\n\nSetup PLUGINS_CONFIG with the following:\n```python\nPLUGINS_CONFIG = {\n    \"netbox_cable_labels\": {\"label_template\": \"Some Jinja2 template string here\"},\n}\n```\n\n\u003e Please note that the cable instance is passed as `cable` to the templating engine.\n\n### Default configuration\n\nBy default, the plugin copies the cable `id` in the label, prefixed with the pound (#) sign.\n\n```\n\"#{{cable.pk}}\"\n```\n\n## Management command\n\nUsing `manage.py`, you can run the command `generate_labels` to automatically generate labels on cables that do not already have one set, based on the configured template.\n\n```\n./manage.py generate_labels\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsenecal%2Fnetbox-cable-labels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsenecal%2Fnetbox-cable-labels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsenecal%2Fnetbox-cable-labels/lists"}