various python utils
created by Noah Coad on 2013-06-23
I'm a complete newb to python so bear with
- py3 is an alias to python 3 runtime and py2 is an alias to python 2 runtime
- .btm files are "Batch to Memory" files run by the Take Command Windows command interpreter, and are mostly ancillary support until I figure out how to do more with python
command line app
calls google search spell check from command line
example: py3 spell "john sculzi"
outputs: john scalzi
py3 -c "from urltools import Google; import sys; print (Google().spell(sys.argv))"
uses a normal google search page, meant for casual personal use only, for a supported technique, use spelling content module api (which requires and api key). The SOAP spellcheck api only does one word at a time instead of considering the entire search term.
various helpful url/html/link routines for stuff link downloading web pages, using google, and interacting with my blog
for working with the Windows clipboard, getting/setting HTML fragments or text
runs a python script with the clipboard contents as the input if an input isn't specified, and write the first line of standard output back to the clipboard
assumes (or edit file): py3 is an alias to python 3 runtime, scripts are in python 3, and scripts are in c:\code\py
pyclip <py sciprt w/out extension> [<optional input>]
does a google spell check against clipboard contents and puts the result back into the clipboard
pyclip spell "john sculzi"
does a google spell check against "john sculzi" and puts the result back into the clipboard
useful for launching from a command launcher, like SlickRun