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.0.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.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xindi-lib-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5b94d578151ee3ee4993544734fd9704cd3cac53c299546a2f2581994491eee4
MD5 11047aac351f6629e3797845584158c4
BLAKE2b-256 cc574380e5a1476ac386bf816c71056f2872174366e05f698563be2798f7bce4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xindi_lib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ccf8ae635cacfb0c572ea586261659e41cc6552f31e856ca81fb0509082a79f
MD5 491bb138e21a8bcbe4d21ef8541be49d
BLAKE2b-256 616eb1341e9893a9f76b45a205cc77675ffbfb5ebbca530dd9d0ba2cb56a21c4

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