Skip to main content

Plausipy is a Python package that provides insightful usage information while prioritizing user privacy. It empowers users by giving them control over their data and emphasizes transparency to build trust between developers and users. Ideal for applications that aim to balance analytics with responsible data management, Plausipy promotes ethical data handling as the standard.

Project description

Plausipy - Privacy-First Usage Analytics for Python Applications

Plausipy is a powerful Python package designed to provide developers with insightful usage analytics while placing a strong emphasis on user privacy. It enables applications to gather meaningful data about their usage without compromising the trust of their users. Plausipy focuses on transparency, user control, and ethical data management, ensuring that developers can leverage analytics responsibly while respecting user privacy.

What data can be tracked with Plausipy?

Plausipy allows developers to track various aspects of their applications' usage, offering valuable insights that can help improve performance, user experience, and overall functionality. The package collects data across three main categories:

  1. Runtime Information: Understand how your application performs during execution, including:

    • RAM usage
    • Execution time
    • Exit code
  2. System Information: Gain insights into the environments where your application runs, including:

    • Platform (e.g., Windows, macOS, Linux)
    • Python version
  3. Location Information: Collect geographical data that can help tailor user experiences, such as:

    • Country
    • Region
    • Timezone

Consent

Asking users for consent is crucial for maintaining trust and transparency, but it should not hinder the user experience. Striking this balance is sensitive.

Plausipy will present a single dialog box to users, requesting consent for collecting usage statistics. Users can select their options interactively using the arrow keys or by pressing the corresponding key.

To minimize user requests, Plausipy will maintain a global user consent state that applies to all packages. Additionally, users can utilize the Plausipy CLI tool to whitelist or blacklist individual packages.

Privacy-First Approach

Plausipy is built with a commitment to user privacy at its core. Here’s how it achieves this:

1. No Personal Data Collection

Plausipy does not collect any personal user data, including email addresses, names, or IP addresses. This ensures that users' identities remain confidential, fostering a trustful relationship between developers and users.

2. Give Users Control

Plausipy empowers users to control their data by providing them with the ability to customize the information they want to share and to opt-out of any tracking.

3. Tracking Profiles

Plausipy employs a robust framework to manage data collection through three distinct tracking profiles, each designed to enhance privacy and control:

  • User Scope: A unique user ID is assigned to track usage data across different packages. This allows for the creation of user profiles that aggregate usage information without ever linking to real-world identities. Importantly, this user ID is anonymized, ensuring that it cannot be traced back to an individual.

  • Package Scope: Within this scope, usage data from multiple executions of the same package can be linked to the same user ID. However, data from different packages is kept separate, preventing any cross-contamination of information. This means that while developers can gain insights into how a specific package is used, they cannot connect this data to a user’s activity across different packages.

  • Anonymous Scope: Each execution of the application is treated independently under this scope. A unique ID is assigned to each execution, ensuring that no profiling or user behavior tracking can occur based on the ID. The unique ID is stored locally as a reference and can be used to request the deletion of tracking records for a specific run.

4. User Transparency

Users have the right to know what data is being collected about them. With Plausipy, users can view all collected data through the Plausipy CLI tool. This transparency empowers users to understand and manage their data, reinforcing trust between developers and users.

Future Enhancements

Plausipy is continuously evolving. Future updates will include features that allow users to request the deletion of tracking records for specific packages or individual runs, further enhancing user control over their data. We also plan to support custom properties to give more flexibility to developers in tracking additional data points.

Getting Started

To integrate Plausipy into your project, follow these steps:

# add dependency 
uv add plausipy

# install via pip
pip install plausipy

Once installed, login to plausipy.com and create a package to obtain a Package Key.

Copy package key from plausipy.com portal.

To start collecting usage statistics, initialize Plausipy at the top of your application's entrypoint script.

import plausipy
plausipy.app(key="sayrrCCNbXY70ci6xHn8qlYwKyAUawgp", delay_consent=True)

# all other imports
# import x 

# ask for consent
plausipy.consent()

If you are developing a library, use the plausipy.lib method instead. This will automatically register your package for collection of usage information until requested by the main application.

import plausipy
plausipy.lib(key="sayrrCCNbXY70ci6xHn8qlYwKyAUawgp")

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

plausipy-0.4.0.tar.gz (60.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plausipy-0.4.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file plausipy-0.4.0.tar.gz.

File metadata

  • Download URL: plausipy-0.4.0.tar.gz
  • Upload date:
  • Size: 60.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for plausipy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7d03080d2087d4e9070127dd116bf8c9ea5e810a7875c7c3397260f042dcdda0
MD5 411e3a4262a9608e359e8b2ac50dd11e
BLAKE2b-256 bf9c53cd09df440adc766d3a8e8c2fb7e42558da8860cd6780e2760e16eb3c35

See more details on using hashes here.

File details

Details for the file plausipy-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: plausipy-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for plausipy-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96051eb205765b6ff2e086de0535438b5262bbf7df5ac4bd692abd517318ac2c
MD5 c8929c3a779fb5c315bf2125a3559ca8
BLAKE2b-256 ef61eef1c8b8a640676061fe4215d13e93b483708e8235d7c0a6925fdb1e0366

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