Sourcery Blog

Thoughts, musings, advice, and best practice tutorials on how to program in Python from the Sourcery team

Python Refactorings - Part 7

Six more examples of ways to refactor your Python code, and why they are improvements

Making lunch faster with Python concurrency

A lunchtime story to demonstrate threading, asyncio, multiprocessing & cloud functions

Python Refactorings - Part 6

Six more examples of ways to refactor your Python code, and why they are improvements

Python Refactorings - Part 5

Six more examples of ways to refactor your Python code, and why they are improvements

Sourcery now available in Sublime!

Instantly refactor your Python code

Introducing Sourcery Pro!

Don't miss out on these powerful new features - write better code faster today.

Sourcery now available in Vim!

Instantly refactor your Python code

Can you fit all of this code in your head?

Measuring how hard code is to understand with our new working memory metric

Python Refactorings - Part 4

Six more examples of ways to refactor your Python code, and why they are improvements

Python Refactorings - Part 3

Six more examples of ways to refactor your Python code, and why they are improvements

Python Refactorings - Part 2

Six more examples of ways to refactor your Python code, and why they are improvements

Python Refactorings - Part 1

Six examples of ways to refactor your Python code, and why they are improvements

How do you test code written by code?

Ensuring Sourcery improves code without changing its functionality

Sourcery Starbot ⭐ released!

Star our repo to refactor your most popular Python repo

Use Sourcery to review your code on GitHub!

Get an instant quality boost to your open source codebase

Python refactorings now available in VS Code with Sourcery!

Get instant Python refactorings as a VS Code extension

Getting the most out of Python collections

A guide to comprehensions, generators and useful functions and classes

GitHub Actions for perfect Python Continuous Integration

A simple GitHub action for formatting, linting, testing, and building a Python application

A Field Guide to Fixing Bugs

Best practices for tracking down and resolving software issues

A perfect way to Dockerize your Pipenv Python application

A simple Dockerfile for setting up a perfect Python application using Pipenv

Five Python Refactoring Tips to Improve Your Code

Easy ways to improve and simplify your code, with Python examples

Sourcery beta launched!

Sourcery is in beta - try our AI-powered refactoring in Pycharm now!

Sourcery now runs locally - plus beta launch next month!

Sourcery will now run locally on your machine, meaning that no code is sent to the cloud. We are also planning to launch into paid beta in October

How to set up a perfect Python project

Best practices for setting up a project to maintain the highest quality code

Refactoring the Gilded Rose kata

16 steps to transform and simplify the code

Introducing Sourcery

Refactor Python instantly using the power of AI

Start writing better code

Get started for free and find out what you can accomplish with the power of Sourcery in your IDE.