Search code examples
pythontelnetjasmin-sms

Telnet client control panel python


I am working on Jasmin SMS gateway and I want to use its CLI module using my python script. It serves this module as telnet. I am not sure ho to send and receive commands from telnet. I have tried telnetlib but I do not know how to use it properly. Jamsin SMS Gateway can be found here:

https://jasmin.readthedocs.io/en/latest/management/jcli/index.html#architecture


Solution

  • I found pexpect library that works great with telnet and ssh clients. I can perform all the tasks of Jamsin's CLI module using my scripts.

    There is also a web interface available written in Django and work perfectly with jasmin using pexpect. Its called JasminWebPanel.