Skip to main content

detect-app

PyPI Downloads

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: 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.

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)

Source distribution for detect-app 0.0.5
File Size Uploaded
detect_app-0.0.5.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for detect-app 0.0.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page