Skip to content

Bidirectional communication using Server Sent Events and HTTP requests in thonny.

License

Notifications You must be signed in to change notification settings

DDI-TU-Dresden/thonny-sse_http_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Sent Events and HTTP requests Plugin for the thonny IDE

Warning for Server Sent Events

The channels feature is not supported. If you want to send different events to different users, you should use the event type feature instead. Also, connections cannot be closed externally. The running thread has to be killed.

Installation

  • Install the python dependencies
pip install -r requirements.txt --user

Start the plugin with thonny

cd /path/to/thonny/
PYTHONPATH=/path/to/thonny-sse_http_client/ python -m thonny

Usage in thonny

To listen for Server Sent events click on the "Tools" section in the menu at the top of the program. And then select "Listen for SSE". You will be asked to input a URL. This server immeadiately echoes the message you send. For testing purposes you can use this project and use the following URL: "http://localhost:5000/sse" To send HTTP GET requests you can click on the "Tools" section in the menu again and select "Send HTTP GET request" to send a message. After that, you will be asked for the URL. You can see all the communication on stdout.

Licenses

This project is using third party projects and libraries.

Name Website License
thonny https://thonny.org MIT
sseclient https://github.com/btubbs/sseclient MIT
requests https://requests.readthedocs.io Apache 2.0

About

Bidirectional communication using Server Sent Events and HTTP requests in thonny.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages