Life is about facing new challenges - Kostya Tszyu
Hi Pythonistas, Hacktoberfest started. Let's make open source better and track our progress with a little app you will build using the Bottle web framework.
DigitalOcean's Hacktoberfest is a month-long celebration of open source software. You can earn a cool T-shirt making four pull requests to any public repo on GitHub between October 1–31.
Potential projects you could contribute to are listed on their site but PRs you make for our code challenges count too!
We thought it would be a cool challenge to build this with Bottle (optionally adding the JS you'd like):
Make a virtual env and install Bottle.
Make a form to ask for the user. Optionally add GitHub login to retrieve the user automatically.
Retrieve the PRs via the GitHub API. You can borrow the required query here (L15). Yes, the date range seems odd but it accounts for various timezones. It was taken from DigitalOcean's 'official' checker (as explained in this issue).
Display the PR's and progress as (n out of 4). You can use these status messages (L67).
(bonus) allow checking multiple GH handles at once so you can compare progress among fellow developers. It seems you can get this info in a single query - example.
And remember: any of our code challenges you PR this month counts towards the Hacktoberfest goal, have fun!
Our goal is to learn and teach you Python through practical exercises. Learning a programming language is way more fun as a community!
Keep Calm and Code in Python!
Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.
"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H
"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B
"This is now my favourite first Python go-to reference." - Anthony L
"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S