#531 – JUNE 28, 2022
View in Browser »
Build a Tic-Tac-Toe Game With Python and Tkinter
In this step-by-step project, you’ll learn how to create a tic-tac-toe game using Python and the Tkinter GUI framework. Tkinter is cross-platform and is available in the Python standard library. Creating a game in Python is a great and fun way to learn something new and exciting!
REAL PYTHON
Six Things I Do Every Time I Start a Django Project
When you start a new Django project you have some housekeeping tasks and some decisions to make. This article talks about some of the key things you might want to do when starting a new project.
BRENTON CLEELAND
Get Started: Infrastructure as Code With Python on AWS [Workshop]
In this on-demand workshop, you will learn the fundamentals of Infrastructure as Code through a series of guided exercises. You will be introduced to Pulumi, an infrastructure as code platform, where you can use Python to provision modern cloud infrastructure →
PULUMIsponsor
Should You Use AsyncIO for Your Next Web Application?
Python’s AsyncIO web ecosystem continues to mature, but should you build your next production application with one of these shiny new frameworks such as FastAPI, Starlette, or Quart?
STEVEN PATE• Shared by Steven Pate
Discussions
Python Jobs
Senior Python Software Engineer (San Francisco, CA, USA)
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)
Principal Python Engineer (100% Remote) (San Francisco, CA, USA)
Articles & Tutorials
How to Patch requests
to Have a Default Timeout
Python’s requests
provides the ability to timeout when fetching content, but it isn’t turned on by default. If you’ve got a large code base there is a chance you have a call that could hang forever. This article describes how to monkeypatch requests
to provide default timeout capabilities.
ADAM JOHNSON
Python mmap
: Doing File I/O With Memory Mapping
In this video course, you’ll learn how to use Python’s mmap
module to improve your code’s performance when you’re working with files. You’ll get a quick overview of the different types of memory before diving into how and why memory mapping with mmap
can make your file I/O operations faster.
REAL PYTHONcourse
Data Elixir: Data Science Newsletter
Data Elixir is an email newsletter that keeps you on top of the latest tools and trends in Data Science. Covers machine learning, data visualization, analytics, and strategy. Curated weekly with top picks from around the web →
DATA ELIXIRsponsor
The subprocess
Module: Wrapping Programs With Python
In this tutorial, you’ll learn how to leverage other apps and programs that aren’t Python, wrapping them or launching them from your Python scripts using the subprocess module. You’ll learn about processes all the way up to interacting with a process as it executes.
REAL PYTHON
Don’t Let Dicts Spoil Your Code
The dict
is the go-to data structure for Python programmers, but its loose relationship to the data can be problematic in large data streams. Learn more about why you might choose a different data structure and when.
ROMAN IMANKULOV
String translate
and maketrans
Methods
The str
methods translate
and maketrans
are lesser used, but helpful. You can use translate
to replace characters in a string using a translation map, and maketrans
helps you to build those maps.
RODRIGO GIRÃO SERRÃO
3 Things to Know Before Building With PyScript
PyScript is a browser-embedded python environment built on top of Pyodide. Although it is a powerful tool, there are some things you need to be careful with. Read on to find out more.
BRADEN RIGGS
How Can You Emulate Do-While Loops in Python?
In this tutorial, you’ll learn how to emulate do-while loops in Python. The most common technique to do this is to create an infinite while loop with a conditional statement that controls the loop and jumps out of it using a break statement.
REAL PYTHON
Find Your Next Tech Job Through Hired
Hired has 1000s of companies of all sizes who are actively hiring developers, data scientists, mobile engineers, and more. It’s really simple: create a profile with your skills for hiring managers to reach you directly. Sign up today!
HIREDsponsor
6 Usage Patterns for the ThreadPoolExecutor
in Python
The ThreadPoolExecutor
gives a lot of power an flexibility for concurrent code. This article describes six different patterns that can be used when coding with this context manager.
JASON BROWNLEE
Python Lazy Imports With Cinder
Instagram has implemented a lazy import mechanism to improve application loading times. This article describes why they built it and how it helps.
GERMÁN MÉNDEZ BRAVO
Projects & Code
editabletuple: Like namedtuple
but Editable
GITHUB.COM/MARK-SUMMERFIELD• Shared by Mark Summerfield
Events
SPb Python Drinkup
June 30, 2022
MEETUP.COM
PyDelhi User Group Meetup
July 2, 2022
MEETUP.COM
Melbourne Python Users Group, Australia
July 4, 2022
J.MP
STL Python
July 6, 2022
MEETUP.COM
Happy Pythoning!
This was PyCoder’s Weekly Issue #531.
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 ]