Skip to main content

A connector to the Tema AI APIs

Reason this release was yanked:

Possible error on data fetch

Project description

GitHub Readme Stats

Tema AI

A library to connect to Tema AI data

Black release typing

Setting up the connection

You will need access to Tema AI API in order to use this library. Please generate the appropriate API client id and secret as well as the connection. Once you have those 3 values in addition to the sharing host you can configure the library to connect to the systems. Refer to the provided documentation to know how to generate those values if you don't already have them.

Setting up the environment

You have two options to provide your access variables:

  1. Provide them as environment variables and the code will automatically pick them up

    export TEMA_AI_CONNECTION=connector_name
    export TEMA_AI_HOST=https://provided-host.ai
    export TEMA_AI_CLIENT_ID=HCD35....HAm34
    export TEMA_AI_CLIENT_SECRET=n...ryA
    

    or provide them in an environment file

    #.env
    
    TEMA_AI_CONNECTION=connector_name
    TEMA_AI_HOST=https://provided-host.ai
    TEMA_AI_CLIENT_ID=HCD35....HAm34
    TEMA_AI_CLIENT_SECRET=n...ryA
    
    from tema_ai.connect import TemaAIShareAPI
    
    connection = TemaAIShareAPI()
    
  2. Or simply provide them on runtime

    from tema_ai.connect import TemaAIShareAPI
    
    connection = TemaAIShareAPI(
        connection_name="connector_name",
        host="https://provided-host.ai",
        client_id="HCD35....HAm34"
        client_secret="n...ryA"
    )
    
  3. Alternatively you can mix and match and provide some of the variables through the environment and some directly to the class.

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

tema_ai-0.10.0.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

tema_ai-0.10.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file tema_ai-0.10.0.tar.gz.

File metadata

  • Download URL: tema_ai-0.10.0.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for tema_ai-0.10.0.tar.gz
Algorithm Hash digest
SHA256 eea391e36e2342a444b2014c421e72e652ee680c4a3269cff09e3a761f6933c4
MD5 818dd54012df04d6a83b14fe086c9ac1
BLAKE2b-256 b5ae6b88b3cc11032135bce9d9639d08cb2a322e2c9aed8179e2510026ee1a4c

See more details on using hashes here.

File details

Details for the file tema_ai-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: tema_ai-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for tema_ai-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8313fd537929f4dddd06e1b6d9c80628864e1b15e862c2db8f4cc9f2ae177c09
MD5 009a8527a8e7c80c63b0cdddd27109bb
BLAKE2b-256 0f65d06951e97d2ce5ea20265259f9e5340fd9392a17e51524862948c133f4ba

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