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.6.tar.gz
(9.7 kB
view hashes)
Built Distributions
Close
Hashes for racktables_api-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8d9f1f03f400011b2028fb3bd7395ac98bfe01d84630313d9d92f213a2cf9ea |
|
MD5 | 5d0f29c1ff58a2b910c61e5bc631094f |
|
BLAKE2b-256 | 67abeed0c7e8c10cdfa5e385d8f5327e995bf53e57249b510a5dcd20cfb74c90 |
Close
Hashes for racktables_api-0.2.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdef1ae15d2903f52f49f382900c39921c0e4fbcf46da19afdc23cdede3d7e39 |
|
MD5 | 730301e73dc4c2a3a554a7017e6f7b97 |
|
BLAKE2b-256 | 8d96248423e2298f7ee73d2a6ba2b53c3106da32797efe38864d9078ba161f7c |