universal-startfile
A cross-platform version of 'os.startfile' from the standard library.
Decision gist · record as of 2026-08-14
Yes. The package solves a genuine cross-platform gap in the standard library with zero dependencies, active maintenance, and a permissive license. It is stable despite its Alpha classifier and has been in use since 2022. Install it if you need to open files or URLs with system defaults in a portable way.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained with recent commits; marked Alpha but has been stable since first release in 2022.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2025-10-20 (298 days) · last repo commit 2026-08-10 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 121,750 downloads/mo, #11,972 on PyPI
Alternatives
Verify before relying
pip install universal-startfile
from startfile import startfile
startfile("~/Downloads/example.png")
startfile("http://example.com")- Whether the package handles edge cases like non-existent files or malformed URLs gracefully.
- Performance characteristics when opening many files in rapid succession.
- Behavior on less common desktop environments (e.g., Wayland, headless systems).
What it is and what it does
universal-startfile is a thin cross-platform wrapper that mimics the behavior of Python's os.startfile function (which only works on Windows) on macOS and Linux. It lets you open a file or URL by invoking the operating system's default handler—the same action as double-clicking a file or clicking a link in a browser. The package has no runtime dependencies and installs as a pure Python wheel, making it lightweight and portable.
You import a single function, startfile, and pass it a file path or URL. The package handles the platform-specific logic internally, delegating to the appropriate system command (xdg-open on Linux, open on macOS, os.startfile on Windows). It's useful in desktop automation, file management utilities, or any script that needs to hand off a resource to the user's preferred application without knowing which one that is.
Use it for
- Open a downloaded file in its default application from within a Python script or CLI tool.
- Launch a URL in the user's default browser without hardcoding browser names.
- Implement a cross-platform 'open with default app' feature in a desktop utility.
- Trigger file-manager or document-viewer actions from automation scripts on multiple OS platforms.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package solves a genuine cross-platform gap in the standard library with zero dependencies, active maintenance, and a permissive license. It is stable despite its Alpha classifier and has been in use since 2022. Install it if you need to open files or URLs with system defaults in a portable way.
Install
universal-startfile on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained with recent commits; marked Alpha but has been stable since first release in 2022.
Requires Python 3.9 or later.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install universal-startfile
from startfile import startfile
startfile("~/Downloads/example.png")
startfile("http://example.com")
Verify before relying
- Whether the package handles edge cases like non-existent files or malformed URLs gracefully.
- Performance characteristics when opening many files in rapid succession.
- Behavior on less common desktop environments (e.g., Wayland, headless systems).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 298 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 121,750 / month, #11,972 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Desktop Environment :: File ManagersTopic :: Software Development :: LibrariesTopic :: System :: FilesystemsTopic :: Utilities |
Evidence: universal_startfile-0.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “open file with default application”
- universal-startfileProvides a cross-platform wrapper around os.startfile that opens…
- editorOpens your system's default text editor (or a specified one) to edit…
- blobfileProvides a unified Python file interface for reading and writing to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also clipboard · Send2Trash · PyGetWindow · pathtools · pyshortcuts · pyperclip · notify_py · hbreader · portalocker · dmgbuild