# Help on a project, Python script to start playlist

**URL:** <https://discourse.mopidy.com/t/help-on-a-project-python-script-to-start-playlist/2519>\
**Category:** Misc\
**Created:** [May 24, 2018, 2:16am UTC](https://discourse.mopidy.com/t/help-on-a-project-python-script-to-start-playlist/2519 "2018-05-24T02:16:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Linux4DaWin](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@Linux4DaWin](https://discourse.mopidy.com/u/Linux4DaWin)\
**Post date:** [May 24, 2018, 2:16am UTC](https://discourse.mopidy.com/t/help-on-a-project-python-script-to-start-playlist/2519/1 "2018-05-24T02:16:19Z")

</div>

Hi! I’m new to mopidy, and just started using it today. I was able to get config, a couple songs, and a playlist set up and I’m able to play them with no issue through an ios client. I am running mopidy on a headless raspberry pi, with a speaker in the headphone jack. now mopidy being python based, is it possible to create a python script that starts a playlist? how would this be done?

thanks in advance!

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [May 24, 2018, 8:53am UTC](https://discourse.mopidy.com/t/help-on-a-project-python-script-to-start-playlist/2519/2 "2018-05-24T08:53:07Z")

</div>

You can use the python mpd library to do this. I believe their documentation is pretty good.
