Skip to main content

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.7.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file tessitura-0.0.7.tar.gz.

File metadata

  • Download URL: tessitura-0.0.7.tar.gz
  • Upload date:
  • Size: 2.2 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

Hashes for tessitura-0.0.7.tar.gz
Algorithm Hash digest
SHA256 bab598028f3dd352385691d16a5adeb6a15f7ebe511f47b6bff05c041aa3cb1b
MD5 391bc643d7c99e1fca500bf989fe53e1
BLAKE2b-256 b14ba77c7bb5f95ff4710ab5593ff6e0c86482d4e86597b90132d56907e8aadb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page