ROSNIK Python SDK
Project description
rosnik-python
Getting started
Install
pip install --upgrade rosnik
Configuration
Then in your application code:
import rosnik
rosnik.init(api_key="api-key", environment="development")
Environment Variables
Please note that environment variables will override configuration values passed in via initialization.
# 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=
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(api_key="api-key", environment="development")
# 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.25.tar.gz
(9.3 kB
view details)
Built Distribution
rosnik-0.0.25-py3-none-any.whl
(12.8 kB
view details)
File details
Details for the file rosnik-0.0.25.tar.gz
.
File metadata
- Download URL: rosnik-0.0.25.tar.gz
- Upload date:
- Size: 9.3 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 | cff7b984a357da1a32227c5862eba9f396c96ac6f9d3d27b11513e6fb3f1ec68 |
|
MD5 | 81835ab95d449903b2d08849624c55cb |
|
BLAKE2b-256 | de95e6ea89f45e5b0baa124fcd7c6f56e570086f07179a59eabff01b1397e4fc |
File details
Details for the file rosnik-0.0.25-py3-none-any.whl
.
File metadata
- Download URL: rosnik-0.0.25-py3-none-any.whl
- Upload date:
- Size: 12.8 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 | fcb3a97136c93a5542d2e94b75cbe52ff19477bdd1d549c1303132ff6cd37a36 |
|
MD5 | 00789305880d0788c805b21ac0c2e770 |
|
BLAKE2b-256 | 5b9ea5778daa6d4936ccdba099250cc41d92b20ecbfd5d87fa3b90b3f11a8976 |