Asvar Dnone
django-templatetag-sugar is a library to make writing template tags in Django sweet. Here's an example of using: @tag(register, [Constant("for"), Variable(), Optional([Constant("as"), Name()])]): def example_tag(context, val, asvar=None): if asvar: context[asvar] = val return "" else:...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (33): django-templatetag-sugar Download |
This pure Python MySQL client provides a DB-API to a MySQL database by talking directly to the server via the binary client/server protocol. Example: import pymysql conn = pymysql.connect(host='127.0.0.1', unix_socket='/tmp/mysql.sock', user='root', passwd=None, db='mysql') # conn =...
Platforms: Mac
License: Freeware | Size: 30.72 KB | Download (37): PyMySQL Download |
Flask-Genshi is a Flask extension that allows you to easily use Genshi for templating. It knows how to render a template based on the file extension and can create Response objects with mimetype set accordingly. Installation Just grab it from PyPI with easy_install or pip, for example:...
Platforms: *nix
License: Freeware | Size: 61.44 KB | Download (45): Flask-Genshi Download |