Saravanan666/pypi-org huggingface dataset:
Package: thonny-black-formatter
Thonny black formater pluginThonny plugin for source formatting with black (Thonny >= 4.x)This plugin enables formatting with black tool inside Thonny python editor.History and rationaleOriginally there was this plugin available:https://pypi.org/project/thonny-black-format/From Thonny release 4.0.0 the plugin stopped working and has been found in an abandoned project state (dead github project home page link) but still installable from PyPI repository.This is an adptation built from the sources installes and modified in order to make it work for Thonny release 4.0.0 and - hopefully - subsequent.CreditsAll credits go to the author "Franccisco" of the original plugin.All information available to me related to the original plugin is in the following two links.Github repo:https://github.com/Franccisco/thonny-black-code-format[dead link]
Docs:https://pypi.org/project/thonny-black-format/InstallationCredits for this part of the readme go to the original author FrancciscoThis can be easily installed via Thonny.Go toTools -> Manage plug-ins..., typethonny-black-formatand click onFind package from PyPI.Install the plugin and restart Thonny.Alternatively, you can install via pip with ```pip install --user thonny-black-format````UsageCredits for this part of the readme go to the original author FrancciscoThere are two ways to run the plugin:Go toTools -> Format with BlackPressCtrl+Alt+cAll changes will be automatically saved.If you prefer, you can undo them.ContributingContributions are welcome! Feel free to sumbit an issue and/or a pull request.
Package: thonny-cImage
cImage  -  A simple image processing library for PythonInstallationcopy cImage.py to your site-packages directory.UsageThis image library is not going to give you fancy high performance operations on images.  It allows you to read in an image and manipulate its pixels.  Then you can save the new image to a file, or you can display the image in a window.  Thats really about it, but its really all you want to do if you are teaching an introductory computer science course.Image Types SupportedIf you have PIL installed on your system:jpeggiftiffpngetc.If you do not have PIL installed then you are stuck with GIF images only.If you are using Python 2.6/2.7 I recommend you install Pillow its a simple fork
of PIL that you can install with easy_install or pip.If you are using Python 3 You can get a working version of PIL
Here:https://pypi.python.org/pypi/Pillow/2.0.0Note that if you scroll down to the bottom you will find binary installations for Windows.  Linux and Mac users can follow the instructions on the page.Examplefrom cImage import *
myimagewindow = ImageWin("Image Processing",600,300)
oldimage = FileImage("lutherbell.jpg")
oldimage.setPosition(0,0)
oldimage.draw(myimagewindow)

width = oldimage.getWidth()
height = oldimage.getHeight()
newim = EmptyImage(width,height)

for row in range(height):
    for col in range(width):
            oldpixel = oldimage.getPixel(col,row)
            ave=(oldpixel.getRed()+oldpixel.getGreen()+oldpixel.getBlue())/3
            newim.setPixel(col,row,Pixel(ave,ave,ave))

newim.setPosition(width+1,0)
newim.draw(myimagewindow)

