Jan 15, 2015 Tag: Python
Ongoing attempt to collect links and documentation about TYPO3. New links will go here first and may later be outsourced into a separate post. Will be updated as needed.
Updated on Oct 30, 2018
Navigate this page:
Kivy - Open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. Not looking native.
Kyle Purdon, realpython: Comparing Python Command-Line Parsing Libraries – Argparse, Docopt, and Click - plus: How to create entry-points for install routines
CLI and REST in one: Hug - embrace the APIs of the future
Drastically simplify API development over multiple interfaces. With hug, design and develop your API once, then expose it however your clients need to consume it. Be it locally, over HTTP, or through the command line - hug is the fastest and most modern way to create APIs on Python3.
General
pymysqldb
2018-09-21:
pipenv shell
python3 -m pip install PyMySQL
DB-API 2.0: http://www.python.org/dev/peps/pep-0249MySQL Reference Manuals: http://dev.mysql.com/doc/MySQL client/server protocol: http://dev.mysql.com/doc/internals/en/client-server-protocol.htmlPyMySQL mailing list: https://groups.google.com/forum/#!forum/pymysql-users
Module by Ka-Ping Yee at Github, lightning talk at PyCon US 2013:
pip install -U q
tail -f /tmp/q
Getting Started with IPython Notebook Video - good!
The IPython Notebook Revolution Video - looks promising!
In my case:
#! /bin/bash
# run-ipython-notebook.sh, mb, 2015-02-04, 2015-02-04
# to run this: ~/Apps/run-ipython-notebook.sh
pushd $HOME/Apps >/dev/null
ipython notebook --ipython-dir="${HOME}/IPython-Notebooks" &
popd >/dev/null
<<<<<<< Updated upstream <<<<<<< Updated upstream
>>>>>>> Stashed changes
Pythontutor: VISUALIZE the execution of Python, Java, JavaScript, and TypeScript code !!!
Online Python Tutor is a free educational tool created by Philip Guo !!! that helps students overcome a fundamental barrier to learning programming: understanding what happens as the computer executes each line of a program’s source code.
Using this tool, a teacher or student can write Python, Java, JavaScript, and TypeScript programs in the Web browser and visualize what the computer is doing step-by-step as it executes those programs.
Over one million people in over 165 countries have used Online Python Tutor to understand and debug their programs, often as a supplement to textbooks, lecture notes, and online programming tutorials.
Dan Bader about “The quest for the “definitive Python style guide”:
One of the things I like the most about Python is it’s high readability.
I strongly believe that “code is communication”
And just like there are generally accepted stylistic rules & guidelines for written communication in English, there are code style guides for writing Python. Sticking to these guidelines is one honking great idea. They make it easier for development teams to work together. And even if you’re working on a project by yourself, they’ll help you make changes in the future.
James Bowman: http://www.excamera.com/sphinx/article-islast.html
islast: handling the last element of an iterator
Doing something special for the last element of an iterator is a fairly common pattern. I needed it for the Python Jtag tools, so made this small wrapper …
def islast(o): it = o.__iter__() e = it.next() while True: try: nxt = it.next() yield (False, e) e = nxt except StopIteration: yield (True, e) break # example # for i in islast(range(4)): print i
| docs | well written tutorial | blog post - with helpful pointers |
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.