Introduction
Cookiecutter NetBox Plugin¶
Cookiecutter template for a NetBox plugin, built with popular develop tools and conform to best practice.
- Documentation: https://netbox-community.github.io/cookiecutter-netbox-plugin/
- Latest changes: CHANGELOG.md
Note: Plugins from this version target NetBox 4.5+
Quickstart¶
Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 2.6.0 or higher):
1 | |
Generate a Python package project:
1 | |
Then follow the Quickstart Guide to finish other configurations.
Features¶
This tool will create Python project with the following features:
- Mkdocs: Writing your docs in markdown style
- Lint and format with Ruff: Fast Python linter and formatter
- Pre-commit hooks: Automatic code quality checks on commit
- Mkdocstrings: Auto API doc generation
- Continuous Integration/Deployment by GitHub actions, includes:
- Automated testing on every push
- Publish documentation automatically
- PyPI publishing with trusted publishers
- Host your documentation from GitHub Pages with zero-config