detect-app


Namedetect-app JSON
Version 0.0.4 PyPI version JSON
download
home_page
Summarydetect which app the python interpreter is running in
upload_time2023-10-11 18:18:55
maintainer
docs_urlNone
authorHannes
requires_python>=3.4
license
keywords dcc app application pipeline
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "detect-app",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "",
    "keywords": "dcc,app,application,pipeline",
    "author": "Hannes",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/83/55/b122d1aee966e986294a5993b4fa4572d6dca04e9fa3d6030852db811e8c/detect-app-0.0.4.tar.gz",
    "platform": null,
    "description": "# detect-app\n\n[![PyPI Downloads](https://img.shields.io/pypi/v/detect-app)](https://pypi.org/project/detect-app/)\n\nDetect which app the python interpreter is running in. Useful for cross app scripts\n\n## Supports:\n```\nAnsible\nAutoCAD\nBlender\nCalibre\nCinema 4D\nClarisse\nCryEngine\nFlame\nFreeCAD\nFusion\nGaffer\nGimp\nHoudini\nInkscape\nKatana\nKrita\nMari\nMarmoset\n3ds Max\nMaya\nModo\nMotionBuilder\nNatron\nNuke\nRV\nRevit\nShotgun\nScribus\nSoftimage\nSubstanceDesigner\nSubstancePainter\nUnreal\n```\n\n## Instructions\n\ne.g. prints `Blender` if run in Blender\n```python\nimport detect_app\napp_info = detect_app.detect_app()\nprint(app_info.id)  # e.g. substance_painter\n```\nright now app_info is very simple\n- **id**: `str` a unique identifier for the app, lowercase, underscores, not start with nr\n- **action**: `callable` that returns true if run in the app. usually just attempts to import an app specific module\n- **get_name()**: `method` to return a pretty name.\n\n## advanced\nenv variable\n`DETECT_APP_FORCE_ID` can be set to the app id, which will force a specific app to be detected. Useful for testing.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "detect which app the python interpreter is running in",
    "version": "0.0.4",
    "project_urls": {
        "Homepage": "https://github.com/hannesdelbeke/detect-app"
    },
    "split_keywords": [
        "dcc",
        "app",
        "application",
        "pipeline"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "25597c5024fc4eb4ab9595a422b8e26164b87cc9fbe637710f4f5d903123d85a",
                "md5": "6fa5eb4ae17d1db4bd38cc2b9dea31d5",
                "sha256": "a885c96fd8baa206604014dcaa7cb9c38eea9a421007b26c649cc1affb41c84b"
            },
            "downloads": -1,
            "filename": "detect_app-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6fa5eb4ae17d1db4bd38cc2b9dea31d5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4",
            "size": 7909,
            "upload_time": "2023-10-11T18:18:54",
            "upload_time_iso_8601": "2023-10-11T18:18:54.373400Z",
            "url": "https://files.pythonhosted.org/packages/25/59/7c5024fc4eb4ab9595a422b8e26164b87cc9fbe637710f4f5d903123d85a/detect_app-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8355b122d1aee966e986294a5993b4fa4572d6dca04e9fa3d6030852db811e8c",
                "md5": "d2947408473a9c1d0bbe16693e81f96a",
                "sha256": "098e44445a5f74e0451bb52ac4a1c143685ab4547c42d30decf7497914f87244"
            },
            "downloads": -1,
            "filename": "detect-app-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "d2947408473a9c1d0bbe16693e81f96a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4",
            "size": 9199,
            "upload_time": "2023-10-11T18:18:55",
            "upload_time_iso_8601": "2023-10-11T18:18:55.751189Z",
            "url": "https://files.pythonhosted.org/packages/83/55/b122d1aee966e986294a5993b4fa4572d6dca04e9fa3d6030852db811e8c/detect-app-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-11 18:18:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hannesdelbeke",
    "github_project": "detect-app",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "detect-app"
}
        
Elapsed time: 0.28633s