Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thonny-struktog-test-0.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thonny_struktog_test-0.0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file thonny-struktog-test-0.0.2.tar.gz.

File metadata

  • Download URL: thonny-struktog-test-0.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for thonny-struktog-test-0.0.2.tar.gz
Algorithm Hash digest
SHA256 879af0303e48cf94e9c348b0cb65fe982cbbbe13bbec281604f5e82a98db510c
MD5 8c467c84e007aeaaf8f973ffa57ac10d
BLAKE2b-256 07e8fd49733a1459fb4eb0af8f56b8ac3bb6481b096897376b7ee751aac9446d

See more details on using hashes here.

File details

Details for the file thonny_struktog_test-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: thonny_struktog_test-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for thonny_struktog_test-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbcdba893ff92e0d44aef74ba3bdcb12163c68ee3c8061b19b549aa9ec866ab5
MD5 9c53a808ad30db7ecc29a8d8a53ac277
BLAKE2b-256 07df225230fa974ddf6521b46f73e1a9b6e1db774fcc98de994f3b98d3f5c5f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page