I ran into an interesting issue debugging the other day … I used isort with pre-commit to automatically sort imports before committing my code. This is a huge time saver and I am very thankful for both tools, as well as black and flake8. They save a ton of time and they instantly boost the… Continue reading A debugging tale
A debugging tale
By Bob Belderbos on 6 March 2022
10 Tips to Write Better Functions in Python
By Bob Belderbos on 19 January 2022
In today’s article 10 tips to improve the quality of your Python functions.
Facial Recognition with Python
By Lee Cullip on 1 September 2021
Identifying faces I was asked by Bob to write a guest article for the PyBites blog, so whilst this isn’t my first blog article, it is my first ever guest blog article of which I’m immensely proud and very pleased to have written for Pybites. In this article, I will detail how I used the… Continue reading Facial Recognition with Python
How to handle environment variables in Python
By Bob Belderbos on 31 August 2021
In this article I will share 3 libraries I often use to isolate my environment variables from production code. Why is this important? Separate config from code As we can read in The Twelve-Factor App / III. Config: Apps sometimes store config as constants in the code. This is a violation of twelve-factor, which requires strict… Continue reading How to handle environment variables in Python
How to package and deploy CLI applications with Python PyPA setuptools build
By yaythomas on 30 August 2021
This article covers how to package your Python code as a CLI application using just the official PyPA provided tools, without installing additional external dependencies. If you prefer reading code to reading words, you can find the full example demo code discussed in this article here: example repo of Python CLI packaged with PyPA setuptools… Continue reading How to package and deploy CLI applications with Python PyPA setuptools build
Code Better with Type Hints – Part 2
By Michael Aydinbas on 27 August 2021
This is the second part of a series of articles dealing with the type annotation system in Python, type hints for short. The first part gave an introduction to type hints. This article is aimed at newcomers to type hints and wants to help you get started. In this second part, I will go over… Continue reading Code Better with Type Hints – Part 2
Applying the Hedgehog Concept to Learning Python
By Bob Belderbos on 20 August 2021
In this post we’ll look at how to apply the hedgehog concept to get more meaningful work done using Python and in your career. The other day I posted on Twitter: Don’t get stuck in tutorial paralysis, start building. Yes, it’s uncomfortable but you will learn so much more by deliberately applying what you learn… Continue reading Applying the Hedgehog Concept to Learning Python
The Benefits of Using GitHub Actions
By Bob Belderbos on 13 August 2021
If you’re not using GitHub Actions you’re missing out! This tool is a great way to catch any errors in the central place of the GitHub repo. Catch errors early Of course this is always second best, developers should do their due diligence locally first before pushing code: Some of my favorites in that regard… Continue reading The Benefits of Using GitHub Actions
Code Better with Type Hints – Part 1
By Michael Aydinbas on 12 August 2021
This is the first part of a series of articles dealing with the type annotation system in Python, type hints for short. With this opinionated article, I advocate the use of type hints. I want to explain why you should care and why your code will be better, more bug-free, more accessible, and easier to… Continue reading Code Better with Type Hints – Part 1
Do You Have a Brag Doc?
By PyBites Team on 5 August 2021
We received a reply from one of our community members the other day reminding us of an incredibly powerful technique that we use to maintain motivation and build our confidence: the Brag Doc. A brag doc, wins doc, success wall (whatever you call it), is quite simply a document that you create for yourself detailing all of your wins… Continue reading Do You Have a Brag Doc?