Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

RDDL lexer/parser in Python3.

Project description

# pyrddl [![Build Status](]( [![Documentation Status](]( [![License](](

RDDL lexer/parser in Python3.

# Quickstart

$ pip3 install pyrddl

# Usage

## Script mode

The ``pyrddl`` script provides ways to parse and inspect RDDL files
from the command line.

$pyrddl --help

usage: pyrddl [-h] [-v] rddl

RDDL lexer/parser in Python3.

positional arguments:
rddl RDDL filepath

optional arguments:
-h, --help show this help message and exit
-v, --verbose verbosity mode

## Programmatic mode

The ``pyrddl`` package provides an API for integrating RDDL parser
with your own Python package/project.

from pyrddl.parser import RDDLParser

# read RDDL file
with open(filepath, 'r') as file:
rddl =

# buid parser
parser = RDDLParser()

# parse RDDL
model = parser.parse(rddl) # AST

# License

Copyright (c) 2018-2019 Thiago Pereira Bueno All Rights Reserved.

pyrddl is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.

pyrddl is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with pyrddl. If not, see

Project details

Download files

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

Files for pyrddl, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size pyrddl-0.1.9.tar.gz (31.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page