Skip to main content

Shared utilities for Sunsoft packages

Project description

sunsoft-utils

Shared utilities for Sunsoft packages.

Installation

pip install sunsoft-utils

Usage

Download Tracking

from sunsoft import send_first_run_stats

def main():
    # Send first run statistics
    send_first_run_stats(
        script_name='your-package-name',
        version='1.0.0'
    )

    # Your code here...

Features

  • Anonymous download tracking
  • First-run detection
  • Version tracking
  • Support for --no-track-install flag
  • Colored console output

Configuration

The tracking data is stored in ~/.sunsoft.json and includes:

  • First run date
  • Registration date
  • Version information
  • Installation status

Requirements

  • Python 3.8 or higher
  • requests>=2.32.3
  • termcolor>=2.3.0

License

MIT License

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

sunsoft_utils-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

sunsoft_utils-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file sunsoft_utils-0.1.0.tar.gz.

File metadata

  • Download URL: sunsoft_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for sunsoft_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d6aebf81da124f555af2462b4e1d0b39a7ab0395b61cd7ca1c64425dd63a0c3
MD5 07b1a7529eb7976b8983b0a7680d2c0c
BLAKE2b-256 cae629bf0c4e906e077382f250b2e86979ceb3a32b7c38521a84dc3742712988

See more details on using hashes here.

File details

Details for the file sunsoft_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sunsoft_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for sunsoft_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49ca0e359edb0fff2139bdf449d639f6adf2bd54cf0eb15c7f9a03e9dd15fc9e
MD5 dc54471e8ab561763d6650263cc57fc7
BLAKE2b-256 c72db7fff745e3e86aad7af609c106c47c4ae39eb97a0536b3af6f6d01769435

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