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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fluidattacks_tracks-0.9.0.tar.gz
Algorithm Hash digest
SHA256 1a6803877a20999bddb8ffc08ff45b727cd987f556365c78e82f6149b1fee969
MD5 50d6bcdd1283b1b40c4b725a004d83c6
BLAKE2b-256 ea6eb18c28ca1e7ad762fb2ed452dcf5391ab7bcde63f5c57cd767809427fcc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35bc576315d550cbe36093f0e295677fab070b210bca203b73a8bc02a7d93f08
MD5 50fa2bb50231d447af96d9cf5ba3db86
BLAKE2b-256 b62939310c7284426bc836f331b052f647c12ad219eaf39df5e3efa16b004191

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