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.
Metadata
Release files for detect-app 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| detect_app-0.0.5.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| detect_app-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.2 kB
Release files / detect_app-0.0.5.tar.gz
| Download URL | detect_app-0.0.5.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef8f01ab11da0bb7c61ab1bd68d48859645331ed3ee825b1a6513ce4219f2f32
|
|
BLAKE2b-256 checksum How to use checksums |
42f191af3d3c17234dd0b719116d9db3368237c79daf04734cfa40ac6036bdde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / detect_app-0.0.5-py3-none-any.whl
| Download URL | detect_app-0.0.5-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33069296f6e0da04c0033aef1497485517ef24e42c024e1b99671ad2ed9a31df
|
|
BLAKE2b-256 checksum How to use checksums |
6b047d4fb39d0f64acf19f08141a9274f2901d885b42f78fe86393630c8935fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|