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

Uploaded Source

Built Distribution

fixpoint_sdk-0.6.0-py3-none-any.whl (166.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fixpoint_sdk-0.6.0.tar.gz
  • Upload date:
  • Size: 77.0 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.6.0.tar.gz
Algorithm Hash digest
SHA256 41a921fed899410ec6584b1850eb5da843b793dc2187ba477007611151842132
MD5 c663dcf3593ca16f7a45deb4f5c6d138
BLAKE2b-256 da2c12aa00e546ed5767253a52f5147b0da182702476b19e276983bf01b6c7f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fixpoint_sdk-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 166.5 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 428ebf680b433472af687974b0ac74c79c7a1d4bd930dbd071a30307e750a563
MD5 cbb9dfafdbc3675220ae725b33ab274c
BLAKE2b-256 60f307967368be4eccf5bcdbc15c9eb28e804ea7315efca587fe8bac16db77f1

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