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
| <div class="check-container"><span id="check"></span></div> | |
| {{#Question}} | |
| <p>{{Question}}</p> | |
| {{/Question}} | |
| {{#Image}} | |
| <p class="image">{{Image}}</p> | |
| {{/Image}} |
| ########################################### | |
| # IMPORTANT NOTE: | |
| # | |
| # As of asuswrt-merlin 380.67 Beta, you | |
| # can now configure SSL certificates from | |
| # the Webui, making these instructions | |
| # unnecessary. | |
| ########################################### | |
| import urllib2, urlparse, sys, webbrowser | |
| itags = {'45': 'webm_720p', | |
| '44': 'webm_480p', | |
| '43': 'webm_360p', | |
| '38': 'mp4_3072p', | |
| '37': 'mp4_1080p', | |
| '36': 'phone_mp4_240p', | |
| '35': 'flv_480p', | |
| '34': 'flv_360p', |
| import clipboard | |
| import console | |
| import requests | |
| import json | |
| import keychain | |
| import webbrowser | |
| from datetime import datetime | |
| argument_index = 1 |
| import os, cmd, sys, re, glob, os.path, shutil, zipfile, tarfile, gzip | |
| # Credits | |
| # | |
| # The python code here was written by pudquick@github | |
| # | |
| # License | |
| # | |
| # This code is released under a standard MIT license. | |
| # |
| # File Transfer for Pythonista | |
| # ============================ | |
| # This script allows you to transfer Python files from | |
| # and to Pythonista via local Wifi. | |
| # It starts a basic HTTP server that you can access | |
| # as a web page from your browser. | |
| # When you upload a file that already exists, it is | |
| # renamed automatically. | |
| # From Pythonista's settings, you can add this script | |
| # to the actions menu of the editor for quick access. |