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.30.tar.gz
(10.8 kB
view details)
Built Distribution
rosnik-0.0.30-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file rosnik-0.0.30.tar.gz
.
File metadata
- Download URL: rosnik-0.0.30.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59786661daf30bf7716946b36642e173abe1d5f2bb7c7f1fb1b41db41f67b89c |
|
MD5 | 296f8c2f2c771f58e7fb4cc4d1944b64 |
|
BLAKE2b-256 | ff5af26c315f30eab20f2e8b4d17127a91a40587ad0992846589f30d32571af5 |
File details
Details for the file rosnik-0.0.30-py3-none-any.whl
.
File metadata
- Download URL: rosnik-0.0.30-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af64dbe4375cf16f9129568eeee4a30d2064590bc698c9204e852e5f6ba1d788 |
|
MD5 | 26b437453aac41a87efd13b358f43920 |
|
BLAKE2b-256 | f84701739834f96a391760b8542e846bfa8c6b967c833cce756f485f05c4600b |