Best Practices for Compatible Python 2 and 3 Code

Posted by Bob on Wed 22 March 2017 in Tools • Tagged with 2vs3, tox, six, python-modernize, porting, future, 2to3, coverage, futurize, caniusepython3, pip, Requests, Werkzeug • 3 min read

95% of most popular Python packages support Python 3. Maybe you are lucky and get to start fresh using Python 3. However as of last year Python 2.7 still reigns supreme in pip installs and at a lot of places 2.x is the only version you get to work in. I think writing Python 2 and 3 compatible code is an important skill, so lets check what it entails.


Continue reading

Simple API Part 2 - Building a Deep Work Logger with Flask, Slack and Google Docs

Posted by Bob on Fri 10 March 2017 in Tools • Tagged with Flask, Slack, Google docs, Heroku, APIs, pygsheets, git, commands, productivity, learning • 3 min read

After Simple API - part 1 a more practical app in this part 2 tutorial: a Deep Work logger integrating Google docs and Slack, including deployment of the app to Heroku.


Continue reading

Send Advanced Emails with Python MIME Submodules

Posted by Julian on Wed 01 February 2017 in Tools • Tagged with python, tips, tricks, code, pybites, email, automation, MIME • 3 min read

Learn how to send richer emails with Python and the MIME Submodules


Continue reading

Send Emails with Python smtplib

Posted by Julian on Thu 26 January 2017 in Tools • Tagged with python, tips, tricks, code, pybites, email, automation • 2 min read

Learn how to send emails using Python


Continue reading

List of Awesome Python Resources

Posted by Julian on Tue 17 January 2017 in Tools • Tagged with python, tips, tricks, resources, flask, cron, tools • 2 min read

A great list of Python Resources that should keep you busy for a while!


Continue reading

Create a Simple Web Scraper with BeautifulSoup4

Posted by Julian on Wed 11 January 2017 in Tools • Tagged with python, tips, tricks, code, pybites, beautifulsoup, bs4, webscraping, namedtuples • 4 min read

Learn to create a simple web scraper in Python using BeautifulSoup4


Continue reading

Copy and Paste with Pyperclip

Posted by Julian on Fri 06 January 2017 in Tools • Tagged with python, tips, tricks, code, pybites • 3 min read

Use the Pyperclip module to copy and paste with the clipboard!


Continue reading

Automate Tweeting: how to build a Twitterbot

Posted by Bob on Thu 29 December 2016 in Tools • Tagged with twitterapi, tweepy, feedparser, rss, logging, podcasts, virtualenv, pyvenv, venv, news, 3.6 • 3 min read

In this post I will show you how we automate part of our Twitter posting using feedparser and tweepy.


Continue reading

How to create a nice-looking HTML page of your Kindle book highlights (notes)

Posted by Bob on Tue 27 December 2016 in Tools • Tagged with kindle, Template strings, json, html, books, bookcision, generators • 2 min read

In this post I share a simple script to convert Bookcision JSON into a HTML page for your blog.


Continue reading

Get a weekly digest from a Pelican blog

Posted by Bob on Sat 24 December 2016 in Tools • Tagged with pelican, feedparser, rss • 2 min read

In this post a script we use to get a weekly digest of our posts.


Continue reading