Decorators are a sometimes overlooked feature and they might be hard to grasp for beginning Pythonistas. I agree with Aaron Maxwell that mastering them “can massively magnify the positive impact of the code you write”, so make sure you add them to your toolkit if not done so already. In this article I explain what they do, why you want to use them and give some practical examples.
Bob Belderbos
Bob studied business economics, but got fired up about programming early in his career. He taught himself web design / coding and started living his biggest passion: automate the boring stuff, making other people's lives easier. Since then he has coded projects accruing millions in cost savings and built a coding platform that has taught Python to thousands of people worldwide. He deeply cares about helping other people succeed. His biggest win will be your next win!
Python Testing With Pytest
By Bob Belderbos on 25 September 2017
Review of Brian Okken’s new pytest book.
PyBites Module of the Week: Openpyxl – Automate Excel!
By Bob Belderbos on 12 September 2017
You probably remember your first script. I remember the joy of discovering how I could let the machine automate something for me. It still gets me excited everyday. I played a bit with openpyxl yesterday. I used it to hack an Excel game for which I first used a macro. Not particularly useful but a nice exploration of this module.
Improve the Quality of Your Code with Better Code Hub
By Bob Belderbos on 30 August 2017
So you pushed your code to GitHub and deployed v1, congrats! But how maintainable is your code really? Do you have tests? Is your code modular? Are your methods short and concise? What if you could hit a button and a tool conveniently checks this for you? Free and integrated with GitHub? Enter Better Code Hub from Software Improvement Group …
Fully Automate Login and Banner Generation with Selenium, Requests and Click
By Bob Belderbos on 20 August 2017
In part 3 of the PyBites Banner Generator article series I show you how to automatically generate a banner with Requests and Selenium.
Making a Banner Generator With Pillow and Flask
By Bob Belderbos on 19 August 2017
In this article I will take last week’s banner.py Pillow script and integrate it into a Flask app.
Using Pillow to Create Nice Banners For Your Site
By Bob Belderbos on 11 August 2017
Running your site or business good chance you A. use promo material like banners and B. you make them manually with Photoshop, Gimp or what not. And yes for anything beyond the basics you probably need those programs. But what if you like to keep it simple and want to semi-automate things? Just an image and text on canvas? Enter Pillow – The friendly PIL fork, which makes this pretty easy. Come explore some of its capabilities with me in this article.
A Step by Step Guide to Implementing and Deploying Two-Phase Registration in Django
By Bob Belderbos on 4 August 2017
Two-phase registration, consisting of initial signup followed by a confirmation/activation email is a common piece for any web app. In this article I will guide you through setting this up in Django using the Django-registration plugin and Gmail for messaging. Then I show you how to deploy the app to Heroku.
Deploying a Django App to PythonAnywhere
By Bob Belderbos on 23 July 2017
After Julian’s great article on deploying a Flask app to Heroku, let’s look at how we can deploy a Django app to PythonAnywhere (PA).
First Steps Learning Django: PyPlanet Article Sharer App
By Bob Belderbos on 17 July 2017
In this post I share my first steps exploring Django. I created PyPlanet Article Sharer Django App to make it easier for us to share new Planet Python feed articles. It loads in new articles and generates tweet links. It lets us mark each entry as Shared or Skipped. I am sure this will facilitate our Twitter activity and News Digests. This is our first project of our 100 days of Django and our very first Django app overall!