detect which app the python interpreter is running in
Project description
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
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:
stra unique identifier for the app, lowercase, underscores, not start with nr - action:
callablethat returns true if run in the app. usually just attempts to import an app specific module - get_name():
methodto 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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file detect_app-0.0.5.tar.gz.
File metadata
- Download URL: detect_app-0.0.5.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8f01ab11da0bb7c61ab1bd68d48859645331ed3ee825b1a6513ce4219f2f32
|
|
| MD5 |
1eedbd9147cd83a538363936618f67c9
|
|
| BLAKE2b-256 |
42f191af3d3c17234dd0b719116d9db3368237c79daf04734cfa40ac6036bdde
|
File details
Details for the file detect_app-0.0.5-py3-none-any.whl.
File metadata
- Download URL: detect_app-0.0.5-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33069296f6e0da04c0033aef1497485517ef24e42c024e1b99671ad2ed9a31df
|
|
| MD5 |
786b1b1a725ba787883db320f9a48555
|
|
| BLAKE2b-256 |
6b047d4fb39d0f64acf19f08141a9274f2901d885b42f78fe86393630c8935fa
|