Skip to main content

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.pyto 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nautobot_plugin_builder-1.0.0.tar.gz (11.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page