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.2.7.tar.gz
(10.1 kB
view hashes)
Built Distributions
Close
Hashes for racktables_api-0.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66ecc21e3baf24ceb8b7cb00701e078aedf0b1db20d2aaa8a8972a95dce1a06 |
|
MD5 | d6075f4150f9eeddaa4bbd3fae23e47b |
|
BLAKE2b-256 | 5a1b164b26ef0ff2a5851b21019feb66d6e80a47d1bc23750bd0ebb9da2061c3 |
Close
Hashes for racktables_api-0.2.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89dc48dd6611e13bca4066031bb8011cc3b43c97493237058ab96c427200c145 |
|
MD5 | dc1a1fcd95ae283e5a79af3e8f4c2fd6 |
|
BLAKE2b-256 | ab786cd538d02825ef815892897af22f00cb5d26c35504fed8270e7a64d2d64c |