Skip to main content

Session replay and error monitoring: stop guessing why bugs happen!

Project description

highlight-io Python SDK

This directory contains the source code for the Highlight Python SDK.

E2E

The e2e directory contains supported Python frameworks integrated with our SDK for local development and testing. Do not use the snippets verbatim as they are configured for local development and will not work in production without changes.

Install

  • Install poetry
  • poetry install --all-extras

Run e2e apps

Django

  • cd e2e/highlight_django
  • poetry run python manage.py runserver

Flask

  • cd e2e/highlight_flask
  • poetry run flask run

Fastapi

Start Redis:

  • cd docker
  • ./start_infra (in order to start Redis)

Using Boto/Boto3 endpoints:

  • Update the have the following environment variables (edit Run Confirguration in PyCharm)
  • E2E_AWS_ACCESS_KEY (from IAM account)
  • E2E_AWS_SECRET_KEY (from IAM account)
  • SQS_QUEUE_URL (from SQS queue information)

Running the main app:

  • cd e2e/highlight_fastapi
  • poetry run uvicorn main:app

Running Celery worker:

  • cd e2e/highlight_fastapi
  • poetry run celery -A e2e.highlight_fastapi.work worker --loglevel=INFO

Loguru

  • cd e2e/highlight_loguru
  • poetry run python main.py

Run tests

  • poetry run pytest

Lint

  • poetry run black .

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

highlight_io-0.6.14.tar.gz (10.3 kB view hashes)

Uploaded source

Built Distribution

highlight_io-0.6.14-py3-none-any.whl (15.4 kB view hashes)

Uploaded py3

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