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/
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.5.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for racktables_api-0.2.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5551e53ec046297a03d9ac9d3e9e7a152d8e7cc638c4b77184b2e1bdf6271d0a |
|
MD5 | 86b10e38d8de7242f9287bb3a972c613 |
|
BLAKE2b-256 | 17f20902bbc9af40f78f6207af3aa81467d2aa4e12282b7a6ee71e086d9f7078 |