detect-app-0.0.2
توضیحات
detect which app the python interpreter is running in
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | detect-app-0.0.2 |
| نام | detect-app |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hannes |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/detect-app/ |
| مجوز | - |
# detect-app
[](https://pypi.org/project/detect-app/)
Detect which app the python interpreter is running in. Usefull for cross app scripts
Supports:
```
Ansible
AutoCAD
Blender
Calibre
Cinema 4D
Clarisse
Flame
Fusion
Gaffer
Gimp
Houdini
Inkscape
Katana
Krita
Mari
Marmoset
3ds Max
Maya
Modo
MotionBuilder
Natron
Nuke
RV
Revit
Shotgun
Scribus
Softimage
SubstanceDesigner
SubstancePainter
Unreal
```
## Instructions
e.g. if run in Blender, will print `Blender`
```python
import detect_app
app_info = detect_app.detect_app()
print(app_info.id)
```
right now app_info is very simple
- **id**: `str` a unique identifier for the app, lowercase, underscores, not start with nr
- **action**: `callable` that returns true if run in the app. usually just attempts to import an app specific module
- **get_name()**: `method` to return a pretty name.
نیازمندی
| مقدار | نام |
|---|---|
| - | importlib-metadata |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.4 | Python |
نحوه نصب
نصب پکیج whl detect-app-0.0.2:
pip install detect-app-0.0.2.whl
نصب پکیج tar.gz detect-app-0.0.2:
pip install detect-app-0.0.2.tar.gz