Skip to main content

WDL parsers for Python.

Project description

wdl-parsers

A Python package that provides the generated Hermes and Antlr4 WDL parsers for Python.

Version Parser(s) Module
draft-2 Hermes draft_2
v1.0 Antlr4 v1_0
v1.1 Antlr4 v1_1
development Antlr4 development

Installation

From the CLI:

pip install wdl_parsers

Usage

# the following modules are available:
import wdl_parsers.draft_2
import wdl_parsers.v1_0
import wdl_parsers.v1_1
import wdl_parsers.development
# draft-2 hermes parser
from wdl_parsers.draft_2 import wdl_parser

# 1.0 antlr4 parser
from wdl_parsers.v1_0.WdlV1Lexer import WdlV1Lexer
from wdl_parsers.v1_0.WdlV1Parser import WdlV1Parser

# 1.1 antlr4 parser
from wdl_parsers.v1_1.WdlV1_1Lexer import WdlV1_1Lexer
from wdl_parsers.v1_1.WdlV1_1Parser import WdlV1_1Parser

# development antlr4 parser
from wdl_parsers.development.WdlLexer import WdlLexer
from wdl_parsers.development.WdlParser import WdlParser

# parse WDL files with these parsers
# ...

License

The grammar files come from openwdl/wdl under the BSD 3-Clause "New" or "Revised" License.

Project details


Download files

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

Source Distribution

wdl_parsers-0.2.0.tar.gz (142.2 kB view hashes)

Uploaded Source

Built Distribution

wdl_parsers-0.2.0-py3-none-any.whl (152.4 kB view hashes)

Uploaded Python 3

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