rixx / netbox-plugin-cookiecutter

A plugin cookiecutter for netbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netbox-plugin-cookiecutter

A simple cookiecutter template to bootstrap a netbox plugin.

Usage

Let's pretend you want to create a netbox plugin called "superplugin". First, create a virtual environment and install the cookiecutter package using pip. Next, use it to bootstrap your project folder:

$ cd <your-project-folder-parent>
$ cookiecutter https://github.com/rixx/netbox-plugin-cookiecutter

You'll be prompted for some questions. Answer them, and you will find a project folder created for you:

repo_name [netbox-superplugin]: netbox-superplugin
repo_url [GitHub repository URL]: https://github.com/myuser/netbox-superplugin
module_name [netbox_superplugin]: netbox_superplugin
human_name [The netbox super plugin]: Super Plugin
author_name [Your name]: J Random Developer
author_email [Your email]: jrandom@example.org
short_description [Short description]: The best plugin

Now, change to the newly created directory:

$ cd netbox-superplugin

VoilĂ , there's your plugin structure! See netbox' documentation for more info.


Work on this project was kindly sponsored by Globalways.

Globalways logo

About

A plugin cookiecutter for netbox


Languages

Language:Python 77.4%Language:HTML 22.6%