Skip to main content

App installation utilities for Python apps

Project description

apphandler

App installation utilities for Windows Python apps.

Installation

pip install apphandler

Usage

from apphandler import first_launch, create_shortcut, create_start_menu

# First launch — returns True if first launch, False otherwise
if first_launch():
    create_shortcut("MyApp")
    create_start_menu("MyApp")

# Create desktop shortcut manually
create_shortcut("MyApp")

# Create Start Menu shortcut manually
create_start_menu("MyApp")

Functions

first_launch(exe_path=None, flag=None)

Validates if the app is launched for the first time by checking for a flag file.

  • exe_path — defaults to sys.argv[0] (current running file)
  • flag — defaults to installed.flag next to the exe
  • Returns True on first launch, False on subsequent launches

create_shortcut(app_name, exe_path=None)

Creates a desktop shortcut for the app.

  • app_name — name of the shortcut file
  • exe_path — defaults to sys.argv[0] (current running file)

create_start_menu(app_name, exe_path=None)

Creates a Start Menu shortcut for the app.

  • app_name — name of the shortcut file
  • exe_path — defaults to sys.argv[0] (current running file)

Requirements

  • Windows only
  • Python 3.x

Author

Manish Maharana

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

apphandler-1.0.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

apphandler-1.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file apphandler-1.0.0.tar.gz.

File metadata

  • Download URL: apphandler-1.0.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for apphandler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 379d80f28a679025863185befcfb8e4fdfb262b40c9c5d2b9307f73971b5cf8c
MD5 aad9b6cb2aaae4a6de76b888da727486
BLAKE2b-256 77d556d2bc1e3c6aaf4a14cbbf090e07aa32d1f2d6936223fb4d2a9427f336e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for apphandler-1.0.0.tar.gz:

Publisher: publish.yml on Manish-Maharana-0g/apphandler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file apphandler-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: apphandler-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for apphandler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efbc93d3f1d8cf3a5eed6f901ff13bd5525e23bbe341ef27c6429e3aa697e7a1
MD5 e3b8beab4095afdf2fac021a5f2bd64f
BLAKE2b-256 b9836b98724277baaa09bc99cd71d3e853f09af4d813eb42e9d071415b1511bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for apphandler-1.0.0-py3-none-any.whl:

Publisher: publish.yml on Manish-Maharana-0g/apphandler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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