Module of the Week - Requests-cache for Repeated API Calls

Posted by Bob on Tue 14 March 2017 in Modules • Tagged with requests, cache, APIs, package • 2 min read

Today a quick article on a nice caching module when working with APIs: Requests-cache.


Continue reading

Code Challenge 10 - Build a Hangman Game

Posted by PyBites on Mon 13 March 2017 in Challenges • Tagged with codechallenges, learning, game, hangman, movies, github • 2 min read

A new week, a new 'bite' of Python coding! This week we will build a Hangman game. Good luck and have fun.


Continue reading

Twitter digest 2017 week 10

Posted by PyBites on Sun 12 March 2017 in Digest • Tagged with twitter, news, podcasts, pypi, productivity, Django, Fire, Anaconda, cheat sheet, stdlib, CPython, microservices, APIs, tips • 2 min read

During the weekend we will share a curated list of 15 cool things (mostly Python) we found / tweeted during the week.


Continue reading

Code Challenge 09 - With Statement / Context Manager - Review

Posted by PyBites on Sat 11 March 2017 in Challenges • Tagged with codechallenges, code review, learning, with, contextmanagers, Paramiko, pytest • 2 min read

It's end of the week again so we review the code challenge of this week. It's never late to sign up, just fork our challenges repo and start coding.


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

Comparing Lists with Difflib

Posted by Julian on Wed 08 March 2017 in Learning • Tagged with python, learning, beginners, stdlib, tips, cleancode, bestpractices, pythonic • 3 min read

Learn to compare blocks of text with the difflib module.


Continue reading

Don't let mutability of compound objects fool you!

Posted by Bob on Tue 07 March 2017 in Concepts • Tagged with list, mutable, copy, deepcopy • 3 min read

In this article I explain the difference between shallow versus deep copy with a working example. It's an important concept when working with compound objects.


Continue reading

Code Challenge 09 - Give the With Statement some Love and Create a Context Manager

Posted by PyBites on Mon 06 March 2017 in Challenges • Tagged with codechallenges, learning, with, contextlib, contextmanagers, decorators, generators • 1 min read

A new week, more coding! This week we have a free form exercise. This week you will implement your own Context Manager (= support with on your object).


Continue reading

Code Challenge 08 - House Inventory Tracker - Review

Posted by PyBites on Sun 05 March 2017 in Challenges • Tagged with codechallenges, code review, learning, inventory, Flask, APIs, data structures • 3 min read

It's end of the week again so we review the code challenge of this week. It's never late to sign up, just fork our challenges repo and start coding.


Continue reading

Twitter digest 2017 week 09

Posted by PyBites on Sat 04 March 2017 in Digest • Tagged with twitter, news, podcasts, contextmanagers, 3.6, pypi, training, tuples, pydata, testing, zen, pyfun • 2 min read

On Saturdays we will share a curated list of 15 cool things (mostly Python) we found / tweeted during the week.


Continue reading