Builds out the base of a Nautobot plugin from a draw.io database drawing
Project description
draw.io-nautobot-work
There is a demo here, sadly it's a little out of date: https://youtu.be/ZwiIgBtmoMU
The goal is to making building a Nautobot plugin much easier. The idea is you bulid the database in draw.io, then use that file to build out the plugin.
the project name should be the same as the file name, but without the drawio part. So for the file test.drawio
file the project name would be test
Run python3 build_db_with_class.py
to build the info about the drawio file, it will prompt you for the name of the project (the name of the file minus the .drawio part)
There are 2 ways to build the project:
- This will build out the basics of the plugin
project=BuildNautobotProject(project_name)
project.build_project()
- This will build out:
[name of the project]_plugin_files
plugin
[name of the project]
admin.py
filters.py
jobs.py
models.py
api
__init__.py
serilizers.py
urls.py
views.py
- This way will build out everything
build_project()
does, plus give instructions on how to install it, and build out some other needed files.project=BuildNautobotProject(project_name)
project.full_build_project_with_help()
- In addition to everything that build_projects build this will also build:
[name of the project]_plugin_files
plugin
setup.py
[name of the project]
__init__.py
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
File details
Details for the file nautobot_plugin_builder-1.0.0.tar.gz
.
File metadata
- Download URL: nautobot_plugin_builder-1.0.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad3f699d5bed87da676b6631faa4ee60a1693f7bf622fdd8b11de7bacf00f366 |
|
MD5 | 1243419c0bca0f3d513460b176d00a85 |
|
BLAKE2b-256 | 120c62e914138d19c8ba6908a4053bf2b26b15a71f552e493c7ad3dd1dac18cd |