skillfed

scarf-sdk

Python bindings for Scarf telemetry

scarf-sdk v0.2.1 165.0K downloads/30d#10,531 on PyPI4
License unclear AGING released

What it is and what it does

scarf-sdk is a lightweight Python client for sending telemetry events to a Scarf endpoint. It wraps HTTP requests to a configurable endpoint, accepting JSON payloads with arbitrary event data and supporting nested structures. The client depends only on requests and provides a simple ScarfEventLogger class that accepts an endpoint URL and optional timeout, then logs events via a log_event() method that returns success/failure status.

The package is designed for integration into other tools or libraries that want to send usage telemetry. It respects user privacy settings via DO_NOT_TRACK and SCARF_NO_ANALYTICS environment variables, and supports verbose logging for debugging. Timeouts are configurable both at initialization (default 3 seconds) and per-call, allowing flexibility in network conditions.

Use it for:

  • Track package downloads or installations by logging events when your package is installed or used.
  • Send custom telemetry from a CLI tool to understand user behavior and feature adoption.
  • Monitor application usage patterns by logging events at key points in your application flow.
  • Debug telemetry integration with verbose logging mode to verify events are reaching the endpoint.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client for sending telemetry events to a Scarf endpoint via JSON payloads, with support for configurable timeouts and Do Not Track settings.

Yes, if you have a Scarf endpoint and need a minimal telemetry client. The package is simple, has low install friction, and respects privacy settings. However, the aging maintenance status (4 stars, no recent releases) and unclear license metadata warrant caution in production—verify the Apache 2.0 license is actually applied and consider whether the project's low activity level is acceptable for your use case.

Install

scarf-sdk on PyPI

pip

pip install scarf-sdk

uv

uv add scarf-sdk

poetry

poetry add scarf-sdk

Installing scarf-sdk

Before you install

Low install friction with a single runtime dependency (requests). Maintenance status is aging—the repository has 4 stars, last commit on 2026-01-07, and no releases since 2025-12-31, so expect slower response to issues or updates.

License in practice

License treatment is unclear: no SPDX identifier or raw license string is recorded in the package metadata, despite the description mentioning Apache 2.0. Verify the actual license terms before use in proprietary or restricted contexts.

Quickstart

pip install scarf-sdk

from scarf import ScarfEventLogger

logger = ScarfEventLogger(endpoint_url="https://your-endpoint.com")
success = logger.log_event({"event": "test", "data": "value"})

Requires Python >=3.7 and a reachable Scarf endpoint URL to initialize the logger.

Verify before relying

  • Whether the Apache 2.0 license mentioned in the description is actually enforced in the package metadata or if there is a mismatch.
  • Whether the aging maintenance status and low star count indicate active community use or potential abandonment.
  • Whether the package respects Do Not Track and SCARF_NO_ANALYTICS environment variables reliably in production.

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 1 — requests
Maintenance aging — 226 days since the last release
Last repo commit
First released
Downloads 165,036/month — #10,531 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: scarf_sdk-0.2.1-py3-none-any.whl

Tags

telemetry event loggingscarf analytics clientjson event trackingtelemetry sdk pythonanalytics event senderscarf telemetryevent logging api
telemetryanalyticsevent-logging

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

kanaries-track

Sends event and metric data to Kanaries' data…

permissive · top 15,000 on PyPI

posthoganalytics

Sends event data and user properties to PostHog…

permissive · top 5,000 on PyPI

openvino-telemetry

Sends telemetry data from OpenVINO toolkit…

permissive · top 5,000 on PyPI

snowplow-tracker

Sends event data from Python applications to…

permissive · top 1,000 on PyPI

tb-mqtt-client

Python client SDK for ThingsBoard IoT platform,…

permissive · top 15,000 on PyPI

iterative-telemetry

Sends anonymized telemetry data from Iterative…

permissive · top 5,000 on PyPI

kedro-telemetry

Kedro-Telemetry is a plugin that collects…

permissive · top 15,000 on PyPI

newrelic-telemetry-sdk

Sends custom metrics, events, logs, and…

permissive · top 5,000 on PyPI

azure-monitor-opentelemetry-exporter

Exports OpenTelemetry traces, metrics, and logs…

permissive · top 1,000 on PyPI

raindrop-ai

Instrument LLM applications with event tracking…

permissive · top 15,000 on PyPI