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.6.4.tar.gz (9.4 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.6.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fluidattacks_tracks-0.6.4.tar.gz
Algorithm Hash digest
SHA256 6d22270201822977db98e1f023b235bc75813a12c1214ac41fbf4d23d4ab975c
MD5 d05774248bee7be58a34e20f2d887ed6
BLAKE2b-256 f1394844651b52d2231bb54ab6564753882a3b42058a95a9f81d058d40318e65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1e52ac140a810aba6768f34752221f8fa45aed9d5a241e9746c9d04eefda865f
MD5 281192e87d3634828b2da9c41df92cb4
BLAKE2b-256 f3a100673c95ed1e45dbf126da19e30aaa2fc4b870c9efd1868656ab47270840

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