Python Bytes   /     #31 You should have a change log

Description

Brian #1: TinyMongoLike MongoDB, but built on top of TinyDB.Even runs on a Raspberry Pi, according to StephenMichael #2: A dead simple Python data validation libraryvalidus.isemail('someone@example.com')Validation functions include:isrgbcolor()isphone()isisbn()isipv4()isint()isfloat()isslug()isuuid() Requires Python 3.3+Brian #3: PuDBIn episode 29, https://pythonbytes.fm/29, I talked about launching pdb from pytest failures.@kidpixo pointed out that PuDB was a better debugger and can also be launched from pytest failures.Starting pudb from pytest failed tests (from docs): pytest --pdbcls pudb.debugger:Debugger --pdb --capture=noUsing pytest-pudb plugin to do the same: pytest --pudbMichael #4: Analyzing Django requirement files on GitHubFrom the pyup.io guysDjango is the most popular Python web framework. It is now almost 12 years old and is used on all kinds of different projects.Django developers pin their requirements (64%): Pinned or freezed requirements (Django==1.8.12) make builds predictable and deterministic.Django 1.8 is the most popular major release (24%) A bit worrisome are the 1.9 (14%), 1.7 (13%) and 1.6 (13%) releases on the second, third and fourth place. All of them are no longer receiving security updates, 1.7 and 1.6 went EOL over 2 years ago.Yikes: Only 2% of all Django projects are on a secure release Among all projects, more than 60% use a Django release with one or more known security vulnerabilities. Only 2% are using a secure Django release.On the remaining part of more than 30% it's unclear what exactly is going to be installed. That's because the Django release is either unpinned or has a range.Brian #5: Changelogshttp://keepachangelog.comhttps://github.com/hawkowl/towncrierMichael #6: Understanding Asynchronous Programming in Pythonby Doug Farrell via Dan Bader’s siteA synchronous program is what most of us started out writing, and can be thought of as performing one execution step at a time, one after another.Example: A web server Could be synchronousCould be fully optimized butYou’re at best still waiting on network IO back to all the web clientsThe Real World is Asynchronous: Kids are a long running task with high priority, superseding any other task we might be doing, like the checkbook or laundry.Example 1: Synchronous Programming (using queuing)Example 2: Simple Cooperative Concurrency (using generators)Example 3: Cooperative Concurrency With Blocking Calls (same, but with slow operations)Example 4: Cooperative Concurrency With Non-Blocking Calls (gevent)Example 5: Synchronous (Blocking) HTTP DownloadsExample 6: Asynchronous (Non-Blocking) HTTP Downloads With geventExample 7: Asynchronous (Non-Blocking) HTTP Downloads With TwistedExample 8: Asynchronous (Non-Blocking) HTTP Downloads With Twisted CallbacksErrata/Giving Credit:Also in episode 29, https://pythonbytes.fm/29, I talked about pipcache as an alias for pip download. I think I said the author of a blog post contacted me. It wasn’t him. It was @kidpixo. Sorry kidpixo, keep the ideas coming.For fun: Python Private Methodshttp://turnoff.us/geek/python-private-methods/Our newsBeta 3 of Python Testing with pytest should come out this week with Chapter 7: Using pytest with other tools, which includes using it with pdb, coverage.py, mock, tox, and Jenkins. Next beta will be the appendices, including a clean up and rewrite of pip and venv appendices, plus a plugin sampler pack, and a tutorial on packaging.Thanks to everyone who has submitted Errata. Finished recording RESTful and HTTP Services in Pyramid AND MongoDB for Python Developers. Add your email address at https://training.talkpython.fm to get notified upon release of each.

Subtitle
Duration
00:21:50
Publishing date
2017-06-21 08:00
Link
https://pythonbytes.fm/episodes/show/31/you-should-have-a-change-log
Contributors
  Michael Kennedy
author  
Enclosures
https://pythonbytes.fm/episodes/download/31/you-should-have-a-change-log.mp3
audio/mpeg