# Use Wazo programmable application

**URL:** <https://wazo-platform.discourse.group/t/use-wazo-programmable-application/896>\
**Category:** Development: API/Events\
**Created:** [September 19, 2021, 10:45am UTC](https://wazo-platform.discourse.group/t/use-wazo-programmable-application/896 "2021-09-19T10:45:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramblin](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/ramblin/32/34_2.png) [@Ramblin](https://wazo-platform.discourse.group/u/Ramblin)\
**Post date:** [September 19, 2021, 10:45am UTC](https://wazo-platform.discourse.group/t/use-wazo-programmable-application/896/1 "2021-09-19T10:45:00Z")

</div>

How do I use the wazo python packages referenced in

> [@How to use Wazo programmable application](https://wazo-platform.discourse.group/t/how-to-use-wazo-programmable-application/834):
>
> Hello, People ask on Mattermost how to use programmable application with Wazo. So first, the concept for using application on Wazo is very simple. The goal for developpers is to receiving a call from a sip trunk, from a sip phone or webrtc phone and realize a program about what you want. Example IVR, routing etc … By default an application do nothing, except to receive a message to indicate when a call is entered in the application. So how to use it? First step you need to create your applica…

Specifically

- wazo\_websocketd\_client
- wazo\_auth\_client
- wazo\_calld\_client

on a remote server?

I am trying to learn node-red and other means to programmatically access wazo APIs  
and I want to do this from a remote server running node-red and Python

The remote server is Debian 10 with Python 3 installed and configured with pip and venv

For the Python code, in a script on the remote server  
I need to import the above modules but I get  
ModuleNotFoundError: No module named ‘wazo\_websocketd\_client’  
when I try to import them on the remote server (no surprise)

I also got the same error when I tried to use  
“from wazo\_websocketd\_client import Client as Websocket”  
on a test script on the wazo server so it is also possible I am just not calling it properly

I tried searching on [pypi.org](http://pypi.org) for wazo ([Search results · PyPI](https://pypi.org/search/?q=wazo)) and got nothing

I see a lot of packages on the Wazo server in  
/usr/lib/python3/dist-packages  
but of the 3 above, the only one package/directory present was wazo\_auth\_client

There are a number of other wazo packages there with similar or derivative names but I am not sure which ones or how many I need

I assume I have to export/import some packages from the wazo server, but am not sure which ones and how to do that.

Any help appreciated.

---

<div class="post-metadata">

**Author:** ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)\
**Post date:** [September 19, 2021, 9:37pm UTC](https://wazo-platform.discourse.group/t/use-wazo-programmable-application/896/2 "2021-09-19T21:37:54Z")

</div>

Ok so I need to document how to install the library on another server. You need to use pip for example to install the library.

---

<div class="post-metadata">

**Author:** ![Ramblin](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/ramblin/32/34_2.png) [@Ramblin](https://wazo-platform.discourse.group/u/Ramblin)\
**Post date:** [September 20, 2021, 12:42pm UTC](https://wazo-platform.discourse.group/t/use-wazo-programmable-application/896/3 "2021-09-20T12:42:01Z")

</div>

Looking forward to it @quintana

I have pip installed on my remote server and I have setup an environment in which I have run test scripts so all is working well there.

I tried running pip on the wazo server with  
python -m pip search wazo  
and  
python3 -m pip search wazo  
and both said “No module named pip”

I know the search function for pip is disabled, but I thought that would be the safest test. On my remote server, when I ran the same command(s), I did get the expected error message that the pip search function was disabled.

I di not want to install pip on the wazo server for fear it would mess up your configuration on wazo.

Also, on the wazo server, in /usr/lib/python3/dist-packages, I could not find 2 of the 3 packages shown in the sample code:

- wazo\_websocketd\_client
- wazo\_calld\_client  
I could only find
- wazo\_auth\_client

So I figured I was really doing something wrong and posted the above, not wanting to mess up wazo.

---

<div class="post-metadata">

**Author:** ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)\
**Post date:** [September 24, 2021, 11:27am UTC](https://wazo-platform.discourse.group/t/use-wazo-programmable-application/896/4 "2021-09-24T11:27:51Z")

</div>

To install on another debian or other system use pip3:

First you need the deps:

```auto
pip3 install https://github.com/wazo-platform/wazo-lib-rest-client/archive/master.zip
pip3 install https://github.com/wazo-platform/xivo-lib-python/archive/master.zip

```

And the libs:

```auto
pip3 install https://github.com/wazo-platform/wazo-auth-client/archive/master.zip
pip3 install https://github.com/wazo-platform/wazo-calld-client/archive/master.zip
pip3 install https://github.com/wazo-platform/wazo-websocketd-client/archive/master.zip

```

To find all of our library go here: [Wazo Platform · GitHub](https://github.com/orgs/wazo-platform/repositories?language=python&q=-client&type=)

Sylvain

---

<div class="post-metadata">

**Author:** ![Ramblin](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/ramblin/32/34_2.png) [@Ramblin](https://wazo-platform.discourse.group/u/Ramblin)\
**Post date:** [September 24, 2021, 3:28pm UTC](https://wazo-platform.discourse.group/t/use-wazo-programmable-application/896/5 "2021-09-24T15:28:47Z")

</div>

Thank you; working on node-red right now so will try this soon

Appreciate the help
