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.13.0.tar.gz (68.5 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.13.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.13.0.tar.gz
Algorithm Hash digest
SHA256 05c7dd9a6c3fb7b5021d3dde0736b52a964027baf9fdaae1c9677a9e165e1366
MD5 0a74d38362017f83009d41e51a22ea9f
BLAKE2b-256 97db51c3dcb5042fa91f5e9280a42b78ed29fe96c2aa501379b825f9506ca4f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6def7b2ff8c685ae9e2cd202c7b4626593d6d6bd6a98418c74791044cb77fce1
MD5 83077ae00f1aac2fc98b5a53e49041bb
BLAKE2b-256 e768e407c290404e23589624f9a3a95c2340458d567356297ea96d824bee5c68

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