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

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

Uploaded Source

Built Distribution

fixpoint-0.10.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file fixpoint-0.10.0.tar.gz.

File metadata

  • Download URL: fixpoint-0.10.0.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for fixpoint-0.10.0.tar.gz
Algorithm Hash digest
SHA256 f3b5ad64b941789e1c4b93eff3009bb858a08e8119652630147e9b1e502670f9
MD5 50d92979e272a36d20297eece8861a4f
BLAKE2b-256 56d299527b06993759c6963b824dbdc1101ecbb7e82b30b8865075e927660820

See more details on using hashes here.

File details

Details for the file fixpoint-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: fixpoint-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for fixpoint-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d26a38b41b8f998eb2837f96ef82e04148c1030d4645bcf3c2f7f74c5528c08
MD5 e18f13dbba84b7a224ce5c772e540e85
BLAKE2b-256 08befdf1bdba7342d4b24eeed8e4699a5619f537b4b18df1342b21d98a1b14dd

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