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 handle environment variables in Python
By Bob Belderbos on 31 August 2021
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?
5 Helpful Python Decorator Use Cases
By Bob Belderbos on 3 August 2021
Some time ago I asked on Twitter: I was curious what you use #Python decorators for? And I got quite an amazing / insightful response: The obvious next step for me was to look at some examples / use cases. So below are 5 useful applications of decorators. Study them, then apply similar things to… Continue reading 5 Helpful Python Decorator Use Cases
Are you overwhelmed by tutorial paralysis?
By Bob Belderbos on 30 July 2021
Tutorial Paralysis, information overload, hoarding and never completing online courses (How large are your Udemy and Coursera libraries?)… This is the pain we’re increasingly hearing about in conversations with developers and it’s more common than you may realise. It’s real, it’s crippling and it can make you feel like you’re going nowhere. Even if you do manage… Continue reading Are you overwhelmed by tutorial paralysis?
PyBites Website 2.0 is here
By PyBites Team on 27 July 2021
Hey, what just happened to the pybit.es site?! After 4.5 years of content updates, products and growth, the site just got outdated, unmanageable and even confusing. The pain was real and we needed a fix! The site was first created using Pelican, a (Python) static site generator + GitHub pages and we were happy with… Continue reading PyBites Website 2.0 is here