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.0.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for racktables_api-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b54b3d907787fb9dff420878b14af7a2613337f1cc0c298c70c997edd52607 |
|
MD5 | e29294500e2018e654caf39eb09bd659 |
|
BLAKE2b-256 | 0607ec2c96afe635deab3828064aca09d91b5108d2a96f3a56e5e7bab2147729 |