Skip to main content

Async netbox library

Project description

AIO Netbox

An asyncio netbox library that conforms to any running netbox via it's OpenAPI spec

Installation

AIONetbox is distributed as a library intended to be included in other asyncio python projects. It has been developed on python 3.6+ though 3.8 is recommended.

pip install aionetbox

Usage

from aionetbox import AIONetbox

netbox = AIONetbox.from_openapi(
    url='http://localhost:8000',
    api_key='0123abcd'
)

sites = await netbox.dcim.dcim_sites_list()
my_site = await netbox.dcim.dcim_sites_read(id=2)

custom_field_sort = await netbox.dcim.dcim_regions_list(cf_sf_id='identifier')

Each module and method map to the swagger definition for netbox (/api/docs)

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

aionetbox-1.6.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

aionetbox-1.6.2-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file aionetbox-1.6.2.tar.gz.

File metadata

  • Download URL: aionetbox-1.6.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for aionetbox-1.6.2.tar.gz
Algorithm Hash digest
SHA256 b76054b70df88633f98823447b66edf8adac17214d83d874a66dedd74d27ea92
MD5 ed08959a5d6a925f67dcff163c3c75e8
BLAKE2b-256 92a48f1762e50f402c3351ee1155456cf301fee594f246645357b0ba872639b5

See more details on using hashes here.

File details

Details for the file aionetbox-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: aionetbox-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for aionetbox-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ad831b5050480fdc2108b7f68d158757cca4837a852bd7de320fb36477d1480
MD5 4337043663a058e9c71b7461f9fe955b
BLAKE2b-256 a978e05c8a27258dc3d4059d298f33e499a684be47c45d12c222c6c212186145

See more details on using hashes here.

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