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
Release history Release notifications | RSS feed
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
File details
Details for the file pygments_signalflow-0.1-py2-none-any.whl
.
File metadata
- Download URL: pygments_signalflow-0.1-py2-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02b608c12839e608660ec2d1715a32559d0d9bb5ce8c26922d1e10e5c8933ca7 |
|
MD5 | 9c3ce895e8697357bd1107293c0f3b0f |
|
BLAKE2b-256 | 1b4efe2610ac6d0a27ea3301061e2c05275936d1ffa9e7560a88a261e3f37cbf |