# Python API to Start or Stop PIE

**URL:** <https://forums.unrealengine.com/t/python-api-to-start-or-stop-pie/480733>\
**Category:** Editor Scripting\
**Tags:** Python, pie, unreal-engine, stop, UE4, question\
**Created:** [March 23, 2021, 4:55am UTC](https://forums.unrealengine.com/t/python-api-to-start-or-stop-pie/480733 "2021-03-23T04:55:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KwanYong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KwanYong](https://forums.unrealengine.com/u/KwanYong)\
**Post date:** [March 23, 2021, 4:55am UTC](https://forums.unrealengine.com/t/python-api-to-start-or-stop-pie/480733/1 "2021-03-23T04:55:02Z")

</div>

Hi, I want to use Python API to start or stop pie in UE4.

I want to press stop and start(Alt+P) using python code.

Is there any module or document I can use?

I am using Python 3.9.2
