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 |
Metadata
Release files for thonny-struktog-test 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thonny-struktog-test-0.0.2.tar.gz | 7.5 kB | Without provenance | Details for thonny-struktog-test-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thonny_struktog_test-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for thonny_struktog_test-0.0.2-py3-none-any.whl |
Total release size: 16.1 kB
Release files / thonny-struktog-test-0.0.2.tar.gz
| Download URL | thonny-struktog-test-0.0.2.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
879af0303e48cf94e9c348b0cb65fe982cbbbe13bbec281604f5e82a98db510c
|
|
BLAKE2b-256 checksum How to use checksums |
07e8fd49733a1459fb4eb0af8f56b8ac3bb6481b096897376b7ee751aac9446d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Release files / thonny_struktog_test-0.0.2-py3-none-any.whl
| Download URL | thonny_struktog_test-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbcdba893ff92e0d44aef74ba3bdcb12163c68ee3c8061b19b549aa9ec866ab5
|
|
BLAKE2b-256 checksum How to use checksums |
07df225230fa974ddf6521b46f73e1a9b6e1db774fcc98de994f3b98d3f5c5f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Security for thonny-struktog-test 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.