#529 – JUNE 14, 2022
View in Browser »
A First Look at PyScript: Python in the Web Browser
In this tutorial, you’ll learn about PyScript, a new framework that allows for running Python in the web browser with few or no code modifications and excellent performance. You’ll leverage browser APIs and JavaScript libraries to build rich, highly interactive web applications with Python.
REAL PYTHON
Understand Django: Debugging Tips And Techniques
Your Django app is up. You’ve got users. Your users are hitting bugs. How do you debug to fix the problems? This article dives deep into to how to find and squish the bugs in your Django code.
MATT LAYMAN• Shared by Matt Layman
Connect, Integrate, & Automate Your Data—From Python, or Any Other Application or Tool
CData makes it easier to unlock the value of data — simplifying connectivity between applications and data sources. Our SQL-based connectors streamline data access making it easy to access real-time data from on-premise and cloud databases, SaaS, APIs, NoSQL and more. Visit cdata.com to learn more →
CDATA SOFTWAREsponsor
Secure Password Handling in Python
Lots of applications require some form of authentication, password handling, or the use of secure credentials. What are the best practices in Python for dealing with this?
MARTIN HEINZ
Discussions
Raising Exceptions or Returning Error Objects in Python
Luke Plant’s article Raising exceptions or returning error objects in Python has folks weighing in.
HACKER NEWS
Python Jobs
Senior Full-Stack Web Developer (Anywhere)
Backend Software Developer (Draper, UT, USA)
Gameful Learning Developer (Ann Arbor, MI, USA)
Python Technical Architect (USA)
Software Engineer (Los Angeles or Dallas) (Los Angeles, CA, USA)
Causeway Capital Management LLC
DevOps Engineer (Ann Arbor, MI, USA)
Academic Innovation Developer (Ann Arbor, MI, USA)
Software Development Lead (Ann Arbor, MI, USA)
Senior Backend Engineer (Anywhere)
Senior Storytelling Framework Engineer - Python (France)
Senior Software Engineer - Python Full Stack (USA)
Principal Python Engineer (100% Remote) (San Francisco, CA, USA)
Articles & Tutorials
Build a Quiz Application With Python
In this step-by-step project, you’ll build a Python quiz application for the terminal. Your app will ask you multiple-choice questions that you can use to strengthen your own knowledge or challenge your friends to test theirs.
REAL PYTHON
Pandas Vectorization: Sometimes Slower with Bloated Memory
When you’re processing data with Pandas, vectorized operations can speed up your code. In some cases though, they can actually make it slower, or at least no faster and memory hungry. Learn when it is helpful and when it is harmful to use vectorization.
ITAMAR TURNER-TRAURING
Merge Faster with WorkerB for PRs Chrome Extension
The average pull request sits idle for two days! Add context to your PR & merge faster with WorkerB magic links. Get estimated review time, number of changes, & related issues in one click! Install it today →
LINEARBsponsor
Write and Test a Python Function: Interview Practice
In this interview practice session, you’ll tackle creating a function that will double every character within a string. This challenge is typical of what you might encounter in a Python job interview. You’ll explore how to add tests to your code.
REAL PYTHONcourse
Dates And Times And Types
Dates and times in code can be more complicated than they first appear. Consider how datetime
and date
interact and how incorrect use can result in a TypeError
even though they’re considered correct by type annotations.
GLYPH LEFKOWITZ
Understanding Sampling With and Without Replacement
Sampling can be done with and without replacement: when an item is sampled it may or may not be returned to the population for the next sample. Learn the differences and how it effects your statistical code.
MICHAEL GALARNY• Shared by Michael Galarnyk
Shipping to Production
“How you ship your code to production in a way that is fast and reliable, is a question more engineers and engineering leaders should educate themselves on.” Read on for a comparison between two extremes.
GERGELY OROSZ
Caching Connection Objects in Python
Three different mechanisms are common for having a single instance of a DB connection in your Python code: module level imports, the lru_cache
decorator, or through singletons. See examples of each.
REDOWAN DELOWAR
Reach 100,000+ Pythonistas Every Week
Sponsor PyCoder’s Weekly and reach 100,000+ passionate Python developers, data scientists & machine learning engineers each week. Learn more about sponsorship packages →
PYCODER'S WEEKLYsponsor
Random Python: Secrets and Random Values Made Easy
Needing a random value happens a lot when you’re coding. This article describes different ways of getting random information in Python and how to choose amongst them.
JOHN LOCKWOOD
Handling Concurrency Without Locks
Through the use of an example Django web application, this article illustrates a variety of concurrency issues and how to handle them without locks.
HAKI BENITA
Projects & Code
django-pgpubsub: Distributed Tasks with Postgres NOTIFY
GITHUB.COM/OPUS10• Shared by Paul Gilmartin
Events
Software Craftsmanship
June 15, 2022
MEETUP.COM
PiterPy Breakfast
June 15, 2022
TIMEPAD.RU
PyData Bristol Meetup
June 16, 2022
MEETUP.COM
PyLadies Dublin
June 16, 2022
PYLADIES.COM
Karlsruhe Python User Group (KaPy)
June 17, 2022
BL0RG.NET
GeoPython 2022
June 20 to June 23, 2022
GEOPYTHON.NET
Happy Pythoning!
This was PyCoder’s Weekly Issue #529.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]