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)

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

Uploaded Source

Built Distribution

tessitura-0.0.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tessitura-0.0.5.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for tessitura-0.0.5.tar.gz
Algorithm Hash digest
SHA256 dd65374becfc1b96e72eecdc1ef63463d5d464b37323a9d273f6fafccfdaa37e
MD5 291ffb4bedfc4bb6e249648189d738bc
BLAKE2b-256 532faa5b76f8e730c1a35b018ffbca6eb326948b7a4276c3e67bd41a2671c1b2

See more details on using hashes here.

File details

Details for the file tessitura-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: tessitura-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for tessitura-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1ca95a6e9fe2da4ba0559f792bf36542a1eb0f1be84fc80a325f06eb5feb3093
MD5 08ffeda7d928716fbbd4f1bb7001c46d
BLAKE2b-256 0a3c10004a8901942da5c59bb2a5181290acb63423b5a70abdcebff86f26e260

See more details on using hashes here.

Supported by

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