Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Python Weekly #373: Self-Driving Library For Python

PyDo Python Weekly Newsletter is part of FAUN Developer Community. We help developers learn and grow by keeping them up with what matters.

⭐ Patrons

We Help You Win the Race to Developers’ Hearts!

Acquire, engage, and retain developers for your company.

MarketToDev is a Developer Marketing & Relation Agency by FAUN. A singular blend of marketing, software engineering, and passion.

Our services include providing actionable insights to help grow your developer community and increase adoption. Plus, we offer a free consultation to discuss your needs and how we can help.

Don’t let your competition get ahead, get in touch with MarketToDev !

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

⭐ Sponsors

How ManageEngine Applications Manager Can Help Overcome Challenges In Kubernetes Monitoring

Applications Manager’s kubernetes monitoring tool helps administrators to adapt various kubernetes cluster strategies to account for the new infrastructure layers.

Read more about how ManageEngine Applications Manager works.

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

🔗 From the web

✅ Python for GCP: Building GCP Infrastructure with Python

The author discusses all the amazing things Python can do to make your life easier. Imagine never having to do those repetitive tasks manually again! The author describes the exciting application of Python as using scripts to create and manage resources in the Google Cloud Platform (GCP).

With Python, you can automate the creation and management of networks, subnetworks, compute instances, and storage buckets. It’s like having your own virtual assistant that takes care of all the heavy lifting for you.

Python provides access to a wide range of GCP APIs for fine-grained control over resources.

Extending web applications with WebAssembly and Python

Running Python programs in a WebAssembly (Wasm) runtime application. Asen Alexandrov talks about the collaboration between Wasm Labs and Suborbital. They joined forces to make bi-directional communication possible using the SE2 Plugin ABI.

So, imagine having the power of Python right inside a Wasm runtime application, and being able to exchange information seamlessly between the two. It opens up a whole new world of possibilities and can supercharge your web applications.

Writing professional Python logs

This post shares tips and best practices for making your Python logging top-notch using the awesome structlog library. It dives deep into common logging challenges and shows you how structlog can come to the rescue. It’s all about making your logs consistent, readable, and machine-friendly.

  • Using a key-value format for variables helps create uniform log messages and promotes consistent naming conventions.
  • Contextual data can be explicitly added by binding variables to loggers or implicitly added using context variables, which enriches log lines with useful metadata.
  • Choosing a structlog renderer allows for easy parsing of log lines into a machine-readable or prettified, human-friendly format based on the environment.

✅ Self-Driving Library For Python

Introducing an open source self-driving Python library called Donkey Car. It’s perfect for hobbyists looking to experiment with autonomous vehicles using machine-learning algorithms and computer vision.

You can build your own platform with just $250 in parts and potentially have more “full self-driving” capabilities than a Tesla.

How to fix “ValueError: I/O operation on closed file” in Python

Learn how to fix the common Python error “ValueError: I/O operation on closed file” with this quick guide. Whether it’s due to incorrect indentation or premature file closure, this article has got you covered.

✅ Nine ways to shoot yourself in the foot with PostgreSQL

This informative article discusses various tips and best practices for using PostgreSQL in a production environment. The focus is on avoiding common pitfalls and optimizing performance as the database scales.

  • Adjust the “work_mem” configuration parameter to optimize memory allocation for query operations as the database grows.
  • Be cautious when pushing application logic into PostgreSQL functions and procedures, as they consume resources and can impact query performance.
  • Use triggers judiciously and consider alternatives such as generated columns or materialized views for better optimization.
  • Be mindful of the usage of NOTIFY for event propagation, as it consumes resources. Consider using a FIFO table for event handling instead.
  • Consider using common table expressions (CTEs) over subqueries, as they can offer better performance in some cases.
  • Denormalize graph-like data models into materialized views or tables for improved read performance, considering the read-heavy nature of most applications.
  • Manually create indexes for foreign keys to optimize joins and cascading delete/update operations.
  • Be aware of the behavior of NULL values in comparisons and consider using IS NOT DISTINCT FROM for accurate results.

✅ Shiny — AI chat apps with Shiny for Python

Create your own AI chat app with just a few lines of code using Shiny for Python! This groundbreaking idea is perfect for tech enthusiasts who want to build interactive applications with AI. Plus, it’s easy to combine the power of Python, LLM, and even human involvement for more complex projects like recipe extraction.

  • Chat interfaces for Large Language Models (LLMs) have become popular
  • Shiny for Python allows easy creation of AI chat applications with few lines of code
  • Shiny’s reactive engine using Python asyncio library enables streaming update, providing a better user experience
  • Combining Python, LLM, and human input in an interactive web application using Shiny can convert unstructured data to structured data, such as recipes or user reviews
  • Shiny can also be used to build an app that lets users ask questions about a document or set of documents.

⭐ Supporters

Switch to NordPass Business, Get 1 Year for FREE

NordPass offers an easy-to-use password manager for businesses, allowing for encrypted storage of credentials in vaults that can be shared among teams.

✔️Organize your account credentials.
✔️Store payment and shipping information.
✔️Save your private notes.
✔️Add members with one click.
✔️Share access to accounts between teams.
✔️Unlock the Activity Log.
✔️Autofill: Enter your account credentials automatically.
✔️Breach Monitoring.
✔️Company-wide settings.
✔️Password Health.

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

📚 Book picks

⭐ The Staff Engineer’s Path: A Guide for Individual Contributors Navigating Growth and Change

This in-depth book shows you how to understand your role, manage your time, master strategic thinking, and set the standard for technical work. You’ll read about how to be a leader without direct authority, how to plan ahead to make the right technical decisions, and how to make everyone around you better, while still growing as an expert in your domain.

By exploring the three pillars of a staff engineer’s job, Tanya Reilly, a veteran of the staff engineer track, shows you how to:

  • Take a broad, strategic view when thinking about your work
  • Dive into practical tactics for making projects succeed
  • Determine what “good engineering” means in your organization

⚙️ Tools

JesseNaser/DuoBreak

Python emulation of Duo push notifications and HOTP codes.

larseggert/ietf-reviewtool

Download and review IETF documents, such as Internet-Drafts or RFCs.

Legrandin/pycryptodome

A self-contained cryptographic library for Python

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

🛍️ Swag Store

⭐ kubectl apply -f life.yaml

❤️ 20% exclusive discount for FAUNers on all products (+free shipping included) when you use the code “THANKSFAUN”.

😂 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 [email protected]. We’d love to hear from you!

🤩 Want to sponsor our newsletter?
Reach out to us at [email protected] and we’ll get back to you as soon as possible.


🐶 Python Weekly #373: Self-Driving Library For Python was originally published in FAUN Publication on Medium, where people are continuing the conversation by highlighting and responding to this story.

Share the post

Python Weekly #373: Self-Driving Library For Python

×

Subscribe to Top Digital Transformation Strategies For Business Development: How To Effectively Grow Your Business In The Digital Age

Get updates delivered right to your inbox!

Thank you for your subscription

×