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()
Metadata
Release files for racktables-api 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| racktables-api-0.3.1.tar.gz | 10.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| racktables_api-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.2 kB
Release files / racktables-api-0.3.1.tar.gz
| Download URL | racktables-api-0.3.1.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13e74242481d654bb4b19eff6ae31e20bb4284b41663d7fd054fcd6a900659ea
|
|
BLAKE2b-256 checksum How to use checksums |
57635acf004de95833083b2f8a9711a6edd582b779c6ac1e45e2f828d80cf495
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.12
|
Release files / racktables_api-0.3.1-py3-none-any.whl
| Download URL | racktables_api-0.3.1-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cc3ea919c063baceea3447d62c80f27c9cf492c81ae3c2fd14cc49d65343218
|
|
BLAKE2b-256 checksum How to use checksums |
fe1ba0944f659eb642a926eadd244bc1f58993e039255b6963383ec4d2536d0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.12
|