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.1.tar.gz (18.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.1-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tema_ai-0.10.1.tar.gz
Algorithm Hash digest
SHA256 019c0f46bae58a12280724c8d00da0962d4f5bc4af8fd6ffd1883d32dbec35ca
MD5 3e05948ab79bbd75ee851e057fec69da
BLAKE2b-256 86d5c6647916fdd13d414b138c2eefd6eebc0dac863671fb7f50aa790a066007

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tema_ai-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7a9c54fc5ff95363762702344e4d08b0ec4ea418e682c994371125d0bf6f7fc
MD5 8a4013d78c48034bec064689f6977b39
BLAKE2b-256 273304155f876baa5f0faba8352574d2dfda20fd36f36f8ba8a568e8753cdcc9

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