Skip to main content

Cross platform wrapper for opening a file/URL with system default application

Project description

open

Description

Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.

This is a proxy for the following commands:

    OSX: "open"
Windows: "start"

Linux/Other: "xdg-open"

This is a python port of the node.js module: https://github.com/pwnall/node-open

Import

import open_python

Usage

open google.com in the user's default browser:

open_python.start("https://google.com/")

you can specify the program to use:

open_python.start("https://google.com/", "firefox")	

use in command line

$ python -m open_python https://google.com/

License

Copyright (c) 2013 skratchdot
Licensed under the MIT license.

Contributors

skratchdot panda2134

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

open_python-1.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

open_python-1.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

open_python-1.1.1-py2-none-any.whl (3.6 kB view details)

Uploaded Python 2

File details

Details for the file open_python-1.1.1.tar.gz.

File metadata

  • Download URL: open_python-1.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for open_python-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ee62e8a2aecffb88d0aba48a0ccb93b99ab02c13379e71431e30664b9ec00caf
MD5 a509d67551f3890674604b27a076caf2
BLAKE2b-256 e89a71ff36908c3939b3433874ff0e36742360e361d3b35e87ebd3971f635a8c

See more details on using hashes here.

File details

Details for the file open_python-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: open_python-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for open_python-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc5ea1813f2f30a8b181d665e79b236785e1bd248572784cfa8737903d2bdf7
MD5 1f01fff52085bcfebf8c64c07fa53b3e
BLAKE2b-256 31a55c6a77c36a0e3992c532cf3fbeb0b92ae8b523b7a06f74cb41264c3d4014

See more details on using hashes here.

File details

Details for the file open_python-1.1.1-py2-none-any.whl.

File metadata

  • Download URL: open_python-1.1.1-py2-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for open_python-1.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 fb4a77c363375ac52c4cfcc865c569ffc09c2b5151546d77b52886b4be1a93a0
MD5 7c07d3c2a6ae7e95a637b4860a0c4604
BLAKE2b-256 1375a7efd362c49abc07ae2d476171da1c52e9c61953829073540c36504fd3fc

See more details on using hashes here.

Supported by

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