Tutorials

Tutorials

60 bookmarks
Custom sorting
Python 3.12 Preview: Static Typing Improvements – Real Python
Python 3.12 Preview: Static Typing Improvements – Real Python
In this tutorial, you'll preview the new static typing features in Python 3.12. You'll learn about the new syntax for type variables, making generics simpler to define. You'll also see how @override lets you model inheritance and how you use typed dictionaries to annotate variable keyword arguments.
·realpython.com·
Python 3.12 Preview: Static Typing Improvements – Real Python
Python's Built-in Functions: A Complete Exploration – Real Python
Python's Built-in Functions: A Complete Exploration – Real Python
In this tutorial, you'll learn the basics of working with Python's numerous built-in functions. You'll explore how to use these predefined functions to perform common tasks and operations, such as mathematical calculations, data type conversions, and string manipulations.
·realpython.com·
Python's Built-in Functions: A Complete Exploration – Real Python
Understanding the Python Mock Object Library – Real Python
Understanding the Python Mock Object Library – Real Python
In this tutorial, you'll learn how to use the Python mock object library, unittest.mock, to create and use mock objects to improve your tests. Obstacles like complex logic and unpredictable dependencies make writing valuable tests difficult, but unittest.mock can help you overcome these obstacles.
·realpython.com·
Understanding the Python Mock Object Library – Real Python
What Is the __pycache__ Folder in Python? – Real Python
What Is the __pycache__ Folder in Python? – Real Python
In this tutorial, you'll explore Python's __pycache__ folder. You'll learn about when and why the interpreter creates these folders, and you'll customize their default behavior. Finally, you'll take a look under the hood of the cached .pyc files.
·realpython.com·
What Is the __pycache__ Folder in Python? – Real Python
An Intro to Logging with Loguru
An Intro to Logging with Loguru
Python's logging module isn't the only way to create logs. There are several third-party packages you can use, too. One of the most popular is Loguru. Loguru intends to remove all the boilerplate you get with the Python logging API. You will find that Loguru greatly simplifies creating logs in Python.
·pythonpapers.com·
An Intro to Logging with Loguru
Python Sequences: A Comprehensive Guide – Real Python
Python Sequences: A Comprehensive Guide – Real Python
This tutorial dives into Python sequences, which is one of the main categories of data types. You'll learn about the properties that make an object a sequence and how to create user-defined sequences.
·realpython.com·
Python Sequences: A Comprehensive Guide – Real Python
What's Lazy Evaluation in Python? – Real Python
What's Lazy Evaluation in Python? – Real Python
This tutorial explores lazy evaluation in Python and looks at the advantages and disadvantages of using lazy and eager evaluation methods. By the end of this tutorial, you'll clearly understand which approach is best for you, depending on your needs.
·realpython.com·
What's Lazy Evaluation in Python? – Real Python
Python F-String Codes I Use Every Day - Pybites
Python F-String Codes I Use Every Day - Pybites
I use f-strings every day. The irony is I also every day end up searching the Web to find the correct format to use. Until one day I thought a
·pybit.es·
Python F-String Codes I Use Every Day - Pybites
Pytest With Eric
Pytest With Eric
Best Pytest Tutorials
·pytest-with-eric.com·
Pytest With Eric
Pydantic: Simplifying Data Validation in Python – Real Python
Pydantic: Simplifying Data Validation in Python – Real Python
Discover the power of Pydantic, Python's most popular data parsing, validation, and serialization library. In this hands-on tutorial, you'll learn how to make your code more robust, trustworthy, and easier to debug with Pydantic.
·realpython.com·
Pydantic: Simplifying Data Validation in Python – Real Python
Data Management With Python, SQLite, and SQLAlchemy – Real Python
Data Management With Python, SQLite, and SQLAlchemy – Real Python
In this tutorial, you'll learn how to store and retrieve data using Python, SQLite, and SQLAlchemy as well as with flat files. Using SQLite with Python brings with it the additional benefit of accessing data with SQL. By adding SQLAlchemy, you can work with data in terms of objects and methods.
·realpython.com·
Data Management With Python, SQLite, and SQLAlchemy – Real Python
Class method vs Static method in Python - GeeksforGeeks
Class method vs Static method in Python - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
·geeksforgeeks.org·
Class method vs Static method in Python - GeeksforGeeks
How to Download Files From URLs With Python – Real Python
How to Download Files From URLs With Python – Real Python
In this tutorial, you'll find the right tools to help you download files from URLs with Python and manage the data retrieval process. You'll cover data streaming, thread pools, and asynchronous downloads.
·realpython.com·
How to Download Files From URLs With Python – Real Python
Raising and Handling Python Exceptions – Real Python
Raising and Handling Python Exceptions – Real Python
In this course, you'll learn what an exception is and how it differs from a syntax error. You'll learn about raising exceptions, making assertions, and catching exceptions to change the control flow of your program using the try, except, else, and finally keywords.
·realpython.com·
Raising and Handling Python Exceptions – Real Python
Advanced Visual Studio Code for Python Developers – Real Python
Advanced Visual Studio Code for Python Developers – Real Python
In this tutorial, you'll learn how you can configure, extend, and optimize Visual Studio Code for a more effective and productive Python development environment. By digging into this customizable code editor and IDE, you'll put yourself on track to be a VS Code power user.
·realpython.com·
Advanced Visual Studio Code for Python Developers – Real Python
Logging in Python like a PRO 🐍🌴
Logging in Python like a PRO 🐍🌴
I'll show you what good logging is with real-life examples. Most people don't know what to log, so they end up creating just noise....
·blog.guilatrova.dev·
Logging in Python like a PRO 🐍🌴
Introduction to Python SQL Libraries – Real Python
Introduction to Python SQL Libraries – Real Python
In this step-by-step tutorial, you'll learn how to connect to different database management systems by using various Python SQL libraries. You'll interact with SQLite, MySQL, and PostgreSQL databases and perform common database queries using a Python application.
·realpython.com·
Introduction to Python SQL Libraries – Real Python
Python's filter(): Extract Values From Iterables – Real Python
Python's filter(): Extract Values From Iterables – Real Python
In this step-by-step tutorial, you'll learn how Python's filter() works and how to use it effectively in your programs. You'll also learn how to use list comprehension and generator expressions to replace filter() and make your code more Pythonic.
·realpython.com·
Python's filter(): Extract Values From Iterables – Real Python
Use Sentiment Analysis With Python to Classify Movie Reviews – Real Python
Use Sentiment Analysis With Python to Classify Movie Reviews – Real Python
In this tutorial, you'll learn about sentiment analysis and how it works in Python. You'll then build your own sentiment analysis classifier with spaCy that can predict whether a movie review is positive or negative.
·realpython.com·
Use Sentiment Analysis With Python to Classify Movie Reviews – Real Python
Creating Web APIs with Python and Flask
Creating Web APIs with Python and Flask
Learn how to set up a basic Application Programming Interface (API) to make your data more accessible to users. This lesson also discusses principles of API design and the benefits of APIs for d...
·programminghistorian.org·
Creating Web APIs with Python and Flask