Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hannesdelbeke/detect-app
Detect which app the python interpreter is running in.⚙️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
https://github.com/hannesdelbeke/detect-app
3dsmax app blender dcc fusion houdini inkscape krita marmoset maya motionbuilder nuke pipeline softimage substancedesigner substancepainter unreal
Last synced: 24 days ago
JSON representation
Detect which app the python interpreter is running in.⚙️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
- Host: GitHub
- URL: https://github.com/hannesdelbeke/detect-app
- Owner: hannesdelbeke
- License: apache-2.0
- Created: 2023-03-25T13:07:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-05T17:30:52.000Z (11 months ago)
- Last Synced: 2024-10-06T16:48:31.850Z (29 days ago)
- Topics: 3dsmax, app, blender, dcc, fusion, houdini, inkscape, krita, marmoset, maya, motionbuilder, nuke, pipeline, softimage, substancedesigner, substancepainter, unreal
- Language: Python
- Homepage: https://pypi.org/project/detect-app/
- Size: 38.1 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# detect-app
[![PyPI Downloads](https://img.shields.io/pypi/v/detect-app)](https://pypi.org/project/detect-app/)
Detect which app the python interpreter is running in. Useful for cross app scripts
## Supports:
```
Ansible
AutoCAD
Blender
Calibre
Cinema 4D
Clarisse
CryEngine
Flame
FreeCAD
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. prints `Blender` if run in Blender
```python
import detect_app
app_info = detect_app.detect_app()
print(app_info.id) # e.g. substance_painter
```
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.## advanced
env variable
`DETECT_APP_FORCE_ID` can be set to the app id, which will force a specific app to be detected. Useful for testing.