Struktog webdriver client plugin for thonny
Project description
Webdriver Plugin for the thonny IDE
Usage with struktog
All the following elements can be found in the "tools" menu of thonny. "Open website" opens the struktog website in the browser and shows the Python source code. "Start observing element by id" will observe the changes in the python code and send it directly to your thonny code view. "Stop observing element by id" will stop looking for changes and updating the code view. "Transform code view to JSON" will transform the python code view source code to a JSON representation which can be loaded by struktog. An example can be found here.
Warning
The browser Chromium is not supported. Advanced security features can only be set on Firefox.
Installation
-
Install a browser and webdriver which is supported by Selenium. You can get a list of supported software here.
-
Install the python dependencies
pip install -r requirements.txt --user
Start the plugin with thonny
cd /path/to/thonny/
PYTHONPATH=/path/to/thonny-webdriver/ python -m thonny
Usage in thonny
Click on the "Tools" section in the menu at the top of the program. And then select "Open Website". You will be asked to input a website. A new browser window will open with the desired website. After that, you can click on the "Tools" section in the menu again and select "Start observing element by id". You will be asked to input a HTML element id which will be observed in the background. To stop observing an elment you can select the "Stop observing element by id" option and provide the HTML element id.
Licenses
This project is using third party projects and libraries.
Name | Website | License |
---|---|---|
thonny | https://thonny.org | MIT |
selenium | https://github.com/SeleniumHQ/selenium/ | Apache 2.0 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for thonny-struktog-test-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 879af0303e48cf94e9c348b0cb65fe982cbbbe13bbec281604f5e82a98db510c |
|
MD5 | 8c467c84e007aeaaf8f973ffa57ac10d |
|
BLAKE2b-256 | 07e8fd49733a1459fb4eb0af8f56b8ac3bb6481b096897376b7ee751aac9446d |
Hashes for thonny_struktog_test-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbcdba893ff92e0d44aef74ba3bdcb12163c68ee3c8061b19b549aa9ec866ab5 |
|
MD5 | 9c53a808ad30db7ecc29a8d8a53ac277 |
|
BLAKE2b-256 | 07df225230fa974ddf6521b46f73e1a9b6e1db774fcc98de994f3b98d3f5c5f4 |