Logo
Python Snacks
Logo
Articles
Advertise
Contact
Books
Sign Up

intermediate

Targets readers with some Python experience. These posts assume a working knowledge of core syntax and explore concepts in more depth, often covering best practices, idioms, and real-world use cases.


Using requirements.txt for your uv build

Using requirements.txt for your uv build

Don't have a pyproject.toml but you have a requirements.txt file? No problem, uv can handle that!

Nov 5, 2025

•

5 min read

Virtual Environments In Your Python Code using uv

Virtual Environments In Your Python Code using uv

Never create a virtual environment again using this really unique feature using the uv package

Oct 29, 2025

•

7 min read

Using Pre-commit Hooks for your Python Project

Using Pre-commit Hooks for your Python Project

Keep your code clean, consistent, and manageable with your team members.

Oct 15, 2025

•

6 min read

Shallow copies vs deep copies in Python

Shallow copies vs deep copies in Python

Here's how you go about copying data structures in your Python code.

Oct 1, 2025

•

6 min read

Automating YAML File Updates with Jinja Templates

Automating YAML File Updates with Jinja Templates

Use PyYAML + Jinja templating to simplify and speed up your configuration workflow

Aug 16, 2025

•

8 min read

A Beginner’s Guide to Using OpenAI API with Python

A Beginner’s Guide to Using OpenAI API with Python

Learn how to connect Python to OpenAI's API and build smart workflows in minutes.

Aug 9, 2025

•

8 min read

Understanding Python's Context Managers

Understanding Python's Context Managers

Python Context Managers Tutorial: Prevent Resource Leaks and Database Connection Errors

Aug 6, 2025

•

6 min read

An Overview of Companies using the FastAPI and Django Python Web Frameworks

An Overview of Companies using the FastAPI and Django Python Web Frameworks

See which major tech players are using Python's top web frameworks: Django and FastAPI

Jul 30, 2025

•

8 min read

An Introduction to t-strings in Python 3.14

An Introduction to t-strings in Python 3.14

New string formatter that brings security and structure to dynamic string composition.

Jul 19, 2025

•

7 min read

Generative vs Discriminative AI in Python

Generative vs Discriminative AI in Python

Learn when to use Generative and Discriminative AI with practical Python examples.

Jul 9, 2025

•

7 min read

Faster String Slicing in NumPy

Faster String Slicing in NumPy

A new vectorized approach to slicing string arrays in NumPy, shown to be up to 25x faster!

Jul 2, 2025

•

6 min read

Running Shell Commands in Python (the right way)

Running Shell Commands in Python (the right way)

Leverage the subprocess module, but know there's a difference between subprocess.run() and subprocess.Popen()

Jun 25, 2025

•

5 min read

Using Python's LRU Cache

Using Python's LRU Cache

Caching your program's output can increase significantly. Using Python's functools.lru_cache decorator makes creating caches easy.

Jun 18, 2025

•

6 min read

Using pre-commit hooks for your Python project

Using pre-commit hooks for your Python project

We all forget to format, lint, and make sure print statements are removed.

Jun 11, 2025

•

7 min read

4 Python Click package extensions you need right now

4 Python Click package extensions you need right now

If you've ever built a CLI application using Click, don't overlook these extensions.

Jan 8, 2025

•

7 min read

The Basics of Git for Python Code

The Basics of Git for Python Code

Keep your code under source control by leveraging the most popular version control tool out there: Git

Dec 4, 2024

•

11 min read

4 types of Python dunder (magic) methods you should know

4 types of Python dunder (magic) methods you should know

Dunder methods can change your python game significantly if you know how to leverage them correctly.

Nov 27, 2024

•

6 min read

The difference between __repr__ and __str__

The difference between __repr__ and __str__

Understanding Python’s String Representations for Developers and Users

Nov 20, 2024

•

4 min read

Part 3: Mastering Object Oriented Programming: 3 OOP Design Patterns

Part 3: Mastering Object Oriented Programming: 3 OOP Design Patterns

In this multi-part series, I'm explaining the basics of object oriented programming (OOP) in Python.

Oct 30, 2024

•

5 min read

Part 2: Mastering Object Oriented Programming: The 4 Principals of OOP

Part 2: Mastering Object Oriented Programming: The 4 Principals of OOP

In this multi-part series, I'm explaining the basics of object oriented programming (OOP) in Python.

Oct 23, 2024

•

7 min read

Part 1: Mastering Object Oriented Programming: A Real Example

Part 1: Mastering Object Oriented Programming: A Real Example

In this multi-part series, I'm explaining the basics of object oriented programming (OOP) in Python.

Oct 16, 2024

•

8 min read

A guide on using the National Weather Service API with Python

A guide on using the National Weather Service API with Python

Oct 9, 2024

•

5 min read

A Step-by-Step Framework to Clean Data using Python's Pandas

A Step-by-Step Framework to Clean Data using Python's Pandas

Learn data cleaning techniques and how to efficiently prepare your data using Python's Pandas library.

Sep 18, 2024

•

9 min read

Leveraging the Power of Python Generators for Real-Time Data Processing

Leveraging the Power of Python Generators for Real-Time Data Processing

Explore how to use Python generators to enhance efficiency and scalability in your data-heavy applications, with real-world examples and tips.

Sep 12, 2024

•

6 min read

Python's Threading Basics

Python's Threading Basics

What is threading? How can we use threading for our applications?

Aug 7, 2024

•

7 min read

Load more
background

Become a better software engineer today.

Newsletter

Login

Upgrade to Pro

Sample Issue

Advertise

Tools

Tutorials

Templates

Resources

Newsletter

Blog

Latest Posts

Experts

Creators

Most Popular

Resources

Support

Recommendations

Software Engineering Books

© 2025 Python Snacks.

Privacy policy

Terms of use

Powered by beehiiv