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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tessitura-0.0.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tessitura-0.0.4.tar.gz
  • Upload date:
  • Size: 2.1 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.4.tar.gz
Algorithm Hash digest
SHA256 0d1b97a2b4ebaa5dbfe56bb1eb0796f164eb03fd4c86cb63e4f5a4e268e2015d
MD5 1d739d39502180acf5645bf2de0aeba5
BLAKE2b-256 422f3f4f9bf7122cd1ddbf478a5a9e1ed2d4196368fba0d1b967c4598725ef8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tessitura-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 681b07ce751c011bd0d9464c0065adfcb840f12928773cbd9ab79dda13e4c595
MD5 170345d13a461086c0f5e785a55183a0
BLAKE2b-256 3b149b9f4a7c11ae615bba1098988f82c3d06c1ae131d7e6b0c1c34842f3b6bc

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