In this tutorial, you’ll build a URL shortener with Python and FastAPI. URLs can be extremely long and not user-friendly. This is where a URL shortener can come in handy. A URL shortener reduces the number of characters in a URL, making it easier to read, remember, and share. By following this step-by-step project, you’ll […]
Advantages of Protobuf for Serialization in Python – The Real Python Podcast
May 20, 2022 58m Would you like a way to send structured serialized data between different platforms and languages? What if the data was self-documenting, could automatically generate Python code, and would validate itself? This week on the show, Liran Haimovitch talks about protocol buffers and communicating with microservices through Remote Procedure Calls (RPC). Protocol […]
How to Publish an Open-Source Python Package to PyPI – Real Python
Python is famous for coming with batteries included, and many sophisticated capabilities are available in the standard library. However, to unlock the full potential of the language, you should also take advantage of the community contributions at PyPI: the Python Packaging Index. PyPI, typically pronounced pie-pee-eye, is a repository containing several hundred thousand packages. These […]
Exploring Scopes and Closures in Python – Real Python
Have you been wondering how scopes and closures work in Python? Maybe you’ve just heard about object.__closure__, and you’d like to figure out what exactly it does. In this Code Conversation video course, you’ll use the debugger Thonny to walk through some sample code and get a better understanding of scopes and closures in Python. […]
Level Up Your Skills With the Real Python Slack Community – Real Python
The Real Python Community Slack is an English-medium Python community with members located worldwide. It’s a welcoming group in which you’re free to discuss any questions you may have, celebrate your progress, or hang out with the community at the virtual watercooler. This guide is for you if you want to: Get the most out […]
Questions for New Dependencies & Comparing Python Game Libraries – The Real Python Podcast
May 27, 2022 51m What are the differences between the various Python game frameworks? Would it help to see a couple of game examples across several libraries to understand the distinctions? This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder’s Weekly articles and projects. Episode Sponsor: We discuss a Real […]
What’s New From May 2022 – Real Python
The first days of May 2022 were the last days of this year’s PyCon US event. Just before the PyCon conference, the Python Language Summit brought together Python core developers, triagers, and special guests. Some of those attendees were the very same people who shipped two important Python releases this month. The third Thursday of […]
Data Cleaning With pandas and NumPy – Real Python
Data scientists spend a large amount of their time cleaning datasets so that they’re easier to work with. In fact, the 80/20 rule says that the initial steps of obtaining and cleaning data account for 80% of the time spent on any given project. So, if you’re just stepping into this field or planning to […]
Preventing or Handling Errors in Python – Real Python
Dealing with errors and exceptional situations is a common requirement in programming. You can either prevent errors before they happen or handle errors after they’ve happened. In general, you’ll have two coding styles matching these strategies: look before you leap (LBYL), and easier to ask forgiveness than permission (EAFP), respectively. In this tutorial, you’ll dive […]
Managing Large Python Data Science Projects With Dask – The Real Python Podcast
Jun 03, 2022 46m What do you do when your data science project doesn’t fit within your computer’s memory? One solution is to distribute it across multiple worker machines. This week on the show, Guido Imperiale from Coiled talks about Dask and managing large data science projects through distributed computing. We talk about projects where […]