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.38.tar.gz (330.9 kB view details)

Uploaded Source

Built Distribution

okareo-0.0.38-py3-none-any.whl (398.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: okareo-0.0.38.tar.gz
  • Upload date:
  • Size: 330.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.13 Linux/6.5.0-1015-azure

File hashes

Hashes for okareo-0.0.38.tar.gz
Algorithm Hash digest
SHA256 9fc98fd2e22c0ea0db3861896b43bfa442052bfb4ee987d6d6280a71c07b4df7
MD5 4655a9b5eb2ffffcf49c3aab47a2e341
BLAKE2b-256 e1fca96569185f1e5c73e7e3b0a7af523aa4390430e9e4458cc20cb2b08b4131

See more details on using hashes here.

File details

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

File metadata

  • Download URL: okareo-0.0.38-py3-none-any.whl
  • Upload date:
  • Size: 398.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.13 Linux/6.5.0-1015-azure

File hashes

Hashes for okareo-0.0.38-py3-none-any.whl
Algorithm Hash digest
SHA256 3166c28b08c5ce2be25848d51a2498a62609291a11e861b8c4b2f15de095a95f
MD5 59d8eb7f158fe1a7cb8776264d44a8c5
BLAKE2b-256 629cba8c72cd8924ed2d1b8f692e9a9bc3a601140ed788e0fbbed0f780888f77

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