Hi, how can I control mopidy by my python code? I would be grateful if someone give me full example with simply commend like stop music, next song.
You will have to use the api. There are a couple ways. One is to send RPC cmds to the websocket. The other is to build a custom frontend.
The easiest way is using the python mpd library. Their documentation has examples.
Maybe also take a look at https://github.com/ismailof/mopidy-json-client. Not sure how active it is or how far it progressed.