ROSNIK Python SDK
Project description
rosnik-python
Getting started
Install
pip install --upgrade rosnik
Configuration
We use environment variables to configure the SDK.
# This is required to authenticate against our event ingestion tier
ROSNIK_API_KEY=
# This is optional and will mark events to the application environment (e.g. development, staging, production).
# If not supplied, it will go into a default environment.
ROSNIK_ENVIRONMENT=
# Setting this to 1 will send events on the foreground thread.
# If it's not supplied or set to 0, it will send events on a
# background thread.
ROSNIK_SYNC_MODE=
Then in your application code:
import rosnik
rosnik.init()
Integrations
Please let us know if there are other providers that would be helpful to have automatic instrumentation.
AI Providers
- OpenAI: we support tracking Completion and ChatCompletion creations
Web Frameworks
- Flask: we have a Flask extension to automatically setup the SDK and link events to client-side metadata (browser SDK coming soon)
from rosnik import flask_rosnik
rosnik_extension = flask_rosnik.FlaskRosnik()
# rosnik.init happens here
rosnik_extension.init_app(app)
License
Licensed under the MIT license. See LICENSE.
Interested in learning more?
Send us an email at hello@rosnik.ai!
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
rosnik-0.0.22.tar.gz
(8.9 kB
view details)
Built Distribution
rosnik-0.0.22-py3-none-any.whl
(12.2 kB
view details)
File details
Details for the file rosnik-0.0.22.tar.gz
.
File metadata
- Download URL: rosnik-0.0.22.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe56f97a34dfded317b22c6ef0df9e7211c61433cf5c9f857aae4a93ef39bdfe |
|
MD5 | e3e98de38f81aadaffbdc71dcf3f3dc0 |
|
BLAKE2b-256 | 81280ee348c951feb82298d89252452d640cfee0ec5cd6679a02f3c338834219 |
File details
Details for the file rosnik-0.0.22-py3-none-any.whl
.
File metadata
- Download URL: rosnik-0.0.22-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c679db6750ebaa3f8e899ae69150bd44b7504309fb3e81fbe8163dbb29d8785 |
|
MD5 | ef4a1ecd30054129cca95e801b135158 |
|
BLAKE2b-256 | 9d96c83902bafb476f85b8621088cc71bf788f585d4d958ae1dd22434d00b274 |