This is just a simple program to test my programing knowledge and to learn more about API and Nautobot.
Project description
Nautobot API Sandbox
This is a simple program to test my programming knowledge and learn more about API, Nautobot, and developing in general.
Getting Started
-
Install package:
pip install nautobot_api_sandbox
-
Run package:
nautobot_api_sandbox
-
Enter Demo token:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
This will start the Nautobot API Sandbox command-line interface. Follow the instructions in the application to interact with the Nautobot API. NOTE: You don't need to add '()' or "" quotes. Simply type the command + the name (e.g., create_tenant tpayne, show_devices atl01).
Development Prerequisites
Before getting started, make sure you have the following installed on your machine:
- Python 3.9 or later
- Poetry
Development
- Clone the repository:
git clone git@github.com:tPayne0647/nautobot-api-sandbox.git
- Navigate to the project directory:
cd nautobot-api-sandbox
- Install the project dependencies using Poetry:
poetry install
- Install the development dependencies:
poetry install --dev
- Activate the virtual environment created by Poetry:
poetry shell
- Run the program:
nautobot_api_sandbox
To run the tests: poetry run pytest
Any help or tips would be greatly appreciated!!
Currently Working On / Want to Add
- Exception handling?
- Valid unittest? Need more tests...
- Integrate click? really want to rework UI
- Make sure using logging correctly
- Fix delete_tenant RequestError 409
- Update readme instructions
- Poetry integration
- Publish package
This is a work in progress!!!
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
Built Distribution
File details
Details for the file nautobot_api_sandbox-0.1.4.tar.gz
.
File metadata
- Download URL: nautobot_api_sandbox-0.1.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42900b858bf25cfb6903bf6ab49dadfa62f3a21366e32d08314ccb059e89ecbc |
|
MD5 | 8d360eed52f06930061bfa197136f570 |
|
BLAKE2b-256 | 9dc35869fd16a6f13b6843abacc5ae2ff8b6cc5e73bb2d2312ebc9b5e849b989 |
File details
Details for the file nautobot_api_sandbox-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: nautobot_api_sandbox-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/5.15.90.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd9e5c0b2577cc36b70d7f3509e263f6bf46d3eac4d518c29c36a02913c39ca6 |
|
MD5 | 10ce2cace830f5a00fadcee69a1650a1 |
|
BLAKE2b-256 | 8291ba2ea9646d6ddeab70ffa1906b41de655736a17395d0fd0a37e5ba22b465 |