Code Challenge 25 - Notification Service of Now Playing and Upcoming Movies

Posted by PyBites on Mon 26 June 2017 in Challenges • Tagged with codechallenges, movies, series, digest, email, themoviedb, imdb, omdb, apis • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding! What movies are in theaters now or just came out on your favorite streaming service? What are upcoming movies, when will they be released? Can I keep track of all new humor movies? Or what about that specific actor or director? Having a notification service around movies seems an interesting, fun and useful code challenge to us.


Continue reading

Code Challenge 24 - Use Dunder / Special Methods to Enrich a Class - Review

Posted by PyBites on Mon 26 June 2017 in Challenges • Tagged with codechallenges, dunders, special methods, magic methods, classes, polymorphism, operator overloading, guest • 2 min read

In this article we review last week's Use Dunder / Special Methods to Enrich a Class code challenge.


Continue reading

From Script to Project part 1. - Building a Karma Bot with Python and the Slack API

Posted by Bob on Sun 25 June 2017 in Tools • Tagged with Slack, karma, bot, API, picle, packaging, logging, Counter • 4 min read

We love Slack! But what if we can make it even cooler? Imagine: you are geeking out with your fellow developers on Slack and you want to give them credit. Or you can write "stupidsubject--" and it automagically shows "stupidsubject's karma decreased to -2". Enter Karma Bot. This is nothing new but building one myself was a good learning exercise and will kick-start our series on packaging your code.


Continue reading

Twitter digest 2017 week 25

Posted by PyBites on Sun 25 June 2017 in Digest • Tagged with twitter, news, tips, python, code, data analysis, audio, scikit, socketserver, Django, flask, Peewee, ORM, variables, raspberry pi, type checking, plotly, data science, machine learning, solid, cheatsheet • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Module of the Week - Pendulum

Posted by Julian on Sat 24 June 2017 in Modules • Tagged with python, tips, code, pybites, pendulum, datetime, pytz, timezones • 2 min read

A brief overview of the Pendulum datetime module.


Continue reading

Code Challenge 24 - Use Dunder / Special Methods to Enrich a Class

Posted by PyBites on Tue 20 June 2017 in Challenges • Tagged with codechallenges, dunders, special methods, magic methods, classes, polymorphism, operator overloading, guest • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding! We wrote an article for Dan Bader's Python blog: Enriching Your Python Classes With Dunder (Magic, Special) Methods. We hope you like it. To put dunders into practice we dedicate this week's code challenge to it.


Continue reading

Code Challenge 23 - Challenge Estimated Time API - Review

Posted by PyBites on Sun 18 June 2017 in Challenges • Tagged with codechallenges, APIs, Github, PyGithub, PR template, tracking, meta, data, platform • 3 min read

In this article we review last week's Challenge Estimated Time API. This was a cool challenge and we implemented it using Github's awesome platform and API.


Continue reading

Twitter digest 2017 week 24

Posted by PyBites on Sun 18 June 2017 in Digest • Tagged with twitter, news, tips, python, Postgres, JSON, Rest, API, Strings, Docker, Flask, React, AWS, learning, Py, Instagram, data science, charts, NASA, Faker, GitHub, Readme, indentation, data analysis, twilio • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Parsing Twitter Geo Data and Mocking API Calls by Example

Posted by Bob on Sat 17 June 2017 in Learning • Tagged with twitter, API, mock, geo, data, unittest, pickle, tweepy, testing, 100days • 2 min read

"Is this Bob or Julian?!" ... yeah tweeting from our shared @pybites Twitter account can be confusing! So I made a little script to parse the location of our tweets. Then I extended it to make it testable. I wrote a decorator to cache a couple of API outputs to be used with the unittest.mock patch decorator I learned about. A simple script turned into a good learning exercise.


Continue reading

How to Write a Python Subclass

Posted by Julian on Sat 17 June 2017 in Learning • Tagged with learning, code, programming, python, classes, beginners • 5 min read

In this article I cover Python subclasses and inheritance using a relatable code example scenario.


Continue reading