Skip to main content

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


Download files

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

Source Distribution

pynetbox_api-0.0.2.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynetbox_api-0.0.2-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file pynetbox_api-0.0.2.tar.gz.

File metadata

  • Download URL: pynetbox_api-0.0.2.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pynetbox_api-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bc51da30dec2dfee606de6f25ca1a8588fc92eeba85ae86ac0a5effc544d5da9
MD5 8247c001b55fd46c2ea13434372a0ba6
BLAKE2b-256 62540f438ad63398f6eeea281c99ae41dd7248a2fcb297f5b2aab2dfc21a8ca4

See more details on using hashes here.

File details

Details for the file pynetbox_api-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pynetbox_api-0.0.2-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

Hashes for pynetbox_api-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 567c813ebf55516d8188cbfcf91fe1372d57d3bf4307bdc712f9c3ef461c7940
MD5 c624824f85c64875f954ec1fb9397312
BLAKE2b-256 c7ae12f74128750009c918b08bd6a24f08f13dcfd9baa7a603bd3aea9df75cb2

See more details on using hashes here.

Supported by

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