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 tosys.argv[0](current running file)flag— defaults toinstalled.flagnext to the exe- Returns
Trueon first launch,Falseon subsequent launches
create_shortcut(app_name, exe_path=None)
Creates a desktop shortcut for the app.
app_name— name of the shortcut fileexe_path— defaults tosys.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 fileexe_path— defaults tosys.argv[0](current running file)
Requirements
- Windows only
- Python 3.x
Author
Manish Maharana
- GitHub: @Manish-Maharana-0g
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
379d80f28a679025863185befcfb8e4fdfb262b40c9c5d2b9307f73971b5cf8c
|
|
| MD5 |
aad9b6cb2aaae4a6de76b888da727486
|
|
| BLAKE2b-256 |
77d556d2bc1e3c6aaf4a14cbbf090e07aa32d1f2d6936223fb4d2a9427f336e6
|
Provenance
The following attestation bundles were made for apphandler-1.0.0.tar.gz:
Publisher:
publish.yml on Manish-Maharana-0g/apphandler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
apphandler-1.0.0.tar.gz -
Subject digest:
379d80f28a679025863185befcfb8e4fdfb262b40c9c5d2b9307f73971b5cf8c - Sigstore transparency entry: 1260847449
- Sigstore integration time:
-
Permalink:
Manish-Maharana-0g/apphandler@cbe2db545c0a46548ee45a99057c793554b51821 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Manish-Maharana-0g
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cbe2db545c0a46548ee45a99057c793554b51821 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efbc93d3f1d8cf3a5eed6f901ff13bd5525e23bbe341ef27c6429e3aa697e7a1
|
|
| MD5 |
e3b8beab4095afdf2fac021a5f2bd64f
|
|
| BLAKE2b-256 |
b9836b98724277baaa09bc99cd71d3e853f09af4d813eb42e9d071415b1511bf
|
Provenance
The following attestation bundles were made for apphandler-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on Manish-Maharana-0g/apphandler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
apphandler-1.0.0-py3-none-any.whl -
Subject digest:
efbc93d3f1d8cf3a5eed6f901ff13bd5525e23bbe341ef27c6429e3aa697e7a1 - Sigstore transparency entry: 1260847454
- Sigstore integration time:
-
Permalink:
Manish-Maharana-0g/apphandler@cbe2db545c0a46548ee45a99057c793554b51821 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Manish-Maharana-0g
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cbe2db545c0a46548ee45a99057c793554b51821 -
Trigger Event:
release
-
Statement type: