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.9.1.tar.gz (57.2 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.9.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fluidattacks_tracks-0.9.1.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for fluidattacks_tracks-0.9.1.tar.gz
Algorithm Hash digest
SHA256 1c98422a6f08f6b0a89c47834fabb88689effd94ba9d6b6033c5492f6a4fbb4e
MD5 c135dbd813a7a1a5b327533fa8946602
BLAKE2b-256 3ff02bb547259e8e1dd0552a2b54f0f9fe2640ee17e805db7d678c8a709e8d26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46be9614b0052eb094416cd96568cd5da2eb6e27ec8b5a36b8df3ad2257edd6d
MD5 f5e10e34eec3819430b9a8c1e84ecbe6
BLAKE2b-256 1a6b576a70f34d44c57f9f01230c0f750393c2469ab30d3f23d3d244a28c9990

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