# MAVSDK-Python API Refrance

**URL:** <https://discuss.px4.io/t/mavsdk-python-api-refrance/16817>\
**Category:** MAVSDK\
**Created:** [May 20, 2020, 4:14am UTC](https://discuss.px4.io/t/mavsdk-python-api-refrance/16817 "2020-05-20T04:14:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammedsgf](https://discuss.px4.io/user_avatar/discuss.px4.io/mohammedsgf/32/6431_2.png) [@mohammedsgf](https://discuss.px4.io/u/mohammedsgf)\
**Post date:** [May 20, 2020, 4:14am UTC](https://discuss.px4.io/t/mavsdk-python-api-refrance/16817/1 "2020-05-20T04:14:57Z")

</div>

Where can I find MAVSDK API reference in python?

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [May 20, 2020, 6:11am UTC](https://discuss.px4.io/t/mavsdk-python-api-refrance/16817/2 "2020-05-20T06:11:00Z")

</div>

Good question. For now, you can only look at the source files and use the Python REPL and use `help()` on the classes.

We are planning to publish API docs soon.

---

<div class="post-metadata">

**Author:** ![projectdrone2](https://discuss.px4.io/user_avatar/discuss.px4.io/projectdrone2/32/6044_2.png) [@projectdrone2](https://discuss.px4.io/u/projectdrone2)\
**Post date:** [May 24, 2020, 4:43pm UTC](https://discuss.px4.io/t/mavsdk-python-api-refrance/16817/3 "2020-05-24T16:43:41Z")

</div>

Indeed good question @mohammedsgf. I was searching all functions in core like “connection\_state” (seen in example .py “async for state in drone.core.connection\_state():”) but could not find it.  
Ultimately I was trying to write python script where code would wait until the safety switch is pressed.  
Something like “async for state in drone.core.safetyswitch\_state():  
if state.is\_pressed:” etc

If anyone has a suggestion, please let me know. Thanks!
