Real Python: When to Use .__repr__() vs .__str__() in Python
Link: https://realpython.com/courses/repr-vs-str/
One of the most common tasks that a computer program performs is to display data. The program often displays this information to the program’s user. However, a program also needs to show information t
Link: https://realpython.com/courses/repr-vs-str/
One of the most common tasks that a computer program performs is to display data. The program often displays this information to the program’s user. However, a program also needs to show information t
Realpython
When to Use .__repr__() vs .__str__() in Python – Real Python
In this video course, you'll learn the difference between the string representations returned by .__repr__() vs .__str__() and understand how to use them effectively in classes that you define.
Quansight Labs Blog: Announcing Scientific Python Accessibility Events
Link: https://labs.quansight.org/blog/announcing-scientific-python-accessibility-events
I am happy to announce two upcoming public events focused on helping the scientific Python ecosystem develop their accessibility skills before the new year.
Link: https://labs.quansight.org/blog/announcing-scientific-python-accessibility-events
I am happy to announce two upcoming public events focused on helping the scientific Python ecosystem develop their accessibility skills before the new year.
labs.quansight.org
Announcing Scientific Python Accessibility Events
I am happy to announce two upcoming public events focused on helping the scientific Python ecosystem develop their accessibility skills before the new year.
PyCoder’s Weekly: Issue #646 (Sept. 10, 2024)
Link: https://pycoders.com/issues/646
#646 – SEPTEMBER 10, 2024 View in Browser » Using Pydantic to Simplify Python Data Validation Discover the power of Pydantic, Python’s most popular data parsing, validation, and serialization li
Link: https://pycoders.com/issues/646
#646 – SEPTEMBER 10, 2024 View in Browser » Using Pydantic to Simplify Python Data Validation Discover the power of Pydantic, Python’s most popular data parsing, validation, and serialization li
Pycoders
PyCoder’s Weekly | Issue #646
Issue #646 of the PyCoder’s Weekly newsletter, published Sept. 10, 2024.
ListenData: How to Integrate Gemini API with Python
Link: https://www.listendata.com/2024/05/how-to-use-gemini-in-python.html
In this tutorial, you will learn how to use Google's Gemini AI model through its API in Python.
Steps to Access Gemini API
Follow the steps below to access the Gemini API and then use it in python.
Link: https://www.listendata.com/2024/05/how-to-use-gemini-in-python.html
In this tutorial, you will learn how to use Google's Gemini AI model through its API in Python.
Steps to Access Gemini API
Follow the steps below to access the Gemini API and then use it in python.
ListenData
How to Use Gemini API in Python
This tutorial explains how to use Google's Gemini AI model through its API in Python.
Real Python: How to Use Conditional Expressions With NumPy where()
Link: https://realpython.com/numpy-where-conditional-expressions/
The NumPy where() function is a powerful tool for filtering array elements in lists, tuples, and NumPy arrays. It works by using a conditional predicate, similar to the logic used in the WHERE or HAVI
Link: https://realpython.com/numpy-where-conditional-expressions/
The NumPy where() function is a powerful tool for filtering array elements in lists, tuples, and NumPy arrays. It works by using a conditional predicate, similar to the logic used in the WHERE or HAVI
Realpython
How to Use Conditional Expressions With NumPy where() – Real Python
This tutorial teaches you how to use the where() function to select elements from your NumPy arrays based on a condition. You'll learn how to perform various operations on those elements and even replace them with elements from a separate array or arrays.
Glyph Lefkowitz: Python macOS Framework Builds
Link: https://blog.glyph.im/2024/09/python-macos-framework-builds.html
When you build Python, you can pass various options to ./configure that
change aspects of how it is built. There is documentation for all of these
options, and they are
things like --prefix to tell t
Link: https://blog.glyph.im/2024/09/python-macos-framework-builds.html
When you build Python, you can pass various options to ./configure that
change aspects of how it is built. There is documentation for all of these
options, and they are
things like --prefix to tell t
blog.glyph.im
Python macOS Framework Builds
Building Python with --enable-framework changes some stuff around; should you care?
Real Python: Quiz: Python Virtual Environments: A Primer
Link: https://realpython.com/quizzes/python-virtual-environments-a-primer/
So you’ve been primed on Python virtual environments! Test your understanding of the tutorial here.
[ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your i
Link: https://realpython.com/quizzes/python-virtual-environments-a-primer/
So you’ve been primed on Python virtual environments! Test your understanding of the tutorial here.
[ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your i
Realpython
Python Virtual Environments: A Primer Quiz – Real Python
In this quiz, you'll test your understanding of Python virtual environments. With this knowledge, you'll be able to avoid dependency conflicts and help other developers reproduce your development environment.
Real Python: Quiz: Python 3.13: Free-Threading and a JIT Compiler
Link: https://realpython.com/quizzes/python313-free-threading-jit/
In this quiz, you’ll test your understanding of the new features in Python 3.13.
By working through this quiz, you’ll revisit how to compile a custom Python build, disable the Global Interpreter Lock
Link: https://realpython.com/quizzes/python313-free-threading-jit/
In this quiz, you’ll test your understanding of the new features in Python 3.13.
By working through this quiz, you’ll revisit how to compile a custom Python build, disable the Global Interpreter Lock
Realpython
Python 3.13: Free Threading and a JIT Compiler Quiz – Real Python
In this quiz, you'll test your understanding of the new features in Python 3.13. You'll revisit how to compile a custom Python build, disable the Global Interpreter Lock (GIL), enable the Just-In-Time (JIT) compiler, and more.
Will Kahn-Greene: Switching from pyenv to uv
Link: https://bluesock.org/~willkg/blog/dev/switch_pyenv_to_uv.html
Premise
The 0.4.0 release of uv
does everything I currently do with pip, pyenv, pipx, pip-tools, and
pipdeptree. Because of that, I'm in the process of switching to uv.
This blog post covers switching
Link: https://bluesock.org/~willkg/blog/dev/switch_pyenv_to_uv.html
Premise
The 0.4.0 release of uv
does everything I currently do with pip, pyenv, pipx, pip-tools, and
pipdeptree. Because of that, I'm in the process of switching to uv.
This blog post covers switching
Will's Blog
Switching from pyenv to uv
Premise
The 0.4.0 release of uv
does everything I currently do with pip, pyenv, pipx, pip-tools, and
pipdeptree. Because of that, I'm in the process of switching to uv.
This blog post covers switching
The 0.4.0 release of uv
does everything I currently do with pip, pyenv, pipx, pip-tools, and
pipdeptree. Because of that, I'm in the process of switching to uv.
This blog post covers switching
James Bennett: Know your Python container types
Link: https://www.b-list.org/weblog/2023/dec/24/python-container-types/
This is the last of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve.
Link: https://www.b-list.org/weblog/2023/dec/24/python-container-types/
This is the last of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve.
James Bennett
Know your Python container types
This is the last of a series of posts I'm doing as a sort of Python/Django Advent calendar, offering a …
Real Python: The Real Python Podcast – Episode #220: Configuring Git Pre-Commit Hooks & Estimating Software Projects
Link: https://realpython.com/podcasts/rpp/220/
How do you take advantage of Git pre-commit hooks? How do you build custom software checks and rules that run every time you commit your code? Christopher Trudeau is back on the show this week, bringi
Link: https://realpython.com/podcasts/rpp/220/
How do you take advantage of Git pre-commit hooks? How do you build custom software checks and rules that run every time you commit your code? Christopher Trudeau is back on the show this week, bringi
Realpython
Episode #220: Configuring Git Pre-Commit Hooks & Estimating Software Projects – The Real Python Podcast
How do you take advantage of Git pre-commit hooks? How do you build custom software checks and rules that run every time you commit your code? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles and projects.
Python⇒Speed: When should you upgrade to Python 3.13?
Link: https://pythonspeed.com/articles/upgrade-python-3.13/
Python 3.13 will be out October 1, 2024—but should you switch to it immediately?
And if you shouldn’t upgrade just yet, when should you?
Immediately after the release, you probably didn’t want to upgr
Link: https://pythonspeed.com/articles/upgrade-python-3.13/
Python 3.13 will be out October 1, 2024—but should you switch to it immediately?
And if you shouldn’t upgrade just yet, when should you?
Immediately after the release, you probably didn’t want to upgr
Python⇒Speed
When should you upgrade to Python 3.13?
Python 3.13 is out—when should you switch to using it?
Python⇒Speed: It's time to stop using Python 3.8
Link: https://pythonspeed.com/articles/stop-using-python-3.8/
Upgrading to new software versions is work, and work that doesn’t benefit your software’s users.
Users care about features and bug fixes, not how up-to-date you are.
So it’s perhaps not surprising how
Link: https://pythonspeed.com/articles/stop-using-python-3.8/
Upgrading to new software versions is work, and work that doesn’t benefit your software’s users.
Users care about features and bug fixes, not how up-to-date you are.
So it’s perhaps not surprising how
Python⇒Speed
It’s time to stop using Python 3.8
Python 3.8 will stop getting security updates in November 2024. You really should upgrade!
Matt Layman: Cloud Migration Beginning - Building SaaS #202
Link: https://www.mattlayman.com/blog/2024/cloud-migration-beginning-building-saas-202/
In this episode, we started down the path of migrating School Desk off of Heroku and onto Digital Ocean. Most of the effort was on tool changes and beginning to make a Dockerfile for deploying the app
Link: https://www.mattlayman.com/blog/2024/cloud-migration-beginning-building-saas-202/
In this episode, we started down the path of migrating School Desk off of Heroku and onto Digital Ocean. Most of the effort was on tool changes and beginning to make a Dockerfile for deploying the app
Ned Batchelder: Cogged GitHub profile
Link: https://nedbatchelder.com/blog/202409/cogged_github_profile.html
Cog is my tool for using bits of Python to generate
content inside an otherwise static file. I used it in extreme ways to generate
my GitHub profile page.If you haven’t seen it before, you can custom
Link: https://nedbatchelder.com/blog/202409/cogged_github_profile.html
Cog is my tool for using bits of Python to generate
content inside an otherwise static file. I used it in extreme ways to generate
my GitHub profile page.If you haven’t seen it before, you can custom
Nedbatchelder
Cogged GitHub profile
My GitHub profile is over-engineered with Cog. Let me explain.
Python Morsels: Boolean operators
Link: https://www.pythonmorsels.com/boolean-operators/
Python's Boolean operators are used for combining Boolean expressions and negating Boolean expressions.
Table of contents
Combining two if statements using and
Combining expressions with Boolean o
Link: https://www.pythonmorsels.com/boolean-operators/
Python's Boolean operators are used for combining Boolean expressions and negating Boolean expressions.
Table of contents
Combining two if statements using and
Combining expressions with Boolean o
Pythonmorsels
Boolean operators
Python's Boolean operators are used for combining Boolean expressions and negating Boolean expressions.
Django Weblog: Nominate a Djangonaut for the 2024 Malcolm Tredinnick Memorial Prize
Link: https://www.djangoproject.com/weblog/2024/sep/16/nominate-a-djangonaut-for-2024-malcolm-prize/
Hello Everyone 👋 It is that time of year again when we recognize someone from our community in memory of our friend Malcolm.
Malcolm was an early core contributor to Django and had both a huge influen
Link: https://www.djangoproject.com/weblog/2024/sep/16/nominate-a-djangonaut-for-2024-malcolm-prize/
Hello Everyone 👋 It is that time of year again when we recognize someone from our community in memory of our friend Malcolm.
Malcolm was an early core contributor to Django and had both a huge influen
Django Project
Nominate a Djangonaut for the 2024 Malcolm Tredinnick Memorial Prize
Posted by Thibaud Colas on September 16, 2024
Zato Blog: Smart IoT integrations with Akenza and Python
Link: https://zato.io/en/blog/akenza-iot-python-websockets.html
Smart IoT integrations with Akenza and Python
2024-09-16, by Dariusz Suchojad
Overview
The Akenza IoT platform, on its own, excels in collecting and managing data from a myriad of IoT devices.
Link: https://zato.io/en/blog/akenza-iot-python-websockets.html
Smart IoT integrations with Akenza and Python
2024-09-16, by Dariusz Suchojad
Overview
The Akenza IoT platform, on its own, excels in collecting and managing data from a myriad of IoT devices.
Python⇒Speed: Let's build and optimize a Rust extension for Python
Link: https://pythonspeed.com/articles/intro-rust-python-extensions/
If your Python code isn’t fast enough, you have many options for compiled languages to write a faster extension.
In this article we’ll focus on Rust, which benefits from:
Modern tooling, including a
Link: https://pythonspeed.com/articles/intro-rust-python-extensions/
If your Python code isn’t fast enough, you have many options for compiled languages to write a faster extension.
In this article we’ll focus on Rust, which benefits from:
Modern tooling, including a
Python⇒Speed
Let’s build and optimize a Rust extension for Python
Python code too slow? You can quickly create a Rust extension to speed it up.