This is a simple program to test my programming knowledge and learn more about API, Nautobot, and developing in general.
-
Install package:
sudo 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 + name (e.g., create_tenant tpayne, show_devices atl01).
To update:
pip install --upgrade nautobot_api_sandbox
Before getting started, make sure you have the following installed on your machine:
- Python 3.9 or later
- Poetry
- Clone the repository:
git clone [email protected]: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:
python -m nautobot_api_sandbox.nautobot_api_sandbox_ui
To run the tests: poetry run pytest
- Valid unittest? Need more tests...
- Make sure using logging correctly
- Integrate click? really want to rework UI
- Exception handling
- Fix delete_tenant RequestError 409
- Update readme instructions
- Poetry integration
- Publish package
This is a work in progress!!!