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
| import sys | |
| import argparse | |
| from getpass import getpass | |
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| def navigate(card_number, user_name, passkey): | |
| try: | |
| browser = webdriver.Firefox() |
| class DisableMigrations(object): | |
| def __contains__(self, item): | |
| return True | |
| def __getitem__(self, item): | |
| return "notmigrations" | |
| MIGRATION_MODULES = DisableMigrations() |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import os | |
| import sys | |
| import subprocess | |
| ext = os.environ['MARKED_EXT'].lower() |