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.7.0.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.7.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fluidattacks_tracks-0.7.0.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.7.0.tar.gz
Algorithm Hash digest
SHA256 74ec865d52cfcbebfb07094a81f6c5cec9b457c2926e0471ca0d56514b9efbe6
MD5 509fb0b45945e94e2cb8f34a038b32ed
BLAKE2b-256 4d5077802d01382c054e5a653f2a64597f43f75cf993847db4f1d0cd4c9e2bab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d8fb02862a06269bb215b4b3633c7c068a15a613eb5e84b23e3c74fb7719f2f
MD5 e2eb3b5a040152c3fd854632b287bcab
BLAKE2b-256 09f6f00fc851f077a0dc4ea2eaf8f0e92810505c81ab8c174b3c0e90d4d9f72a

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