Skip to main content

Python SDK for intercating with Okareo Cloud APIs

Project description

Okareo Python SDK

PyPI PyPI - Python Version PyPI - License


PyPI: https://pypi-hypernode.com/project/okareo/


Python library for interacting with Okareo Cloud APIs

Documentation

Getting Started, Guides, and API docs

Installation

  1. Install the package

    pip install okareo
    
  2. Get your API token from https://app.okareo.com/ (Note: You will need to register first.)

  3. Go directly to the "2. Create your API Token" on the landing page in above app.

  4. Set the environment variable OKAREO_API_KEY to your generated API token.

Get Started Example Notebooks

Please see and run this notebook:
https://github.com/okareo-ai/okareo-python-sdk/blob/main/examples/classification_eval.ipynb

See additional examples under:
https://github.com/okareo-ai/okareo-python-sdk/tree/main/examples

Using Okareo LangChain Callbacks Handler

We provide a LangChain callback handler that lets you easily integrate your current workflows with the Okareo platform.

If don't have LangChain dependencies installed in your environment, you can install the base ones (that will help you run the examples) with:

pip install okareo[langchain]

Integrating callbacks into your chain is as easy as importing the SDK in your module add adding the following

from okareo.callbacks import CallbackHandler
...
handler = CallbackHandler(mut_name="my-model", context_token="context-token")
llm = OpenAI(temperature=0.3, callbacks=[handler])

During the LangChain LLM runs we will collect input and output information so you can analyze it further with the Okareo toolkit.

You can also see an usage example in ./examples/langchain_callback_example.py


All rights reserved for Okareo Inc

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

okareo-0.0.34.tar.gz (52.1 kB view details)

Uploaded Source

Built Distribution

okareo-0.0.34-py3-none-any.whl (129.0 kB view details)

Uploaded Python 3

File details

Details for the file okareo-0.0.34.tar.gz.

File metadata

  • Download URL: okareo-0.0.34.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure

File hashes

Hashes for okareo-0.0.34.tar.gz
Algorithm Hash digest
SHA256 32348822b177005d6832a975cadbea2ae313cf2cbd8713028df3d558ad6099ea
MD5 50b22db7ba7d940b5229816a6d958b5d
BLAKE2b-256 508ea9689c9538977edcf94374d9b42dd7c927a7ed616bca7a3b78295be19c4f

See more details on using hashes here.

File details

Details for the file okareo-0.0.34-py3-none-any.whl.

File metadata

  • Download URL: okareo-0.0.34-py3-none-any.whl
  • Upload date:
  • Size: 129.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure

File hashes

Hashes for okareo-0.0.34-py3-none-any.whl
Algorithm Hash digest
SHA256 25eee4d46368e4a8157a489e71bfa4d39ab6ef53f45ac1ef5700b21531eb6398
MD5 3e5d283dd48290e1abcec411ac7bf46a
BLAKE2b-256 963d56a1633c359e18a9c28ce0c83bc7239f565ef1d733c8ad227cdd7eaf2fcf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page