Category: python

Posts in python

Python Best Practices to Follow in 2026

As the Python ecosystem continues to evolve, so do its best practices. This guide covers the modern standards for dependency management, code quality, and project structure that every Python developer should be following in 2026.

Read more

A Guide to Python's pyproject.toml

Discover the pyproject.toml file, the modern, unified standard for configuring Python projects. Learn how it replaces older files like setup.py and requirements.txt and how to use it to manage your project's dependencies and tools.

Read more

Python Best Practices for 2023

A guide to the modern Python best practices you should be using in 2023. From project management with pyproject.toml to type hints and f-strings, these are the standards for writing clean, professional Python code.

Read more

Understanding Python's __main__

A guide to the common Python idiom if __name__ == '__main__':. Learn what this block of code does, why it's important, and how it allows you to write Python files that can be used as both runnable scripts and importable modules.

Read more

Python Type Hints Explained

A guide to type hints in Python. Learn what type hints are, how to use them to annotate your code, and how they can help you write more robust and maintainable programs with the help of static analysis tools.

Read more

Getting Started with Pytest

An introduction to pytest, the most popular testing framework for Python. Learn how its simple syntax, powerful fixture model, and rich plugin ecosystem can make writing tests easier and more enjoyable.

Read more

A Guide to Python's Pathlib Module

An introduction to Python's modern `pathlib` module. Learn how to use its object-oriented approach to handle filesystem paths in a way that is simpler, more readable, and less error-prone than the traditional `os.path`.

Read more

A Guide to Python's format() Method

A guide to the str.format() method for string formatting in Python. Learn how to use this powerful and flexible method with positional and keyword arguments to create dynamically formatted strings.

Read more

What's New in Python 3.9?

A look at the major new features coming in Python 3.9, including the new dictionary merge operators, more flexible type hinting, and the new zoneinfo module for timezone support.

Read more

A Guide to Python's __init__.py

An explanation of the purpose of the __init__.py file in Python. Learn how it's used to mark directories as Python packages and how you can use it to control your package's namespace.

Read more

What is a 'set' in Python?

A foundational guide to the set, Python's data structure for storing unordered collections of unique elements. Learn how to create sets and perform common mathematical set operations like union and intersection.

Read more

What is a 'string' in Python?

A foundational guide to the string (str) data type in Python. Learn how strings are used to represent text, their immutable nature, and some of the most common operations you can perform on them.

Read more

What is a 'module' in Python?

A foundational guide to modules in Python. Learn how modules are used to organize code into separate files, making your programs more manageable, reusable, and easier to understand.

Read more

A First Look at Python 3.6

An early look at the exciting new features coming in Python 3.6. We explore the new f-strings for improved string formatting, underscores in numeric literals, and the new dictionary implementation.

Read more
Geek Cafe LogoGeek Cafe

Your trusted partner for cloud architecture, development, and technical solutions. Let's build something amazing together.

Quick Links

© 2025 Geek Cafe LLC. All rights reserved.

Research Triangle Park, North Carolina

Version: 8.9.22