Skip to main content

A connector to the Tema AI APIs

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. Test

Setting up the environment

You have two options to provide the 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.17.0.tar.gz (22.7 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.17.0-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tema_ai-0.17.0.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tema_ai-0.17.0.tar.gz
Algorithm Hash digest
SHA256 ce9d364192772a038374858753c52626cbdbab255c8f894a8f9a58b5c76fe350
MD5 98063c7f0a703bc74ad73c19a5565eec
BLAKE2b-256 c569f2f6468e83dcf88eae5f71e0f13aa3fc8f3937fd3672d2b7ecd8e0dc181a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tema_ai-0.17.0.tar.gz:

Publisher: release_python_library_v2.yml on tema-ai/tema_ai_connect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: tema_ai-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tema_ai-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc35bc71bdcd63d638664582cdd5b5a38d61f903dfb8f9eff188c19d3b011c35
MD5 79fb291eae6e9811fa7497586b025b7b
BLAKE2b-256 812ee06a7716d54297ec7f47fb2b04ad3300c297e696a5bfcf3aec05aded84ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for tema_ai-0.17.0-py3-none-any.whl:

Publisher: release_python_library_v2.yml on tema-ai/tema_ai_connect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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