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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fluidattacks_tracks-0.6.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d83a0f91c589fc4ebe149b563e378911761d3de4b494776ed1fbccadd4eebf6d
MD5 5faf9e31341c39b718ebdfcf9c2cd0f6
BLAKE2b-256 f743d318d3fe8a824887ae57d39353fc132293a0c62c7eb05c703a09488833a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fluidattacks_tracks-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef0aa212d3ad9d92c2e902a0e1df484a696a28b7828981e61a666eb3e39e3c1b
MD5 516d9f8b32ebc6cc4b48df03b73b54db
BLAKE2b-256 ca8790f3666eca5b865c35121a644289cbf6be2b1f2fd0aafc52c83008f7a3b7

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