Skip to main content

A cross-platform version of `os.startfile` from the standard library.

Project description

Overview

A cross-platform version of os.startfile from the standard library. This emulates double-clicking on a file or single-clicking a URL in an operating system's UI top open the default program.

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

Setup

Requirements

  • Python 3.7+

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

universal-startfile-0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

universal_startfile-0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file universal-startfile-0.1.tar.gz.

File metadata

  • Download URL: universal-startfile-0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.9 Darwin/20.6.0

File hashes

Hashes for universal-startfile-0.1.tar.gz
Algorithm Hash digest
SHA256 cf39617c3f64f8d1830f13dfaaa2493a3d6c2fd1c455dd3b4b4346d496fbaac1
MD5 aef627dbb89f475d05dc71a7f018ea0f
BLAKE2b-256 7d5fff9e20a925a9f64011c8a651edcab05e2df31f97890f0a665183f94d7acd

See more details on using hashes here.

File details

Details for the file universal_startfile-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for universal_startfile-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 198938933417b44dfc74fb9fd944824bc281fd47544e06842fee5a025fcaecf8
MD5 2488ba79eb7f47b442700a7bcd3cdba0
BLAKE2b-256 eaf6559a4ab797c406db7774f77fb5ff6d2588772492bfb7a257b818a70d7777

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page