× Want to read this newsletter every week?! × 👋  Join FAUN
 
Python Weekly Newsletter, Pydo. Curated Python news, tutorials, tools and more!
🌐 View in your browser.   |  ✍️ Publish on FAUN   |  🦄 Become a sponsor
 
Best news, tutorials, libraries and more from Pythonistas.
PyDo
 
 
 
 
🔔 Announcement

We're thrilled to announce Humans Behind Code!

Humans Behind Code (HBC) is a project by FAUN, where developers meet other developers and learn about the people behind the tools, libraries, frameworks, and other projects they use to build their applications.

We interview developers and ask them about their projects, their motivations, their struggles, and their successes. It's about sharing knowledge and helping each other grow.

👉 If you're a Developer or a maintainer of a widely adopted Open Source project and you think it's worth talking about it and your experiences in building it, join Humans Behind Code!

Best,
Aymen from FAUN.

If you have any questions, just hit the reply button!
 
 
⭐ Patrons
 
faun.dev faun.dev
 
Advertise with FAUN
 
 
Sponsor FAUN and reach developers where they are, not where you want them to be.

Download our mediakit.
 
 

👉 Spread the word and help developers find you by promoting your projects on FAUN. Get in touch for more information.

 
🔗 Stories, Tutorials & Articles
 
medium.com medium.com
 
How to do Funnel Analysis with SQL and Python   ✅
 
 
Funnel analysis is a way for businesses to analyze the chain of events that customers traverse through on their way to completing a desired goal of the business.

For example, say we run an online store. For any user that visits our site, they can also view items, add items to their cart, and purchase items from their cart.

In this case, visits, items viewed, items added to the cart, and items purchased are all milestones within the chain of events leading up to a successful purchase.

As a business, our primary goal is to maximize the number of purchases per customer. Funnel analysis can help us understand what factors might be preventing customers from reaching this final step in the process.

See how to perform tracking user events, actions, and drop-offs using Python.
 
 
switowski.com switowski.com
 
How to Benchmark (Python) Code
 
 
There are plenty of ways to measure the speed of your code. Writing Faster Python series showcases some of them.
 
 
karimjedda.com karimjedda.com
 
Carefully exploring Rust as a Python developer
 
 
Trying out the Rust programming ecosystem as a 10+ years Python developer. How to do common programming tasks and how the tooling looks like.
 
 
bernsteinbear.com bernsteinbear.com
 
Inline caches in the Skybison Python runtime   ✅
 
 
Inline caching is a technique to make programs run faster. It stores information about what has been run before so it can be run faster the next time.

This post is about the inline caching implementation in Skybison, a relatively complete Python 3.8 runtime originally developed for use in Instagram.

It nicely showcases all of the fun and sharp edges of the Python object model and how you can solve hard problems.
 
 
medium.com medium.com
 
Write Chrome Extensions in Python   ✅
 
 
In short, you can now write Python code directly into your HTML code, and the Python code will run in your browser.

This opens up lots of possibilities for creating cool things in Python that can be used in your browser.
 
 
 
📺 Quick Hits
 
 
Python 3.9.x and 3.10.x through 3.10.8 on Linux allows local privilege escalation in a non-default configuration.
  • The Python multiprocessing library, when used with the forkserver start method on Linux, allows pickles to be deserialized from any user in the same machine local network namespace, which in many system configurations means any user on the same machine.
  • Pickles can execute arbitrary code. Thus, this allows for local user privilege escalation to the user that any forkserver process is running as.
  • Setting multiprocessing.util.abstract_sockets_supported to False is a workaround.
  • The forkserver start method for multiprocessing is not the default start method.
  • This issue is Linux-specific because only Linux supports abstract namespace sockets.
 
 
