Issue #482

Building Web Apps With FastAPI, How Python Imports Work, 1st Week of CPython Developer-In-Residence, and More

July 20, 2021

Building Web Apps With FastAPI, How Python Imports Work, 1st Week of CPython Developer-In-Residence, and More
#482 – JULY 20, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Using FastAPI to Build Python Web APIs
In this guide, written by FastAPI creator Sebastián Ramírez, you’ll learn the main concepts of FastAPI and how to use it to quickly create web APIs that implement best practices by default. By the end of it, you will be able to start creating production-ready web APIs.

Behind the Scenes: How the Python Import System Works
Importing a Python module is probably one of the most used language features. But Python’s import system remains a mystery to many Python developers, even folks with years of experience. This in-depth article explores how the import system works from the top down. You’ll learn everything from the difference is between absolute and relative imports to how Python searches for modules and packages and resolves naming conflicts.

Kickstart Your Career with a Data Science & Analytics Bootcamp
Join a Metis Online Flex Bootcamp and work on your own schedule with on-demand lectures, while still getting dedicated 1:1 instructor support. You’ll also get focused career support until you’re hired! Explore your options and start your journey today →

CPython Developer in Residence Week One Report
After years of fundraising efforts, the Python Software Foundation finally hired their first CPython Developer-In-Residence. Łukasz Langa reports on what he accomplished during his first week on the job, how he’s finding a balance between the various tasks required of him, and what his plans are for next week. He’s included a full detailed log of everything accomplished with links to GitHub issues and pull requests.

What’s New In Python 3.11
Python 3.10 is still in beta, but work on Python 3.11 has already begun. Big changes include some major improvements to tracebacks as well as a new cube root function in the math module.

Coverage 6.0 Beta 1 Released


NumPyic Way to Sort an ndarray Clockwise
There might not be too many applications for this, but the accepted solution to this Stack Overflow question is pretty slick and features a NumPy array method that you might have glossed over: .rot90().

Python Jobs

Python Developer (Remote)

Software Developer (Remote)

Backend Software Engineer (Washington, D.C., USA)

Senior Cloud Platform Engineer (Berlin, Germany)

Software Engineer (Remote)

Backend Software Engineer (Remote)

Python Web Developer (Remote)

Senior Software Engineer (Remote)

More Python Jobs >>>

Articles & Tutorials

Speech Recognition With Python
In this course, you’ll cover the fundamentals of speech recognition with Python. You’ll learn which speech recognition library gives the best results and build a full-featured “Guess The Word” game with it.

Maps With Django: GeoDjango, PostGIS, and Leaflet
This quickstart guide shows you how to create a web map using Django’s GeoDjango module. Data for the map is stored in a PostgreSQL database using the PostGIS extension, and Leaflet, a lightweight JavaScript library for interactive maps, is used on the front-end. You’ll not only learn how to set up the Django application and display the map but also add markers to the map and automatically center the map on the application user’s location.

Rev APIs Solve All of Your Speech-to-Text Needs is the most sophisticated automatic speech recognition in the world. Our speech-to-text APIs are more accurate, easier to use, and have less bias than competitors like Google, Amazon, and Microsoft. Try free for five hours right now →

Planning a Faster Future at the Python Language Summit
Do you wonder what the future may hold for the Python language? Are there speed improvements coming soon? What if you could be in the room while the core developers discuss Python’s future? This week on the podcast, we have Joanna Jablonski, who was invited to the Python Language Summit 2021 as a journalist to summarize and document the event.

Understand Django: Making Sense Of Settings
All Django apps need to be configured in order to run properly. This article walks you through how the Django settings file works and how it is organized. You’ll learn about environment variables and how to use them in your settings. You’ll also see some patterns for dealing with settings in different environments, such as development, testing, and production, as well as some tools for monitoring and managing Django settings.
MATT LAYMAN • Shared by Matt Layman

Get Feedback Faster with YourBase Test Acceleration
YourBase Test Acceleration can reduce testing and compute cost time by up to 90%. You don’t have to replace your CI, your build system, or your version control. Getting started is as easy as a pip install, and you don’t have to share any data.

Python Community Interview With Dustin Ingram
Dustin Ingram is a developer advocate at Google, a director of the PSF, and a maintainer of PyPI. In this interview, Dustin talks about how Google’s use of Python might differ from your own, maintaining PyPI, his love of PyCons and cooking, and more.

Serverless Django APIs With AWS Lambda and Zappa
Hosting serverless apps on AWS can be a lot of work if you set everything up manually. The Zappa project makes configuring and deploying a serverless app on AWS Lambda a cinch! This tutorial walks you through creating a Django REST API and deploying it to AWS Lambda with Zappa step-by-step. You’ll even learn how to set up authentication using Auth0!

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 →

manim: A Community-Maintained Python Framework for Creating Mathematical Animations

auto-all: Automatically Manage the __all__ Variable in Python Modules

pdfme: Make PDFs Easily

📆🐍 Upcoming Python Events

⋅ Real Python Office Hours (Virtual) July 21, 2021

⋅ EuroPython 2021 (Virtual) July 26 – August 1, 2021

⋅ PyCon India 2021 (Virtual) September 17 – 20, 2021
Happy Pythoning!
Copyright © 2021 PyCoder’s Weekly, All rights reserved.