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.9.4.tar.gz (16.9 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.9.4-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tema_ai-0.9.4.tar.gz
  • Upload date:
  • Size: 16.9 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.9.4.tar.gz
Algorithm Hash digest
SHA256 29d7343f0b226a97574b3787fccc311c1c27e8936a5c36e9ed37426799bd694a
MD5 d1065f92fcfdb120f340737e622fe314
BLAKE2b-256 bf2af0a6a34b291b7e7aae3908db0b0c1341a0433396107d5f47c0d87c3b0dfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tema_ai-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 21.6 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.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 195f90674b4abae9cec04ddf62009751efbb3b6b582bbcc704f4e34fe7748391
MD5 3902380d89312638e93a3563d0a5b273
BLAKE2b-256 0110ed2546a02cbce60706325892f1cfe1967e2c28aae7528aaf1e9eabc57551

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