# Openvidu with python

**URL:** <https://openvidu.discourse.group/t/openvidu-with-python/492>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [April 18, 2020, 6:28pm UTC](https://openvidu.discourse.group/t/openvidu-with-python/492 "2020-04-18T18:28:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hayk\_Aleksanyan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hayk_aleksanyan/32/253_2.png) [@Hayk\_Aleksanyan](https://openvidu.discourse.group/u/Hayk_Aleksanyan)\
**Post date:** [April 18, 2020, 6:28pm UTC](https://openvidu.discourse.group/t/openvidu-with-python/492/1 "2020-04-18T18:28:49Z")

</div>

Im trying to integrate openvidu with flask application, but there is no good examples or tutorials,i could find only this documentation ` [https://pyopenvidu.readthedocs.io/en/latest/examples.html](https://pyopenvidu.readthedocs.io/en/latest/examples.html)  
I would be really glad if you could help me.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [April 18, 2020, 8:35pm UTC](https://openvidu.discourse.group/t/openvidu-with-python/492/2 "2020-04-18T20:35:41Z")

</div>

Hi,

OpenVidu does not have official clients for Python (that’s a third-party library). REST API is only covered for Java and Node. But of course this doesn’t mean you can’t use OpenVidu from a Python app. You just need to implement a REST client with Python and consume OpenVidu REST API.

In other words, Java and Node SDKs are just a simple wrapper around OpenVidu REST API. So you can consume OpenVidu REST API from any backend language or framework that you want.

---

<div class="post-metadata">

**Author:** ![Hayk\_Aleksanyan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hayk_aleksanyan/32/253_2.png) [@Hayk\_Aleksanyan](https://openvidu.discourse.group/u/Hayk_Aleksanyan)\
**Post date:** [April 19, 2020, 11:21am UTC](https://openvidu.discourse.group/t/openvidu-with-python/492/3 "2020-04-19T11:21:56Z")

</div>

Thanks for your attention.

So i could integrate PyOpenvidu package and now i can generate an openvidu token.

Actual problem is when it returns token ` "wss://localhost:4443/?sessionId..." its for localhost it works fine locally, but after i deploy it it doesnt work. Ive tried to replace "localhost:4443" manually with my domain but after that ive got SSL Handshake error. My Server is Ubuntu 18.04, and Ive deployed openvidu server with docker`  
“docker run -p 4443:4443 --rm -e openvidu.secret=MY\_SECRET openvidu/openvidu-server-kms:2.12.0”

What have I done wrong?

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [April 19, 2020, 2:11pm UTC](https://openvidu.discourse.group/t/openvidu-with-python/492/4 "2020-04-19T14:11:24Z")

</div>

I could imagine you’re deploying OpenVidu with a self-signed certificate. You need to accept this self-signed certificate of openvidu-server the first time try to join a video-call.

You can read [how to start with OpenVidu](https://docs.openvidu.io/en/2.12.0/tutorials/openvidu-hello-world/) for more info.

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [April 19, 2020, 2:42pm UTC](https://openvidu.discourse.group/t/openvidu-with-python/492/5 "2020-04-19T14:42:38Z")

</div>

On the other hand, take into account that openvidu/openvidu-server-kms:2.12.0 docker image is not designed for production, is designed for development.

To deploy OpenVidu for production visit this page: [https://docs.openvidu.io/en/2.12.0/deployment/deploying-ubuntu/](https://docs.openvidu.io/en/2.12.0/deployment/deploying-ubuntu/)

We are working in a dockerized production deployment that will be release in a few days.

---

<div class="post-metadata">

**Author:** ![Hayk\_Aleksanyan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/hayk_aleksanyan/32/253_2.png) [@Hayk\_Aleksanyan](https://openvidu.discourse.group/u/Hayk_Aleksanyan)\
**Post date:** [April 23, 2020, 12:22pm UTC](https://openvidu.discourse.group/t/openvidu-with-python/492/6 "2020-04-23T12:22:42Z")

</div>

Thank you very much you helped me a lot.  
Now ive downloaded openvidu jar from github repository and set publicUrl, now wss url is clear
