semvec/pypi-packages huggingface dataset:
pygments-pprint-sql 0.1.0
Pretty format your SQL queries for easier reading.
License: BSD

SQL Pretty Printer for Pygments
===============================

Use this Pygments plugin alongside your usual SQL lexer and any output
formatter to have your SQL queries reformatted for improved readability.

This filter modifies the stream of tokens that Pygments produces by
inserting whitespace at key points to make the structure of the query
more obvious.

Usage
-----

For programmatic usage, add the filter to your lexer before highlighting::

    from pygments import highlight, lexers, formatters
    from pygments_pprint_sql import SqlFilter

    lexer = lexers.MySqlLexer()
    lexer.add_filter(SqlFilter())
    print highlight(text, lexer, formatters.TerminalFormatter())

This plugin is also compatible with the pygmentize CLI tool, via the -F option::

    pygmentize -F pprint-sql script.sql

Notes
-----

DDL statements like CREATE and ALTER are left unformatted because formatting
them reliably would be a significant undertaking, especially for all flavours
of SQL.

I've done my testing with queries from an application I work on that
uses MySQL. In general it should transfer nicely to other RDBMS but I
can make no guarantees.

Patches always welcome, provided they come with test cases!

Alternatives
------------

  * `SQLParse`_ is a standalone parser and formatter package with some nice
    options for customizing how formatting occurs.

.. _SQLParse: https://github.com/andialbrecht/sqlparse
gaffer 0.5.2
simple system process manager
License: BSD

**NOTICE**: Since the 2013/05/25, a deep rewrite on the gaffer code is
in progress.

**2013-10-29 - 0.5.1 released.**

> slow progress on the new version. Have been distracted by some due
> work. The new design is in place now and the new branch will be
> created soon,




# Gaffer


Control, Watch and Launch your applications and jobs over HTTP.

Gaffer is a set of Python modules and tools to easily maintain and
interact with your applications or jobs launched on different machines over
HTTP and websockets.

It promotes distributed and decentralized topologies without single points of
failure, enabling fault tolerance and high availability.

## Features

- RESTful HTTP Api
- Websockets and [SOCKJS](http://sockjs.org) support to interact with a gaffer node from any browser or SOCKJS client.
- Framework to manage and interact your applications and jobs on
- differerent machines
- Server and command-line tools to manage and interract with your processes
- manages topology information. Clients query gaffer_lookupd to discover  gaffer nodes for a specific job or application.
- Possibility to interact with STDIO and PIPES to interact with your
 applications and processes
- Subscribe to process statistics per process or process templates and get them in quasi RT.
- Procfile applications support but also JSON config support.
- Supervisor-like features.
- Fully evented. Use the libuv event loop using the [pyuv library](http://pyuv.readthedocs.org)
- Flapping: handle cases where your processes crash too much
- Easily extensible: add your own endpoint, create your client, embed gaffer in your application, ...
- Compatible with python 2.7x, 3.x

## Documentation

http://gaffer.readthedocs.org

## Getting Started


http://gaffer.readthedocs.org/en/latest/getting-started.html

## Installation


Gaffer requires Python superior to 2.6 (yes Python 3 is supported)

To install gaffer using pip you must make sure you have a
recent version of distribute installed:

    $ curl -O http://python-distribute.org/distribute_setup.py
    $ sudo python distribute_setup.py
    $ easy_install pip


To install from source, run the following command:

    $ pip install git+https://github.com/benoitc/gaffer.git


From pypi:

    $ pip install gaffer

## Build status

<a href="https://travis-ci.org/benoitc/gaffer"><img src="https://travis-ci.org/benoitc/gaffer.png?branch=master" alt="Build Status" /></a>


## License

gaffer is available in the public domain (see UNLICENSE). gaffer is also
optionally available under the MIT License (see LICENSE), meant
especially for jurisdictions that do not recognize public domain
works.