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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fluidattacks_tracks-0.6.0.tar.gz
Algorithm Hash digest
SHA256 6caf8cc32a3b06125152077809c20a7f736cfc64b108984db9964e97164f58d8
MD5 dba3053ecbf5022655abb1477bbed652
BLAKE2b-256 06aed6051ab6ce898c9f48e0b25d563c357ed8345e181debe87548290b5d8d4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de3bea52d1c473487fb368dffda23427f6005737e285b4bd7e332adb756b4ed1
MD5 a68c277c3bcf66109a5a3db97c83b78d
BLAKE2b-256 1db4cb8e87358fae71532363d5168f9fddb69ef4a0471195a1638d1eda08f254

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