Skip to main content

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


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.26.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

rosnik-0.0.26-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file rosnik-0.0.26.tar.gz.

File metadata

  • Download URL: rosnik-0.0.26.tar.gz
  • Upload date:
  • Size: 9.2 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

Hashes for rosnik-0.0.26.tar.gz
Algorithm Hash digest
SHA256 645aa6fb4e8d2ca900a93ca6811994fb28c761006ab514f464aef965b33ce2dc
MD5 799ca8c73e295a6c892f25ffbc4cc4f5
BLAKE2b-256 c2e76668b09d5b388dc6b8e64e1ecf958d33c6e61099f67be75aef040a0b8441

See more details on using hashes here.

File details

Details for the file rosnik-0.0.26-py3-none-any.whl.

File metadata

  • Download URL: rosnik-0.0.26-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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

Hashes for rosnik-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 789210921e2e8bdf64cb45118bb7c979e9d48e249e876c5b5eca377f083caa96
MD5 19647ecb5e9c24bb8080956768d3e79d
BLAKE2b-256 c80ad4ee4bf123007060daa2869d1f6fd4ea620b37341d56d334ff90335307b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page