A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| apply plugin: 'maven' | |
| group = 'de.sample' | |
| version = '0.1-SNAPSHOT' | |
| description = 'My cool tool ...' | |
| task customZip(type: Zip) { | |
| from ('.') { |
| #!/usr/bin/env bash | |
| # Create a page in the current dir | |
| echo "My Test Page" > test.html | |
| # Start server | |
| python -m SimpleHTTPServer 8000 &> /dev/null & | |
| pid=$! | |
| # Give server time to start up |
This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
| #!/usr/bin/env python | |
| """ | |
| mocking requests calls | |
| """ | |
| import mock | |
| import unittest | |
| import requests | |
| from requests.exceptions import HTTPError |
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.