Skip to main content

library to manage ip subnets

Project description

xindi-lib

allows you to manage subnets of a network.

from xindi import ManagedNetwork

You can start with a dictionary

input_data = dict()
input_data['managed_network'] = '10.0.0.0/26'
managed_network = ManagedNetwork(indict=input_data)

or with JSON

input_data = '{"managed_network": "10.0.0.0/26"}'
managed_network = ManagedNetwork(injson=input_data)

assign new subnets of the needed size

my_first_net = dict(
    usecase='first network', 
    owner='Wolfgang Wangerin', 
    department='ITA'
    )
managed_network.next_free_subnet(27, my_first_net)

or free an existing subnet

managed_network.free('10.0.0.0/27')

list all assigned subnets:

managed_network.assigned_networks()

and export the configuration

outdict = managed_network.export()
outjson = managed_network.exportJson()

It is now up to you to set up an API or Webfrontend and use this library. Let me know, if you use this in an FOSS project, because I may have a usecase for it.

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

xindi-lib-0.1.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

xindi_lib-0.1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file xindi-lib-0.1.2.tar.gz.

File metadata

  • Download URL: xindi-lib-0.1.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for xindi-lib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fe192c51dd8193ed1f3e992f6c2508681b02d51d4429af3ac53a0485af342686
MD5 1de5a0c4df344e17c31706e06d7bcdc3
BLAKE2b-256 c4ef976b81fb50dea0088d106ff05edaa6c4e144e82ad397cb30e19e77651587

See more details on using hashes here.

File details

Details for the file xindi_lib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: xindi_lib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for xindi_lib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7530049433573fc252b2a2ebc94a62e22504ef9cb514fe1046191e60ea9a2bf8
MD5 1b112dacf6da89d4afe0284779037cdc
BLAKE2b-256 7a709e0966a9c99d9a53215acfc461d1bd84bf1863a8d829cb6a35b3e778a216

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