Welcome, fellow Pythoneer! This is a small book of Python anti-patterns and worst practices. Learning about these anti-patterns will help you to avoid them in your own code and make you a better programmer (hopefully). Each pattern comes with a small description, examples and possible solutions.
Join Michael for a conversation with Chris McDonough about the Pyramid web framework. You'll learn about what Pyramid is and how it compares to frameworks like Django, Flask, Bottle, and more.
If you missed it, it seems right now there's a long thread going on related to the type-hinting PEP. The main thing going for the proposal is getting errors earlier by doing type-checking.
NBA real time scores already have an API but I thought I would make one using Kimono’s really easy scraping chrome extension anyway. (Note: I don’t work for them, they just have a cool product). First we have to grab the values we think are important on the ESPN NBA home page. That would be the home team name, away team name, scores, and the score time. Full github code is here.
A little over a year ago we started archiving all of the logs generated by PyPI and today we’ll take a look at these logs to see how various things have changed in that time. This data comes from parsing the user agents of the tools downloading files from PyPI and because of that it’s reliability is dependent on the reliability of that data.
Pytest is an awesome testing package for Python. It makes writing test really easy and its reporting capabilities for test failures are extremely helpful.However, it currently (as of version 2.7) doesn’t help you very much with testing (asyncio) coroutines. So a naïve approach for testing coroutines would be ...
submitted by hongminhee [link] [comment]
Here, I’ll demonstrate how to create these animated visualizations using Python and matplotlib. All of my source code is available in this IPython notebook. By the end, we’ll produce animated data visualizations.
Interview with Noah Gift.
In Automate the Boring Stuff with Python, you'll learn how to use Python to write programs that do in minutes what would take you hours to do by hand. Once you've mastered the basics of programming, you'll create Python programs that effortlessly perform useful and impressive feats of automation. Even if you've never written a line of code, you can make your computer do the grunt work.
ImportPython has an interview with the author - Albert Sweigart on our weblog. Feel free to ask questions to the author in the comments section.
A little utility for managing credentials in the cloud.
Visualization of heap operations.
Import configuration file for humans. ezcf stands for easy configuration, it allows you to import JSON/YAML/INI/XML like .py files. It is useful whenever you need to read from these formats, especially for reading configuration files.
Receives Github hooks and runs commands when they get there
Sort imports in lexicographical order
A tool to segment text based on frequencies and the Viterbi algorithm "#TheBoyWhoDied" => ['#', 'The', 'Boy', 'Who', 'Died']
A naive classifier to figure out if a sentence contains dirty words
A robust email syntax and deliverability validation library for Python 3.x.