Skip to main content

Python library for usage analytics

Project description

fluidattacks-tracks

PyPI version

Fluid Attacks logo

This library provides a convenient way to report usage analytics from any Python 3.11+ application.

All operations run in a background thread, and errors are logged but don't propagate to the caller, ensuring your application's flow isn't interrupted.

Usage

from datetime import datetime, UTC
from fluidattacks_tracks import Tracks
from fluidattacks_tracks.resources.event import Event

client = Tracks()
client.event.create(
    Event(
        action="CREATE",
        author="author",
        date=datetime.now(UTC),
        mechanism="API",
        metadata={"foo": "bar"},
        object="object",
        object_id="object_id",
    )
)

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

fluidattacks_tracks-0.14.0.tar.gz (69.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluidattacks_tracks-0.14.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file fluidattacks_tracks-0.14.0.tar.gz.

File metadata

File hashes

Hashes for fluidattacks_tracks-0.14.0.tar.gz
Algorithm Hash digest
SHA256 ea2f24beab7b3a0cb98068097b382c3d61fc6646c878166c9d118eb836579a08
MD5 bab3a1e27a6a5307ff5fe8851195613f
BLAKE2b-256 0f24e16472f616f90a55da15003075e1b6cb9e6b0528f6b68c44b013eaa235b2

See more details on using hashes here.

File details

Details for the file fluidattacks_tracks-0.14.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fluidattacks_tracks-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d35c1c4c7d7b1a394dbefe16868c7e9fa85c641ba3303c51db5904cdd03ef348
MD5 8b7eeaf564811f6f61b70a4d20d83287
BLAKE2b-256 bc0d14704765dd9dd720a0e07e3cf9d683fbcee9e198aa2077fe3d1d05f71445

See more details on using hashes here.

Supported by

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