Skip to main content

Pygments lexer for SignalFlow

Project description

pygments-signalflow
===================

A Pygments_ syntax lexer for the SignalFx_ SignalFlow_ real-time streaming
analytics language.

.. _Pygments: http://pygments.org
.. _SignalFx: https://signalfx.com
.. _SignalFlow: https://developers.signalfx.com/docs/signalflow-overview

Installation
------------

.. code::

$ pip install pygments-signalflow

Usage
-----

The ``pygments-signalflow`` package is setup to include the proper entrypoints
so that ``pygmentize`` can use the lexer out of the box:

.. code::

$ cat example.flow
data('cpu.utilization').mean().publish()
$ pygmentize example.flow # This will show in fancy colors!
data('cpu.utilization').mean().publish()

>From source
~~~~~~~~~~~

To use the lexer from source (for example with the excellent `Prompt Toolkit`_):

.. _Prompt Toolkit: https://github.com/jonathanslenders/python-prompt-toolkit

.. code:: python

import prompt_toolkit
import pygments
import pygments_signalflow

...

prompt_toolkit.shortcuts.prompt('> ',
lexer=prompt_toolkit.layout.lexers.PygmensLexer(
pygments_signalflow.SignalFlowLexer()))


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygments-signalflow, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size pygments_signalflow-0.3-py2.py3-none-any.whl (5.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page