Tools for talking to the Tessitura API
Project description
Tessitura
Tools for talking to the Tessitura API from Python. This is all just wet paint at the moment.
Requires Python 3.6+
To install just do:
$ pip install tessitura
To use see the following example:
import tessitura
import pprint
endpoint = "https://your.tessitura-endpoint.org/TessituraService/"
credentials = "username:group:location:password"
# The REST API method you wish to call. This may need to be created with other information depending on the request, such as a session id -- See Tessitura documentation for more information. Please note there should be no trailing slash at the end.
method = "Diagnostics/Status"
# The type of request you wish to make. Currently supports GET and POST.
request_type = "GET"
# Use this to add any query string parameters to a GET request
params = {}
# Use this to add any form data to a POST request
data = {}
# Call the API
rsp = tessitura.rest_call(endpoint, credentials, request_type, method, params=params, data=data, timeout=10)
# Print out the results in JSON format
pprint.pprint(rsp)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tessitura-0.0.9.tar.gz
(2.3 kB
view details)
File details
Details for the file tessitura-0.0.9.tar.gz
.
File metadata
- Download URL: tessitura-0.0.9.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 048d6d783dadcad5e5f3ec08c36dffa9ceb07895c8f3abba2a4e4b5649a541e0 |
|
MD5 | 2c1cf36ff1e6b52a7ccbd14e18930215 |
|
BLAKE2b-256 | 05f0015e386c44aaa6519f70760b08dde3419b6f15ad5016a9b96f1ba5ed9f5a |