Issue #529

PyScript, Debugging in Django, Password Handling, and More

June 14, 2022

PyScript, Debugging in Django, Password Handling, and More
#529 – JUNE 14, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
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

Python 3.10.5 Bug Release
CPYTHON DEV BLOG

Python Developers Survey 2021 Results
PYTHON SOFTWARE FOUNDATION

EuroSciPy August 29-September 2, Basel, Switzerland
EUROSCIPY.ORG • Shared by Darya Chyzhyk


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

MicroPython: Python for Microcontrollers
HACKER NEWS


Python Jobs


Senior Full-Stack Web Developer
MONETIZEMORE 📍 ANYWHERE

Backend Software Developer
CANOPY 📍 DRAPER, UT, USA

Gameful Learning Developer
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Python Technical Architect
BLENDERBOX 📍 USA

Software Engineer (Los Angeles or Dallas)
CAUSEWAY CAPITAL MANAGEMENT LLC 📍 LOS ANGELES, CA, USA

DevOps Engineer
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Academic Innovation Developer
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Software Development Lead
UNIVERSITY OF MICHIGAN 📍 ANN ARBOR, MI, USA

Senior Backend Engineer
DOIST 📍 ANYWHERE

Senior Storytelling Framework Engineer - Python
GOPRO 📍 FRANCE

Senior Software Engineer - Python Full Stack
BLENDERBOX 📍 USA

Principal Python Engineer (100% Remote)
NIRA 📍 SAN FRANCISCO, CA, USA

More Python Jobs >>>


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 PYTHON course

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


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

python-syntax-errors: Version Specific No-Ops
GITHUB.COM/JWILK

libgravatar: Python 3 Interface for Gravatar APIs
GITHUB.COM/PABLUK

arsenal: Inventory & Launcher for Penetration Testing
GITHUB.COM/ORANGE-CYBERDEFENSE

pikepdf: Read and Write PDF, Powered by QPDF
GITHUB.COM/PIKEPDF

django-pgpubsub: Distributed Tasks with Postgres NOTIFY
GITHUB.COM/OPUS10 • Shared by Paul Gilmartin

📆🐍 Upcoming Python Events


Software Craftsmanship
June 15, 2022

PiterPy Breakfast
June 15, 2022

Weekly Real Python Office Hours Q&A (Virtual)
June 15, 2022

PyData Bristol Meetup
June 16, 2022

PyLadies Dublin
June 16, 2022

Karlsruhe Python User Group (KaPy)
June 17, 2022

GeoPython 2022
June 20 to June 23, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.