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
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 Distribution
wdl_parsers-0.2.0.tar.gz
(142.2 kB
view details)
Built Distribution
wdl_parsers-0.2.0-py3-none-any.whl
(152.4 kB
view details)
File details
Details for the file wdl_parsers-0.2.0.tar.gz
.
File metadata
- Download URL: wdl_parsers-0.2.0.tar.gz
- Upload date:
- Size: 142.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2014e3ef69547550cc8504141177091d37fa8746ff67dcaee229f90357d2ecd |
|
MD5 | 2c893d9e20600b962083fbe361c999d6 |
|
BLAKE2b-256 | e4ca10ff80ffaa124d97e0bbd6f2827a7f160391c729fef38eb00f27116cd90c |
File details
Details for the file wdl_parsers-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: wdl_parsers-0.2.0-py3-none-any.whl
- Upload date:
- Size: 152.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e251b1639aef2cfb47c72e503c610432a6d7ce2efb8226acc9185103321aec3 |
|
MD5 | 8b07df0e85d6d8980671003a80bb24bb |
|
BLAKE2b-256 | 2450c4f76ed78795b611782d35cace6b173d7dd1851ac69f9b15732439bcabe8 |