This tutorial is for anyone who has written a fantastic application in Python but hasn’t yet written any tests. Testing in Python is a huge topic and can come with a lot of complexity, but it doesn’t need to be hard. You can get started creating simple tests for your application in a few easy […]
Category: Web Frameworks
Python web frameworks
Python Community Interview With Mike Grouchy
If you saw the last Python Community Interview with Mahdi Yusuf, then you have already met one half of the Pycoder’s Weekly team. This time, I’m joined by Mahdi’s partner in crime, Mike Grouchy. Mike tells us how Pycoder’s really began and what it means to be a “hoops junkie.” We’ll also learn more about […]
Building and Documenting Python REST APIs With Flask and Connexion – Part 2
In Part 1 of this series, you used Flask and Connexion to create a REST API providing CRUD operations to a simple in-memory structure called PEOPLE. That worked to demonstrate how the Connexion module helps you build a nice REST API along with interactive documentation. As some noted in the comments for Part 1, the […]
The Best Python Books
Python is an amazing programming language. It can be applied to almost any programming task, allows for rapid development and debugging, and brings the support of what is arguably the most welcoming user community. Getting started with Python is like learning any new skill: it’s important to find a resource you connect with to guide […]
Python Virtual Environments in Five Minutes
In Python, virtual environments are used to isolate projects from each other (if they require different versions of the same library, for example). They let you install and manage packages without administrative privileges, and without conflicting with the system package manager. They also allow to quickly create an environment somewhere else with the same dependencies. […]
Python Community Interview With Mariatta Wijaya
For this week’s community interview, I am joined by Mariatta Wijaya. Mariatta is a web developer at Zapier. She also spends much of her time volunteering in the Python community: she is a core developer and contributes to conferences and Meetups. If you ever have the pleasure of meeting her, then you can join her […]
The Ultimate Guide to Django Redirects
When you build a Python web application with the Django framework, you’ll at some point have to redirect the user from one URL to another. In this guide, you’ll learn everything you need to know about HTTP redirects and how to deal with them in Django. At the end of this tutorial, you’ll: Be able […]
Documenting Python Code: A Complete Guide
Welcome to your complete guide to documenting Python code. Whether you’re documenting a small script or a large project, whether you’re a beginner or seasoned Pythonista, this guide will cover everything you need to know. We’ve broken up this tutorial into four major sections: Why Documenting Your Code Is So Important: An introduction to documentation […]
Pipenv: promises a lot, delivers very little
Pipenv is a Python packaging tool that does one thing reasonably well — application dependency management. However, it is also plagued by issues, limitations and a break-neck development process. In the past, Pipenv’s promotional material was highly misleading as to its purpose and backers. In this post, I will explore the problems with Pipenv. Was […]
Generating Random Data in Python (Guide)
How random is random? This is a weird question to ask, but it is one of paramount importance in cases where information security is concerned. Whenever you’re generating random data, strings, or numbers in Python, it’s a good idea to have at least a rough idea of how that data was generated. Here, you’ll cover […]
What Can I Do With Python?
You’ve done it: you’ve finished a course or finally made it to the end of a book that teaches you the basics of programming with Python. You’ve mastered lists, dictionaries, classes, and maybe even some object oriented concepts. So… what next? Python is a very versatile programming language, with a plethora of uses in a […]
The Ultimate List of Python YouTube Channels
We couldn’t find a good, up-to-date list of Python developer or Python programming YouTube channels online. Learning Python on YouTube is a viable option these days, and we’re excited about what this new medium can do for programming education. There are some really good YouTube channels that focus on Python development out there, but we […]
Building and Documenting Python REST APIs With Flask and Connexion
If you’re writing a web application, then you’re probably thinking about making HTTP calls to your server to get data to populate the dynamic parts of your application. The goal of this article is to show you how to use Python 3, Flask, and Connexion to build useful REST APIs that can include input and […]
Python Application Layouts: A Reference
Python, though opinionated on syntax and style, is surprisingly flexible when it comes to structuring your applications. On the one hand, this flexibility is great: it allows different use cases to use structures that are necessary for those use cases. On the other hand, though, it can be very confusing to the new developer. The […]
Pipenv: A Guide to the New Python Packaging Tool
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip, virtualenv, and the good old requirements.txt. In addition to addressing some common issues, it consolidates and simplifies the development process to a single command line tool. This guide will go over what problems Pipenv solves and […]