Simple racktables API
Project description
rtapi
Racktables API
Python module for accessing and manipulating racktables objects.
Installation
pip install racktables-api
PyPi project
https://pypi.org/project/racktables-api/
Documentation
Example
import MySQLdb
import rtapi
# Create connection to database
try:
# Create connection to database
db = MySQLdb.connect(host='hostname',port=3306, passwd='mypass',db='racktables',user='racktables')
except MySQLdb.Error:
e = sys.exc_info()[1]
print("Error %d: %s" % (e.args[0],e.args[1]))
sys.exit(1)
# Initialize rtapi with database connection
rt = rtapi.RTObject(db)
# List all objects from database
print rt.ListObjects()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
racktables-api-0.3.1.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for racktables_api-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc3ea919c063baceea3447d62c80f27c9cf492c81ae3c2fd14cc49d65343218 |
|
MD5 | c565a6cfe68444f4a99ad768b91a79bb |
|
BLAKE2b-256 | fe1ba0944f659eb642a926eadd244bc1f58993e039255b6963383ec4d2536d0f |