Python 3.12.0a2 is released with new features and bug fixes.
  • Modules from the standard library are now potentially suggested as part of the error messages displayed by the interpreter when a NameError is raised to the top level.
  • The new version improves the error suggestion for NameError exceptions for instances.
  • It adds Python support for the Linux perf profiler through the new environment variable PYTHONPERFSUPPORT, the new command-line option -X perf, as well as the new sys.activate_stack_trampoline(), sys.deactivate_stack_trampoline(), and sys.is_stack_trampoline_active() APIs.
  • It improves modules such as asyncio, array, pathlib, dis, os, shutil, sqlite3, sys and threading.
  • The team deprecated typing.Hashable and typing.Sized aliases for collections.abc.Hashable and collections.abc.Sized and made other depreciations.
  • Previously deprecated APIs and modules will be removed in 3.13.
 
 
Arduino announced that it officially supports MicroPython.
  • Arduino has announced that it is folding MicroPython, the microcontroller-focused Python port designed for resource-constrained devices, into its development ecosystem — partnering with MicroPython creator Damien George to bring the virtual machine to a range of official Arduino development boards.
  • Now C/C++ isn't the only game in town with Arduino partnering with Damien George for official MicroPython firmware on selected board models.
  • Arduino Lab for MicroPython is now available on labs.arduino.cc for 64-bit Windows, macOS, and Linux hardware on x86 processors.
 
 
⭐ Sponsors
 
nordvpn.sjv.io nordvpn.sjv.io
 
Best VPN Deal
 
 
NordVPN 68% Black Friday discount is here!

👉 Access anything online without restrictions
👉 Add extra layers of security to your digital life
👉 Get the best online protection tools along with your NordVPN service.
👉 Get 3 months FREE with the 2-year plan
 
 
👉 Spread the word and help developers find you by promoting your projects on FAUN. Get in touch for more information.
 
⭐ Supporters
 
faun.dev faun.dev
 
Post Developers Jobs for Free on FAUN
 
 
FAUN's Job Board offers an exceptional platform to connect with skilled developers, DevOps professionals, and software engineers who are eager to contribute to the success of your organization.

Post your job openings on FAUN's Job Board today and watch your talent pool grow.

Get started now .
 
 
internxt.com internxt.com
 
70% off on the 2TB Internxt Annual Plan
 
 
✅ Encrypted file storage and sharing
✅ Access your files from any device
✅ Get access to all our services

Discount available until December 5th.
 
 
👉 Spread the word and help developers find you by promoting your projects on FAUN. Get in touch for more information.
 
🎦 Videos, Talks & Presentations
 
www.youtube.com www.youtube.com
 
Top 10 Python One Liners You Must Know
 
 
 
 
 
⚙️ Tools, Apps & Software
 
github.com github.com
 
comet-ml/kangas
 
 
Explore multimedia datasets at scale
 
 
github.com github.com
 
paperswithcode/galai
 
 
GALACTICA is a general-purpose scientific language model.

It is trained on a large corpus of scientific text and data. It can perform scientific NLP tasks at a high level, as well as tasks such as citation prediction, mathematical reasoning, molecular property prediction and protein annotation.

A demo is available at galactica.org.
 
 
github.com github.com
 
1debit/alternat
 
 
High availability implementation of AWS NAT instances.
 
 
github.com github.com
 
AlexFlipnote/GiveMeBadge
 
 
Pretty simple Discord bot to get the active developer badge
 
 
github.com github.com
 
darrenburns/shira
 
 
Shira is a terminal-based application for exploring Python objects.
 
 

👉 Spread the word and help developers find and follow your Open Source project by promoting it on FAUN. Get in touch for more information.

 
😂 Meme of the week
 
 
 
 
❤️ Thanks for reading
 
 
👉 Never miss an issue
Join FAUN Developer Community and subscribe to our newsletter here.

👋 Keep in touch and follow us on social media:
- 💼LinkedIn
- 📝Medium
- 🐦Twitter
- 👥Facebook
- 📸Instagram

👌 Was this newsletter helpful?
We'd really appreciate it if you could share it with your friends! You can also donate to help us keep this newsletter going.

ℹ️ Have a question or feedback?
Feel free to reach out to us at community@faun.dev. We'd love to hear from you!

🤩 Want to sponsor our newsletter?
Reach out to us at sponsors@faun.dev and we'll get back to you as soon as possible.