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()
$ pymentize 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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pygments_signalflow-0.2-py2-none-any.whl (5.1 kB view details)

Uploaded Python 2

File details

Details for the file pygments_signalflow-0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for pygments_signalflow-0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 061f5b22258d8ef92c86f05f3a071e5320886b537a37a9651c53b679b6327dd2
MD5 875d53ebaf44c769f6e87b519cd6f59e
BLAKE2b-256 9eca4df1e5059012911b060afcc899adbf9e2c3f07e6f4ceb603e467e99aafbb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page