Real Python: Pagination for a User-Friendly Django App
You can improve the user experience of your Django web app significantly by spreading your content over multiple pages instead of serving all of it at once. This practice is called pagination. To...
View ArticleAnarcat: What is going on with web servers
I stumbled upon this graph recently, which is w3techs.com graph of "Historical yearly trends in the usage statistics of web servers". It seems I hadn't looked at it in a long while because I was...
View ArticleKushal Das: Introducing Very Bad Web Application
I am planning to add a few chapters on securing services in my Linux Command Line book. But, to make it practical & hands on, I needed one real application which the readers can deploy and secure....
View ArticlePython GUIs: QPSQL driver not loaded: Using Postgres with Qt & Python on...
If you're trying to use Postgres with PyQt5/6 or PySide2/PySide6 you may have come across an issue with loading the driver. Qt (correctly) lists the driver as available in Qt, but when trying to load...
View ArticleMike Driscoll: Automating Excel with Python Video Overview
In this tutorial, I will show you an overview of using OpenPyXL and Python to read and write Excel documents. You will also learn how to:Style cellsChange fontsCreate named stylesUse pandas with...
View ArticleInspired Python: Tower Defense Game: Finite State Automata / State Machines
Tower Defense Game: Finite State Automata / State MachinesComplex codebases – and games are usually complex – tend to rely on a lot of state, usually captured in variables. Navigating from one screen...
View ArticleInspired Python: Tower Defense Game: Game Loop and Initializing PyGame
Tower Defense Game: Game Loop and Initializing PyGameHow do you instruct your computer game to draw things to the screen consistently and to a drum-beat that ensures there’s no awkward pauses or...
View ArticleInspired Python: Tower Defense Game: Getting Started
Tower Defense Game: Getting StartedPython package management is not the easiest thing to wrap your head around. Nevertheless, it’s important that we capture the requirements our game has, properly, and...
View ArticleInspired Python: Make your own Tower Defense Game with PyGame
Make your own Tower Defense Game with PyGameIn this course you’ll learn how to write a 2d Tower Defense Game from scratch, using PyGame. Writing a game is easy; but writing one that is maintainable and...
View ArticleReal Python: Using Python's datetime Module
Python has several different modules to deal with dates and times. This course concentrates on the primary one, datetime. Dates and times are messy things! Shifts due to daylight savings time and time...
View ArticleTrey Hunner: Overlooked facts about variables and objects in Python: it's all...
This article was originally published on Python Morsels.In Python, variables and data structures don’t contain objects. This fact is both commonly overlooked and tricky to internalize.You can happily...
View ArticleItsMyCode: SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode...
The SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape occurs if you are trying to access a file path with a regular string.In this...
View ArticlePyCoder’s Weekly: Issue #518 (March 29, 2022)
#518 – MARCH 29, 2022View in Browser »Python and the James Webb Space Telescope Python is used extensively in the data pipeline for the James Web Space Telescope. Michael Kennedy interviews Megan Sosey...
View ArticlePyPy: PyPy v7.3.9 security release
PyPy v7.3.9 security releaseThe PyPy team is proud to release version 7.3.9 of PyPy. This is a security release to match the recent CPython release and updates the portable pypy tarballs with bzip2...
View ArticleStack Abuse: Graphs in Python: Depth-First Search (DFS) Algorithm
IntroductionOriginating from mathematics, graphs are now widely used data structures in Computer Science. One of the first problems we encounter when constructing any algorithm regarding Graph...
View ArticlePeter Bengtsson: How to close a HTTP GET request in Python before the end
Does you server barf if your clients close the connection before it's fully downloaded? Well, there's an easy way to find out. You can use this Python...
View ArticleCodementor: Tutorial: Python Variables
Introduction Variables in any programming language are similar to the variables in mathematics. For instance, we write x = 5 in mathematics. This means that x is the name of a variable and it...
View ArticleReal Python: Python GUI Programming With Tkinter
Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library. Tkinter has several strengths. It’s cross-platform, so the same code works on...
View ArticleWingware: Wing Python IDE Version 8.3 - March 30, 2022
Wing 8.3 improves remote development by allowing it to work without an SSH agent or command line OpenSSH or PuTTY configuration. This release also supports forwarding of the SSH agent to the remote...
View ArticlePython Engineering at Microsoft: Python in Visual Studio Code – April 2022...
The April 2022 release of the Python Extension for Visual Studio Code is now available.In this release we’re introducing the following changes:Pylint extensionInterpreter display in the status bar...
View Article