Skip to main content

Python SDK for Fixpoint - Auto-improvement to make your LLM apps smarter

Project description

Fixpoint Python SDK

The FixpointClient wraps the OpenAI API Client. You can call it just like OpenAI API Client. The sdk will intercept calls to certain OpenAI APIs, record input / outputs and forward that information to Fixpoint's api server.

Installation

You can view the package on pypi. To install:

pip install fixpoint-sdk

Usage

To use the sdk make sure that you have the following variables set in your environment: FIXPOINT_API_KEY and OPENAI_API_KEY.

Development

Virtual Env

To create a virtual environment called venv from your terminal run python3 -m venv venv.

Activate

source venv/bin/activate

Install packages

To install the package locally for development:

# in "editable mode" so your install changes as you update the source code:
pip install -e .

# and to install dev dependencies
pip install -e '.[dev]'

If you get an error like:

ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/dbmikus/workspace/github.com/gofixpoint/python-sdk (A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)

Try upgrading pip and retrying:

pip install --upgrade pip
pip install -e .

In general, you should not install from the requirements.txt file, instead following the installation method suggested above.

Deactivate

deactivate

Git hooks

Set up your Githooks via:

git config core.hooksPath githooks/

Examples

You can find examples of how to use the API in examples.

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

fixpoint_sdk-0.4.0.tar.gz (76.1 kB view details)

Uploaded Source

Built Distribution

fixpoint_sdk-0.4.0-py3-none-any.whl (165.4 kB view details)

Uploaded Python 3

File details

Details for the file fixpoint_sdk-0.4.0.tar.gz.

File metadata

  • Download URL: fixpoint_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 76.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for fixpoint_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d64b313f8469f0ad203f33dbb34ee84ec8c160af4f5d2d726a6d82bb985ddfa3
MD5 c35b4fbd67874538cb01b55dfa9a0233
BLAKE2b-256 4531560ed732602254d89eb008ffa902941ff794b69274e154497d6170eb8a51

See more details on using hashes here.

File details

Details for the file fixpoint_sdk-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: fixpoint_sdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 165.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for fixpoint_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3045f45e2d841b9aab2f7f867743f57c3463ce0472a112206a45ae1dbb63235e
MD5 42fe05b1461d5714c4428c66e4f703b8
BLAKE2b-256 ea7d410ac41387d6a322d6808f1c92edc8f3d6c07a6cd1430ac4e64d54570eef

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