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.15.0.tar.gz (68.8 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.15.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.15.0.tar.gz
Algorithm Hash digest
SHA256 6453f8e7e675863cbd0553e656fe7e85aa2fe4975aa0b0023ce035b8713adb1d
MD5 892ce5ca25f5decf6bef7462db8200f9
BLAKE2b-256 12767bbfcf46b478f3fc193e524c26cfa0ecd283d68de17abd7d7b55dac261a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79557d930814c10befc9e6c89718335e03e2ef009dccd85be6d6fd01e79ed7fe
MD5 f3d840d457c3171d714a5cb9b390ff52
BLAKE2b-256 1213d744460fc0ebed621e7f5c2165f14f3a9c1659f032b5a3176a014b59ae10

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