myimagewindow.exitOnClick()
Package: thonny-crosshair
Thonny-crosshair is a plug-in forThonny IDEto automatically test
Python code usingCrossHair.InstallationIn ThonnyThe plug-in can be easily installedviaThonny.
Go toToolsmenu and selectManageplug-ins...:TODO: screenshot
Search forthonny-crosshairon PyPI and click on the link to install it:With pipIn your virtual environment, invoke:pip install --user thonny-crosshairUsageTo check all the functions in the file withCrossHair, go toToolsmenu and selectCheck the current file with CrossHair:All changes to the file will be saved prior to executing the tests.
If you prefer, you can undo them.TODO: capture
The check will be executed in the Thonny shell:You can stop the check with the “Stop” sign:Sometimes it is practical to check only a single function (e.g., if it takes too long
to check the whole file).
In that case, move the caret to the body of the function that you would like to verify,
go toToolsmenu and selectCheck the function under the caret with CrossHair:TODO: capture
Additionally,CrossHaircan check your code while you type and immediately warn you
of coding mistakes.
To check the current file continuously, go toToolsmenu and selectCheck the current file with CrossHair continuously:ContributingFeature requests or bug reports are always very, very welcome!Please see quickly if the issue does not already exist in theissue sectionand,
if not, createa new issue.You can also contribute in code.
Please seecontributing.rst.VersioningWe follow a bit unusual semantic versioning schema:X is the oldest supported version ofCrossHair,Y is the minor version (new or modified features), andZ is the patch version (only bug fixes).
Package: thonny-dracula
# Dracula for [Thonny](https://github.com/thonny)> A dark theme for [Thonny](https://github.com/thonny).![Screenshot](./screenshot.png)## InstallAll instructions can be found at [draculatheme.com/thonny](https://draculatheme.com/thonny).## TeamThis theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/thonny/graphs/contributors).[![Daniel Spinola](https://avatars0.githubusercontent.com/u/51745663?v=3&s=70)](https://github.com/danspinola) |
— |
[Daniel Spinola](https://github.com/danspinola)|## License[MIT License](./LICENSE)
Package: thonny-edulint
thonny-edulintAThonnyplugin to add most ofEduLint's warnings.InstallingTo install from pip3 using a terminal (or Powershell for Windows users)pip3installthonny-edulint# Orpython3-mpipinstallthonny-edulintTo install directly from Thonny:Click "Tools" and then click "Manage Plug-ins..."Search for "thonny-edulint" in the input box.Click install.After installing you will need to restart Thonny.Known issuesDue to bug in Thonny 4.0.0 to 4.1.1 there are two steps required to installthonny-edulint.Thonny -> Tools -> Manage plug-ins... -> thonny-edulint -> InstallThonny -> Tools -> Manage packages... -> edulint -> InstallIf you forget the second step, the code linting will fail and give you a message reminding you that it's necessary.The bug should be fixed in Thonny 4.1.2, after which this workaround shouldn't be necessary. More info is inthis issueand the one referred from it.Screenshot demoLicense informationThe codebase of this plugin started as a copy ofthonny-flakewhich is licensed underMIT.
Package: thonny-error-explainer
thonny-error-explainerThis is a Thonny plug-in for the error-explainer project.See more at:https://github.com/K44rel/error-explainerTo install this plug-in in ThonnyGo to Tools -> Manage Plug-ins...Search for thonny-error-explainerClick installRestart ThonnyYou are done! error-explainer generated messages will be displayed in the Assistant window
Package: thonny-esp
Plug-in for Thonny IDE which adds ESP8266 and ESP32 MicroPython backends.More info:https://github.com/thonny/thonny-esphttps://github.com/thonny/thonny/wiki/MicroPythonhttps://thonny.orgNB! This plug-in is only relevant for Thonny up to 3.2.1.
Since 3.2.2 this functionality is included in the main package.
Package: thonny-ev3dev
The thonny-ev3dev package is a plug-in which adds EV3 support for Thonny.The thonny-ev3dev plugin makes it easier to program the EV3 programmable
LEGO brick using the Thonny Python IDE for beginners.Thonny-ev3dev allows you to run your EV3 program easilyon the EV3 oron the PC in a simulator (default on PC)on the PC remotely steering the EV3The thonny-ev3dev plugin comes with an ev3dev simulator.For more info about the thonny-ev3dev plugin see:https://github.com/ev3dev-python-tools/thonny-ev3dev/wikiFor more info about Thonny:http://thonny.org
Package: thonny-flake
thonny-flake8AThonnyplugin to add most offlake8's warnings (all exceptF401because Thonny already warns when imported modules are unused).InstallingTo install from pip3 using a terminal (or Powershell for Windows users)pip3installthonny-flake# Orpython3-mpipinstallthonny-flakeTo install directly from Thonny:Click "Tools" and then click "Manage Plug-ins..."Search for "thonny-flake8" in the input box.Click install.After installing you will need to restart Thonny.
Package: thonny-gitonic
thonny-gitonicthonnyplugin forgitonicopengitonicin thonny by pressing Control+Shift+g, or via tools menupressESCkey to minimize gitonic window.what's new ?CheckCHANGELOGfor latest ongoing, or upcoming news.limitationsCheckBACKLOGfor open development tasks and limitations.platformtested on python3, and linuxinstallationphyton3 -m pip install thonny-gitoniclicensethonny-gitonic is released under the followingLICENSE
Package: thonny-icontract-hypothesis
thonny-icontract-hypothesis is a plug-in forThonny IDEto automatically test
Python code usingicontract-hypothesis.InstallationIn ThonnyThe plug-in can be easily installedviaThonny.
Go toToolsmenu and selectManageplug-ins...:Search forthonny-icontract-hypothesison PyPI and click on the link to install it:With pipIn your virtual environment, invoke:pip install --user thonny-icontract-hypothesisUsageTo check all the functions in the file withicontract-hypothesis, go toToolsmenu and selectTest the current file withicontract-hypothesis:All changes to the file will be saved prior to executing the tests.
If you prefer, you can undo them.The tests will be executed in the Thonny shell:You can stop the tests with the “Stop” sign:Sometimes it is practical to test only a single function (e.g., if it takes too long
to test the whole file).
In that case, move the caret to the body of the function that you would like to test,
go toToolsmenu and selectTest the function under the caret withicontract-hypothesis:ContributingFeature requests or bug reports are always very, very welcome!Please see quickly if the issue does not already exist in theissue sectionand,
if not, createa new issue.You can also contribute in code.
Please seecontributing.rst.VersioningWe follow a bit unusual semantic versioning schema:X is the oldest supported version oficontract-hypothesis,Y is the minor version (new or modified features), andZ is the patch version (only bug fixes).
Package: thonny-microbit
This is a plug-in for Thonny which adds BBC micro:bit support (works with Thonny 3.0 and 3.1).Not required for Thonny 3.2 and later (same features are built-in).More info:https://bitbucket.org/KauriRaba/thonny-microbithttps://github.com/thonny/thonny/wiki/MicroPythonhttps://thonny.org
Package: thonny-monokai
Monakai forThonnyA dark theme forThonnyInstallFrom ThonnyGo toThonny -> Tools -> Manage plug-insSearch forthonny-monokaiClickinstallUsing pip$ pip install thonny-monokaiManual InstallationDownload using theGitHub .zip downloadand unzip them.Go toThonny -> Tools -> Manage plug-ins...ClickInstall from local fileFind and select the preferred compressed file underdist/folder.Activate ThemeAfter installing, close and open Thonny, so the theme is loadedGo toThonny → Tools → OptionsUnderTheme & Font, select the drop-down menuSyntax themeSelectMonokaiLicenseMIT License
Package: thonny-onedark
# One Dark theme for [Thonny IDE](https://thonny.org)> A dark theme for [Thonny IDE](https://thonny.org).![Screenshot](./screenshot.png)## Installation#### Install using ThonnyGo toThonny → Tools → Manage plug-insSearch forthonny-onedarkClickInstall#### Install using pip$ pip install thonny-onedark#### Install manuallyDownload using the [GitHub .zip download](https://github.com/ranelpadon/thonny-onedark/archive/refs/heads/main.zip) option and unzip them.Go toThonny → Tools → Manage plug-ins…ClickInstall from local fileFind and select the prefered compressed file under thedist/folder#### Activating themeAfter installing, close and open Thonny, so the theme is loadedGo toThonny → Tools → OptionsUnderTheme & Font, select the drop-down menuSyntax themeSelectOne Dark## License[MIT License](./LICENSE)
Package: thonny-pololu
This plugin makes thePololu 3pi+ 2040
Robotmore usable with Thonny.  It's
mostly a copy of the built-in Pico plugin, but with "remote" files and
directories disabled, since they are unnecessary for our version of
MicroPython and can be confusing.To install the plugin, open Thonny's "Tools" menu, click "Manage
plug-ins...", and search for "thonny-pololu".  You will need to
restart after installing.To build the project, seePackaging Python
Projects.
More information about maintaining plugins is availablehere.
Package: thonny-pydiderot-plugin
# pydiderot-thonny-plugin
Un plugin qui configure thonny pour le lycée Diderot à MarseillePour l’instant on est chez test.pypi:https://test.pypi.org/project/thonny-pydiderot-plugin/Pour installer:pip install –index-url https://test.pypi.org/simple/ –no-deps thonny-pydiderot-pluginMais bon pour l’instant ca fait rien.
Package: thonny-quecpython
NewsJune 2023: thonny-quecpython 0.1.1 released! (for those – and only those – who use Python >= 3.7).October 2023: thonny-quecpython 0.1.8 released!November 2023: thonny-quecpython 0.2.0 released!OverviewProvides a programing Kits of QuecPython for Thonny.It is pure Python and works on
Python 3.7+.Install most recent stable with “pip install thonny-quecpython”.Useful links:Project on PyPI:https://pypi.org/project/thonny-quecpython/The documentation for latest code is at:https://github.com/QuecPython/thonny-quecpython
Package: thonny-sealed
thonny-sealed is a plug-in forThonny IDEto restrict writing to certain blocks of text based on code comments.This is especially practical for instructional sessions such as classroom exercises.
The teacher prepares the exercises and demarcates the “sealed” blocks using special comments (# sealed: onand# sealed: offor, more visually appealing,# sealed: 🡻and# sealed: 🡹, respectively).Since we do not want the students to inadvertently introduce new sealed blocks during the exercises, the comment blocks are further sealed by using a hash of the content and their order.
To that end, the plug-in provides a command-line utilitythonny-seal.Once the content was properly sealed, the teacher distributes the exercises.
The students open them in Thonny withthonny-sealedplug-in installed.
The sealed blocks can be copied in the editor, but not modified anymore.InstallationIn ThonnyThe plug-in can be easily installedviaThonny.
Go toToolsmenu and selectManageplug-ins...:Search forthonny-sealedon PyPI and click on the link to install it:With pipIn your virtual environment, invoke:pip install --user thonny-sealedUsageThonny-sealed inspects the blocks of code in your files based on the special comments.
The user is prevented from editing the content within the sealed blocks.Mark the start of every block with a comment line# sealed: on. Analogously, mark the end of a sealed block with# sealed: off. Alternatively, you can use the visually more appealing comments# sealed: 🡻and# sealed: 🡹, respectively.Here is an example file:"""Provide some service."""# sealed: ondefsome_func()->None:"""Do something."""# sealed: offCall in the terminal (where plug-in has been installed) to “seal” the blocks with the hashes:thonny-seal --input path/to/the/file.py --writeYour file is now sealed and can be loaded in the plug-in.
The content of the file is:"""Provide some service."""# sealed: on 3a9ff394defsome_func()->None:"""Do something."""# sealed: off 3a9ff394Alternatively, you can write the output to the STDOUT if you do not want to overwrite the file by omitting the--writeargument:thonny-sealed --input path/to/the/file.pyContributingFeature requests or bug reports are always very, very welcome!Please see quickly if the issue does not already exist in theissue sectionand,
if not, createa new issue.You can also contribute in code.
Please seeCONTRIBUTING.rst.VersioningWe followSemantic Versioning.
The version X.Y.Z indicates:X is the major version (backward-incompatible),Y is the minor version (backward-compatible), andZ is the patch version (backward-compatible bug fix).
Package: thonny-shoebot
thonny-shoebotA Shoebot plug-in for ThonnyUse theThonny Python IDEas an editor forShoebotscripts.Thonny-shoebotis a plug-in that configures Thonny for use with Shoebot, a Python (3.8+) framework for creative coding vector graphics and animations using a set of simple Python commands.InstructionsIf you already have some version of Thonnythat includes Python 3.8+on your computer, you can skip straight to step 4.Download and install the Thonny IDE fromhttps://github.com/thonny/thonny/releases. Expanding theAssetswill reveal the downloads for Windows/macOS/Linux --For your convenience, here are direct links to the downloads for Thonny 4.0.0b3:thonny-4.0.0b3.exe🢠 for Windowsthonny-4.0.0b3.pkg🢠 for MacOSthonny-4.0.0b3-x86_64.tar.gz🢠 for LinuxThe thonny-shoebot plug-in will run fine with Thonny 4 (currently in beta) because it ships with Python 3.10. If you want to use a Thonny 3 release, use theThonny 3.3.7-altversion for your platform. The alt-variants are bundled with Python 3.9.5 (instead of 3.7.9).Start Thonny. If you're running it for the first time, just accept theStandardsettings.Once Thonny is open, selectTools > Manage plugins...Then search for and install thethonny-shoebotplug-in --You mustrestart Thonnyafter this step.When you've restarted Thonny, selectpy5 > Imported mode for py5--ClickProceedto download, extract, and set up JDK-17 (if you need to know: the plug-in installs JDK in the Thonny user-config directory). Thonny only needs to download JDK the first time you switch to imported mode.You'll be notified once this process completes --This step is optional.There are several Thonny settings that I recommend you apply for working with py5 (including a Processing 4 inspired theme, Kyanite). You can apply those settings in one simple step usingpy5 > Apply recommended py5 settingsWhen the py5Imported mode for py5option is checked, Thonny can run your py5 code --Test out animported modesketch by clicking the green play button (or using the F5 or Ctrl+R keyboard shortcuts). Here is some code:defsetup():size(300,200)rect_mode(CENTER)defdraw():rect(mouse_x,mouse_y,10,10)NOTE: This mode also runsstatic modesketches (when you don't need adraw()function for animation).Click the stop-sign (🛑) button in the Thonny toolbar to stop your sketch.Useful py5 resourcespy5 is a new version of Processing for Python 3.8+. It makes the Java Processing jars available to the CPython interpreter using JPype. It can do just about everything Processing can do, except with Python instead of Java code. Here are some useful py5 resources (alphabetically listed) --py5 cheatsheetpy5 discussions/forumpy5 documentationpy5 examplesProcessing forum (Python channel)Villares' sketch-a-day archiveCreditsThanksvillaresfor inspiring me to develop this plug-in,hx2Afor the awesomepy5 project, and theThonny folksfor their fantastic IDE. TheColor selectorincorporates Juliette Monsel's excellenttkColorPickermodule.Todo ListSeediscussions on GitHub repo. This plug-in is a work in progress ... please report issueshere.
Package: thonny-struktog-test
Webdriver Plugin for the thonny IDEUsage with struktogAll 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 foundhere.WarningThe browser Chromium is not supported. Advanced security features can only be set on Firefox.InstallationInstall a browser and webdriver which is supported by Selenium. You can get a list of supported softwarehere.Install the python dependenciespipinstall-rrequirements.txt--userStart the plugin with thonnycd/path/to/thonny/PYTHONPATH=/path/to/thonny-webdriver/python-mthonnyUsage in thonnyClick 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.LicensesThis project is using third party projects and libraries.NameWebsiteLicensethonnyhttps://thonny.orgMITseleniumhttps://github.com/SeleniumHQ/selenium/Apache 2.0
Package: thonny-tunisiaschools
thonny-tunisiaschoolsA Thonny plug-in which offers Tunisian computer science secondary teachers / students some help creating Python & PyQt Applications:loads QT UI file and :adds needed code to load that file to current documentcreates empty functions binded to buttons’ clicksadds on new menu (PyQt5) commands to insert call to usual functions ( text , setText , clear , show ) if widget is Label or LineEdit ( as in Tunisian Curriculum )changes save location to c:/bac2023 as needed for final examsdisables opening last open files (to reduce risks of students overwriting other students work)
Package: thop
THOP: PyTorch-OpCounterHow to installpip install thop(now continously intergrated onGithub actions)ORpip install --upgrade git+https://github.com/Lyken17/pytorch-OpCounter.gitHow to useBasic usagefromtorchvision.modelsimportresnet50fromthopimportprofilemodel=resnet50()input=torch.randn(1,3,224,224)macs,params=profile(model,inputs=(input,))Define the rule for 3rd party module.classYourModule(nn.Module):# your definitiondefcount_your_model(model,x,y):# your rule hereinput=torch.randn(1,3,224,224)macs,params=profile(model,inputs=(input,),custom_ops={YourModule:count_your_model})Improve the output readabilityCallthop.clever_formatto give a better format of the output.fromthopimportclever_formatmacs,params=clever_format([macs,params],"%.3f")Results of Recent ModelsThe implementation are adapted fromtorchvision. Following results can be obtained usingbenchmark/evaluate_famous_models.py.ModelParams(M)MACs(G)alexnet61.100.77vgg11132.867.74vgg11_bn132.877.77vgg13133.0511.44vgg13_bn133.0511.49vgg16138.3615.61vgg16_bn138.3715.66vgg19143.6719.77vgg19_bn143.6819.83resnet1811.691.82resnet3421.803.68resnet5025.564.14resnet10144.557.87resnet15260.1911.61wide_resnet101_2126.8922.84wide_resnet50_268.8811.46ModelParams(M)MACs(G)resnext50_32x4d25.034.29resnext101_32x8d88.7916.54densenet1217.982.90densenet16128.687.85densenet16914.153.44densenet20120.014.39squeezenet1_01.250.82squeezenet1_11.240.35mnasnet0_52.220.14mnasnet0_753.170.24mnasnet1_04.380.34mnasnet1_36.280.53mobilenet_v23.500.33shufflenet_v2_x0_51.370.05shufflenet_v2_x1_02.280.15shufflenet_v2_x1_53.500.31shufflenet_v2_x2_07.390.60inception_v327.165.75