Skip to main content

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

Metadata

Release files for apphandler 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apphandler 1.0.0
File Size Uploaded Provenance
apphandler-1.0.0.tar.gz 2.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for apphandler 1.0.0
File Interpreter ABI Platform
apphandler-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / apphandler-1.0.0.tar.gz

Download URL apphandler-1.0.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
379d80f28a679025863185befcfb8e4fdfb262b40c9c5d2b9307f73971b5cf8c
BLAKE2b-256 checksum
How to use checksums
77d556d2bc1e3c6aaf4a14cbbf090e07aa32d1f2d6936223fb4d2a9427f336e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Release files / apphandler-1.0.0-py3-none-any.whl

Download URL apphandler-1.0.0-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efbc93d3f1d8cf3a5eed6f901ff13bd5525e23bbe341ef27c6429e3aa697e7a1
BLAKE2b-256 checksum
How to use checksums
b9836b98724277baaa09bc99cd71d3e853f09af4d813eb42e9d071415b1511bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Security for apphandler 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apphandler-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page