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.8.1.tar.gz (56.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.8.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fluidattacks_tracks-0.8.1.tar.gz
Algorithm Hash digest
SHA256 86411cba88b60f8821985491ba407a29d41b8db006a72cfb2d9838f23d398ff8
MD5 20c367f4d03b8b96021117b6f4262af4
BLAKE2b-256 89d3f92653a31d2985176e5a06cb10911bf836e8eb432b9f8384ce0bb295f0dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bf81b9f93db08500158253c7823756040d89aecbcdc4df759a40e4d57e84f9b
MD5 7d378527785e6824670ff4bb82139a9a
BLAKE2b-256 ff62a318140eb19d85d02599724c179039fbad03da412ab0bc1b117382225b04

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