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.8.2.tar.gz
.
File metadata
- Download URL: fixpoint_sdk-0.8.2.tar.gz
- Upload date:
- Size: 35.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b7576dd074188cf2a13a2e4793828ab59c5e23564dd293b122ea688202df61 |
|
MD5 | 71fff5f18a0c8e80f31c1372aca7740b |
|
BLAKE2b-256 | abeced0d19ea543fb641a2c97609f35ee9008e2cf168f610759d6f1781172913 |
File details
Details for the file fixpoint_sdk-0.8.2-py3-none-any.whl
.
File metadata
- Download URL: fixpoint_sdk-0.8.2-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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6c299142358dc487181d9d38518ac1265c589d9400d67bc48ca463a2f922a9b |
|
MD5 | 82e9180babb524573d50acef9a032d90 |
|
BLAKE2b-256 | 6b568972af461cfef1e6d4003a5cb4509cc5d8ec686c0be60e42e42d73ae68b2 |