Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skratchdot/open-python
Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
https://github.com/skratchdot/open-python
Last synced: about 2 months ago
JSON representation
Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use.
- Host: GitHub
- URL: https://github.com/skratchdot/open-python
- Owner: skratchdot
- License: mit
- Created: 2013-06-09T12:12:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-09T12:13:32.000Z (over 11 years ago)
- Last Synced: 2024-10-19T00:24:31.599Z (3 months ago)
- Language: Python
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# 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
## Usage ##
### open google.com in the user's default browser:
open.start("https://google.com/")
### you can specify the program to use:
open.start("https://google.com/", "firefox")
## License ##
Copyright (c) 2013 skratchdot
Licensed under the MIT license.