pynetbox API
Project description
pynetbox-api
FastAPI layer above pynetbox lib.
You can provide environment variables to communicate with NetBox at ./pynetbox_api/env.py or use the API (by creating the endpoint into the sqlite database via FastAPI app routes)
Install using pip
- Production mode using pypi package
pip install pynetbox-api
Install using git
- Developer mode using git repository
git clone https://github.com/emersonfelipesp/pynetbox-api.git
cd pynetbox-api
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
python3 -m pip install -e .
Start FastAPI app (Optional)
OBS: This is optional because this lib was created with the intention to be used as a lib, where you import it into your project. The FastAPI is available to make it easy to test each NetBox object/model with all validation and features this project provides.
uv run fastapi dev
You can optionally pass --host and --port attributes, like:
uv run fastapi dev --host 0.0.0.0 --port 8800
This will start FastAPI listening on all host network interfaces IP addresses and HTTP port 8800.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pynetbox_api-0.0.2.post1.tar.gz.
File metadata
- Download URL: pynetbox_api-0.0.2.post1.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04f9eb323e5cd25521fafd919b9cc9276225ba5c5c97f6e4e2d6f290e7cff7fb
|
|
| MD5 |
209bbfbf01323a930f4348d0ab633e27
|
|
| BLAKE2b-256 |
6e8f34bea52ae319283b8eaf79798caee44cbff52423bba2262fc6891d1b016c
|
File details
Details for the file pynetbox_api-0.0.2.post1-py3-none-any.whl.
File metadata
- Download URL: pynetbox_api-0.0.2.post1-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d727ca1bbd019ee845ed35a29de04aa5f43b9244f93b656ed93e5128c640eb81
|
|
| MD5 |
f0fd057e3bafc6a2a4ea818944da5f14
|
|
| BLAKE2b-256 |
9e0021577bf30c27a273bd1120d68a9ba006cbac7cc423a3b541b34862f0f4a3
|