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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fluidattacks_tracks-0.8.2.tar.gz
Algorithm Hash digest
SHA256 cf5ca9b178932742024a4f74e463f5d456c9987ee0ad58c6f95c16c4eb677fbd
MD5 6d29b0d7101ee83aed40902e46a6d4ae
BLAKE2b-256 cece625a6096c2ed0aece7150eba1aea2e66ff33e132dec77909bc6b983cd1d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c38291c7e8c20f4b231d4a0adf2180bb071955a441a9d3106256c0dfc451550
MD5 d00ab343a63a46f3f0d5090c403b1383
BLAKE2b-256 c58337396ddeaa0b2197b8797eb3d759ab07c270b44b6f69579fec444a17ac06

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