## Installation ##
Supported on python 2.7, no promises on 3.x
You can clone the repo, change to the top-level directory (with the setup.py file) and use pip to install the local files in "editable" mode (-e).
```bash
git clone https://github.com/ForrestT/pyBluecat.git
cd pybluecat
pip install --user .
```
- - - -
## How to Use ##
The library can be used within python
```python
import pybluecat
bam = pybluecat.BAM(hostname, username, password)
network_obj = bam.get_network('10.97.12.0')
ip_obj = bam.get_ip_address('10.97.12.101')
bam.logout()
```
In an interactive python interpreter, use help() to play with the available methods
```python
>>> from pybluecat import BAM
>>> help(BAM)
```
You can also just use the CLI scripts interactively (use -h, --help)
```bash
bluecat --help
usage: Bluecat CLI Tool [-h] {static,dhcp,search} ...
optional arguments:
-h, --help show this help message and exit
Subcommands:
{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>
```
Metadata
Release files for pybluecat 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pybluecat-0.1.1.tar.gz | 23.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pybluecat-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 62.0 kB
Release files / pybluecat-0.1.1.tar.gz
| Download URL | pybluecat-0.1.1.tar.gz |
|---|---|
| Size | 23.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a34e7a25147f4e5272f4a2da39aa5a2a225fbac3b2541f7cbf92792852cbd79c
|
|
BLAKE2b-256 checksum How to use checksums |
0ea9c26c3973d94a3b0654e61c66f6c0a05a29bce5d40cbea96862d9c7cd57e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
|
Release files / pybluecat-0.1.1-py2.py3-none-any.whl
| Download URL | pybluecat-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
304bae356855b8d226e23bcb4e0324c39e78422841abbd02cd045846244a58c2
|
|
BLAKE2b-256 checksum How to use checksums |
d01d3b7351ad601892e7de1d113494fac3fdf45ac50a45b440bac8369e9cde76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
|
Security for pybluecat 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.