News
Read Python Cheatsheet latest changes here.
If you find this project useful, don't forget to drop a star on GitHub 🎉 It helps enormously by giving visibility, reaching more developers, and finding more people willing to contribute.
Django 4.2 release candidate 1 released
Provided no major bugs are discovered that can't be solved in the next two weeks, Django 4.2 will be released on or around April 3
SPONSORED LINK
Deploy, host, and scale your Python apps with Kinsta
Deploy your Python app from your GitHub account or bring your Docker container. Launch in minutes at any of our 26 global data centers. Your app is hosted on Google Cloud and secured by Cloudflare. Plus, turn on the free CDN that has 275+ POPs. Add one or multiple databases and take advantage of internal connections. 24/7 expert live chat support is always there to help you. Deploy Your Python App Now, Start With a Free Trial!
Articles
Pandas 2.0 : Everything You Need to Know
In this video I give an overview of pandas 2.0 and the main changes related to the apache arrow backend.
Python Assertions, or Checking If a Cat Is a Dog
Learn the rules of using assertions in Python, and those of not using them
LLaMA & Alpaca: Install 'ChatGPT' Locally
In this video, I walk you through installing the newly released LLaMA & Alpaca large language models on your local computer. These lightweight models come from Stanford and Meta (Facebook) and have similar performance to OpenAI's davinci model.
How to Generate Images Using the OpenAI API and DALL·E 2 in Python
In this tutorial, you'll learn how to use OpenAI's API with Python to generate, edit, and vary images using natural language prompts.
Comprehending comprehensions to write cleaner, faster Python
List and dictionary comprehensions are cornerstones of intermediate to advanced Python. Unfortunately, they are also easily misunderstood as a one-to-one replacement for for loops when you want to produce an iterable.
5 Non-Technical Areas for Software Developers to Focus on
Skill development makes us competent, but soft skills make us unstoppable.
Understanding Python Metaclasses
In Python, a metaclass is a class that defines the behavior of other classes. Specifically, a metaclass is a class that is used to create and customize other classes.
Django Performance Optimization Tips
This article looks at where potential performance issues can occur in a Django application and how to address them in order to speed up your app.
SPONSORED AD
Sponsor Python Cheatsheet 🧡
Python Cheatsheet is an open-source MIT licensed project that has been made possible due to the contributions of many Python developers. If you are interested in supporting this project, please consider becoming a sponsor on GitHub, or contributing by adding, fixing or improving content.
Projects
Kitsec-core: Ethical hacking, made easy
Kitsec is a powerful toolkit CLI designed to help you simplify and centralize your security workflow. Whether you're a seasoned professional or just getting started, Kitsec provides a comprehensive set of tools to help you stay on top of your game.
Openai-python: The OpenAI Python library
The OpenAI Python library provides convenient access to the OpenAI API from applications written in the Python language.
Pylyzer: A fast static code analyzer & language server for Python
pylyzer is a static code analyzer / language server for Python, written in Rust.
Home-assistant: Open source home automation that puts local control and privacy first
Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.
AND FINALLY...
Prevention is better than cure 🤕
If you have any questions or suggestions, you can contact us at carlos@pythoncheatsheet.org.