Metadata-Version: 2.1
Name: detect-app
Version: 0.0.2
Summary: detect which app the python interpreter is running in
Author: Hannes
Project-URL: Homepage, https://github.com/hannesdelbeke/detect-app
Keywords: dcc,app,application,pipeline
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.4
Description-Content-Type: text/markdown
Requires-Dist: importlib-metadata ; python_version < "3.7"

# detect-app

[![PyPI Downloads](https://img.shields.io/pypi/v/detect-app?color=0)](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.
