Registry / devops / universal-startfile

universal-startfile

JSON →
library0.4pypypi✓ verified 82d ago

A cross-platform replacement for os.startfile (Windows) that works on macOS and Linux by opening files with the default application. Current version 0.4, requires Python 3.9+. Releases are sporadic.

pip install universal-startfile
INSTALL
IMPORT
SIG · UNIVERSAL-STARTFIL
U
universal-startfile
devopspythonv0.4
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

startfile
from startfile import startfile
from universal_startfile import startfile

Opens a file using the OS default program. Works on Windows, macOS, and Linux.

from universal_startfile import startfile # Open a file with the default application (cross-platform) startfile('/path/to/file.pdf')
Debug
Known issues
gotchaThe package name on PyPI uses hyphen (universal-startfile), but the Python module uses underscore (universal_startfile). Import as `from universal_startfile import startfile`.
fix
Use underscore in imports: `from universal_startfile import startfile`.
affects: all
gotchaOn Linux, `startfile` typically calls `xdg-open`. This may fail silently if no default application is configured or if the file type is not associated.
fix
Check return value (if any) or verify file associations before calling.
affects: all
Upgrade
Version history
0.4latest on PyPI · released Oct 20, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Resources
universal-startfile — pip install universal-startfile · libregistry