Metadata-Version: 2.4
Name: designer-plugin-pystub
Version: 33.1.0
Summary: Python stub file for designer_plugin module
Author-email: Taegyun Ha <taegyun.ha@disguise.one>
License-Expression: MIT
Project-URL: Homepage, https://github.com/disguise-one/Designer_Plugin_d3_pystub
Project-URL: Issues, https://github.com/disguise-one/Designer_Plugin_d3_pystub/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Disguise Designer Plugin Pystub

Provides type hints and autocomplete support for all Designer objects available in the designer plugin system for [designer_plugin](https://github.com/disguise-one/python-plugin) module.

See [python-execution-api](https://developer.disguise.one/plugins/python-execution-api/) page for further details.

## Get started

Install designer-plugin-pystub:

```bash
pip install designer-plugin-pystub
```

Then use the stub file with designer_plugin:
```python
from designer_plugin.d3sdk import d3pythonscript
from designer_plugin.pystub.d3 import *

@d3pythonscript
def get_surface_uid(name: str) -> int:
    surface: Screen2 = resourceManager.load(
        Path(f'objects/screen2/{name}.apx'),
        Screen2
    )
    return surface.uid
```

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
