Last week, two versions of litellm package (3.4M downloads/day) contains malicious code due to previous compromise of maintainer's PyPI credentials.
This seems as a cool trick to be less vulnerable to such attacks (found on LinkedIn / Hacker news) π
Still digesting #EuroPython2024, but #DjangoConEU 2024 videos just appeared on YouTube!
youtube.com/playlist?list=PLβ¦
My favorites:
- AnΕΎe's "Django, SQLite, and Production" youtube.com/watch?v=GTDYwEXvβ¦
- @scriptogre's "Functional Chatbots" tutorial (not on YT) github.com/scriptogre/functiβ¦
Struggling to remember which classes correspond to which methods? π This is a handy summary table:
docs.python.org/3/library/coβ¦
Did you know that a simple import can modify the Python interpreter? Import a custom module and suddenly, 8 becomes 9, and 9 becomes 8.
kenschutte.com/python-swap-iβ¦
Wikipedia module gives you an access to any Wikipedia page:
pypi.org/project/wikipedia/
Demo: gist.github.com/simecek/56f3β¦
Python 3.12 released today:
* Type parameter syntax, the type statement and type aliases π
* Syntactic formalization of f-strings π
* A per-interpreter GIL π
* Improved Did you mean β¦ suggestions π‘
* Performance improvements in the asyncio package π
docs.python.org/3.12/whatsneβ¦
BTW both of us (@karlafej & @simecek) are here at #EuroPython2023. If you run into us, feel free to say hello and what would you like to read as #pythontip. Greetings from Prague! π¨πΏ
List comprehension exercise! Guess what will be the value in 'results' after running the code below ππ
Try it on Colab gist.github.com/simecek/4c94β¦
Or watch it on #EuroPython2023 Day1 β‘ talk
youtube.com/live/HHvm_TYhG14β¦
#EuroPython season! ππ» You can watch most of the talks online, ep2023.europython.eu/live/foβ¦ (note you can move the video back in time)
(currently, @_inesmontani is closing Day1 with her fascinating keynote "Large Language Models: From Prototype to Production") β¨π€
#EuroPython2023
survey = simple library for creating beautiful interactive prompts
github.com/Exahilosys/survey
Something I was not aware of - (Ana)conda is not free for commercial use!
You must either purchase a commercial license (~$150/year) or use alternative solutions like (mini)conda or mamba - see the comparison π
PyAutoGUI helps you to to programmatically control the mouse & keyboard.
github.com/asweigart/pyautogβ¦
Save a screenshot with three lines of code: