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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fixpoint_sdk-0.9.0.tar.gz
.
File metadata
- Download URL: fixpoint_sdk-0.9.0.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ff5545192e248b29a59ecce0d35b78c3afb7a3a3b48f8a214059e0ee75bcd8 |
|
MD5 | dbb88101cc175cfa11fa07a3c85e7ad2 |
|
BLAKE2b-256 | 49a4a7ca9fbe7d7136ec170e3d29ede624c7f8cb7f45836375f439447d28d7ae |
File details
Details for the file fixpoint_sdk-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: fixpoint_sdk-0.9.0-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b6d056bcceb2cd88ce52c640f73474ada8ad767dea8b170611b981516ddd8c |
|
MD5 | 9f3ebad4a8a3525e009d489d91066732 |
|
BLAKE2b-256 | a3f90784ae84db6606fe9df22900e8fa99db099c2f8e911cdf9c91fec4bb51e8 |