Skip to main content

Overview

This is a cross-platform version of the os.startfile function in the Python standard library.

It emulates the following actions in an operating system's UI:

  • double-clicking a file
  • single-clicking a URL

which will open the default program associated with that type.

Unix Build Status Windows Build Status Coverage Status PyPI License PyPI Version PyPI Downloads

Setup

Requirements

  • Python 3.9+

Installation

Install it directly into an activated virtual environment:

$ pip install universal-startfile

or add it to your Poetry project:

$ poetry add universal-startfile

Usage

After installation, import the startfile function:

from startfile import startfile

startfile("~/Downloads/example.png")
startfile("http://example.com")

Metadata

Release files for universal-startfile 0.4

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

Source distribution (sdist)

Source distribution for universal-startfile 0.4
File Size Uploaded
universal_startfile-0.4.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for universal-startfile 0.4
File Interpreter ABI Platform
universal_startfile-0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / universal_startfile-0.4.tar.gz

Download URL universal_startfile-0.4.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
927546329a05e497306fd71af59e93371a8ec535c44cbbd30ce42cf10f41f422
BLAKE2b-256 checksum
How to use checksums
347a5a79196105931ca9fef9c8c3d45de0ec33e6de6240ba17ef9b025eb4e8ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.7 Darwin/24.6.0

Release files / universal_startfile-0.4-py3-none-any.whl

Download URL universal_startfile-0.4-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5de70f9773bc392fe7c93013d0c05b2cc1beec60b9220e909cf8e9411b15d262
BLAKE2b-256 checksum
How to use checksums
263c17a8c3422aebcaa914e486983376dc6a518e205b672328568dc37b2e84b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.7 Darwin/24.6.0

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

0.0.1

2 release files

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