universal-startfile-0.4
توضیحات
A cross-platform version of 'os.startfile' from the standard library.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | universal-startfile-0.4 |
| نام | universal-startfile |
| نسخه کتابخانه | 0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jace Browning |
| ایمیل نویسنده | jacebrowning@gmail.com |
| آدرس صفحه اصلی | https://pypi.org/project/universal-startfile |
| آدرس اینترنتی | https://pypi.org/project/universal-startfile/ |
| مجوز | MIT |
# Overview
This is a cross-platform version of the [os.startfile](https://docs.python.org/3/library/os.html#os.startfile) function in the Python standard library.
It emulates the following actions in an operating system's UI:
- double-clicking a file
- single-clicking a URL
which will open the default program associated with that type.
[](https://github.com/jacebrowning/universal-startfile/actions)
[](https://ci.appveyor.com/project/jacebrowning/universal-startfile)
[](https://codecov.io/gh/jacebrowning/universal-startfile)
[](https://pypi.org/project/universal-startfile)
[](https://pypi.org/project/universal-startfile)
[](https://pypistats.org/packages/universal-startfile)
## Setup
### Requirements
* Python 3.9+
### Installation
Install it directly into an activated virtual environment:
```text
$ pip install universal-startfile
```
or add it to your [Poetry](https://poetry.eustace.io/) project:
```text
$ poetry add universal-startfile
```
## Usage
After installation, import the `startfile` function:
```python
from startfile import startfile
startfile("~/Downloads/example.png")
startfile("http://example.com")
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4.0,>=3.9 | Python |
نحوه نصب
نصب پکیج whl universal-startfile-0.4:
pip install universal-startfile-0.4.whl
نصب پکیج tar.gz universal-startfile-0.4:
pip install universal-startfile-0.4.tar.gz