Skip to main content

Python wrapper around Bluecat APIs

Project description

# Bluecat BAM API Wrapper #

## Installation ##

Supported on python 2.7, no promises on 3.x

You can clone the repo, change to the top-level directory (with the file) and use pip to install the local files in "editable" mode (-e).

git clone
cd pybluecat
pip install --user .
- - - -
## How to Use ##

The library can be used within python

import pybluecat

bam = pybluecat.BAM(hostname, username, password)

network_obj = bam.get_network('')

ip_obj = bam.get_ip_address('')

In an interactive python interpreter, use help() to play with the available methods
>>> from pybluecat import BAM
>>> help(BAM)

You can also just use the CLI scripts interactively (use -h, --help)

bluecat --help

usage: Bluecat CLI Tool [-h] {static,dhcp,search} ...

optional arguments:
-h, --help show this help message and exit

{static,dhcp,search} subparsers command help
static static IP record manipulation
dhcp dhcp IP record manipulation
search search BAM for Objects

# Create a DHCP reservation
bluecat dhcp create <hostname> <mac> --network <networkAddress> --creds /location/of/creds.json

# Delete a STATIC IP reservation
bluecat static delete <ipAddress>

Project details

Download files

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

Files for pybluecat, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pybluecat-0.1.1-py2.py3-none-any.whl (38.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pybluecat-0.1.1.tar.gz (23.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page