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.9.tar.gz
(10.1 kB
view hashes)
Built Distributions
Close
Hashes for racktables_api-0.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55ac9856c68ba487539856916617986f8bb618c368a54f92940c4727204ce14 |
|
MD5 | 883c81d1065048108f0c2319acbd7cbe |
|
BLAKE2b-256 | 479a2733ec3357078107cb55e607c949bd4bac43dd161d9698598536b7293bf2 |
Close
Hashes for racktables_api-0.2.9-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81617db8173501689985f86db3acb21cdd89ced5dd95e3f72239746506a76f27 |
|
MD5 | bcefb83f862f4fbad328f6be6d2cac8f |
|
BLAKE2b-256 | b5ce6068454566be5daacf975aee961529c9d42448243a1afc51f9099444341d |