Skip to main content

Pygments lexer for SignalFlow

Project description

A Pygments syntax lexer for the SignalFx SignalFlow real-time streaming analytics language.

Installation

$ 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:

$ 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):

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.1-py2-none-any.whl (5.5 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for pygments_signalflow-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 02b608c12839e608660ec2d1715a32559d0d9bb5ce8c26922d1e10e5c8933ca7
MD5 9c3ce895e8697357bd1107293c0f3b0f
BLAKE2b-256 1b4efe2610ac6d0a27ea3301061e2c05275936d1ffa9e7560a88a261e3f37cbf

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