decorator | thonny | |
---|---|---|
1 | 176 | |
813 | 2,897 | |
- | 1.8% | |
3.5 | 9.5 | |
2 months ago | 13 days ago | |
Python | Python | |
BSD 2-clause "Simplified" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
decorator
-
Python Malware Starting to Employ Anti-Debug Techniques
that doesn't make much sense and there are necessary uses for eval() /exec(), mostly for dynamic creation of code:
For example here's Python dataclasses in the standard library using exec() to create the `__init__` and other methods that go on your dataclass:
https://github.com/python/cpython/blob/main/Lib/dataclasses....
Here's Pydantic using it for a jupyter notebook check:
https://github.com/pydantic/pydantic/blob/594effa279668bd955...
here's Pytest using it to rewrite modules so that functions like assert etc. are instrumented by pytest:
https://github.com/pytest-dev/pytest/blob/eca93db05b6c5ec101...
Here's the decorator module using it (as is the only way to do this in Python) to create a signature matching decorator for an arbitrary function:
https://github.com/micheles/decorator/blob/ad013a2c1ad796996...
All of these libraries are completely secure as eval/exec are used with code fragments that are generated by the libraries, not based on untrusted input.
eval() /exec() are not running executable files, just Python code, the same way all the rest of the package is already doing.
thonny
-
FeedMyFurBabies – Send and Receive MQTT messages between AWS IoT Core and your micro-controller
Install Thonny and run it. Then go to Tools -> Options, to configure the ESP32C3 device in Thonny to match the settings shown in the screenshot below.
-
Raspberry Pico Badger: Hardware Features and OS
The recommended way to programm MicroPython on the Raspberry Pico is to use the Thonny IDE. Accessing the Badger with reveals the following file structure:
-
Abstract Classes in Python
Personally, I like to debug and step through code to see where I went wrong so I'm going to paste the code into my Thonny IDE. I like Thonny for small code challenges like this because it doesn't require setting up a whole project just to run and step through code.
-
Ask HN: Do you know any good coding platform for education?
Thonny is designed speciffically for that purpose https://thonny.org .
For beginners the main advantage is the easier install and maintainance, and the less intimidating/cluttered environment.
IMHO it makes some decent tradeoffs, and it is an onramp for students evolving to VSCode or PyCharm when they feel ready.
-
Macropad with KMK
I use the serial console with a tool like Thonny to debug KMK/CircuitPython code on my device. running something like import main; main.keyboard.go() usually prints a useful error message.
-
Help me Please
If you think you need an IDE then Thonny is a good one for beginners. It does more than a simple text editor, some of which you won't use initially, but it is more to learn on top of learning python.
-
Alguem sabe um editor de codigo leve para python?
Usa o thonny. É muito bom e leve.
-
What’s an free bare bones IDE for Python that works smoothly out of the box?
VSCode is good but I wouldn't describe it as "barebones". I recommend Thonny. It's a Python IDE specifically for beginners.
-
There's just TOO MUCH material!!!
All you really need to learn python is just an installed python interpreter, the command line and a text editor like Notepad, but that's a bit too minimal perhaps. There are things called IDEs (Integrated Development Environment) that bundle up tools such as an editor, build tools and a debugger into one package. I think that a full-blown IDE is overload for a beginner with too much to learn that isn't actually python. If you want to use an IDE try something like Thonny which is aimed at beginners. When you get some experience try other IDEs and Jupyter.
-
Now, NiceGUI has a build-in persistent user/session based storage.
Maybe a goofy question, and definitely unrelated to the post topic, but: I’m using Thonny to learn Python: can I use NiceGUI with Thonny?
What are some alternatives?
CPython - The Python programming language
Visual Studio Code - Visual Studio Code
pytest - The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
mu - A small, simple editor for beginner Python programmers. Written in Python and Qt5.
act - Run your GitHub Actions locally 🚀
Geany - A fast and lightweight IDE
Spyder - Official repository for Spyder - The Scientific Python Development Environment
arduino-pico - Raspberry Pi Pico Arduino core, for all RP2040 boards
Django - The Web framework for perfectionists with deadlines.
Atom - :atom: The hackable text editor
sublime_text - Issue tracker for Sublime Text
pythonds - Problem Solving with Algorithms and Data Structures using Python