Skip to main content

rddlgym: A toolkit for working with RDDL domains in Python3.

Project description

# rddlgym [![License](https://img.shields.io/aur/license/yaourt.svg)](https://github.com/thiagopbueno/rddlgym/blob/master/LICENSE)


A toolkit for working with RDDL domains in Python3.

# Quickstart

```text
$ pip3 install rddlgym
```

# Usage

rddlgym can be used as a standalone script or programmatically.


## Script mode

```text
$ rddlgym --help
usage: rddlgym [-h] [--rddl RDDL] [-v] {list,info,show}

rddl-gym: A toolkit for working with RDDL domains in Python3.

positional arguments:
{list,info,show} available commands

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


## Programmatic mode

```python
import rddlgym

model_id = 'Reservoir-8'

# Get raw RDDL model
raw = rddlgym.make(model_id, mode=rddlgym.RAW)
print(raw)

# Get a RDDL parser
parser = rddlgym.make(model_id, mode=rddlgym.AST)

# Get a RDDL2TensorFlow compiler
compiler = rddlgym.make(model_id, mode=rddlgym.SCG)
```


# License

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

rddlgym 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.

rddlgym is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with rddlgym. If not, see http://www.gnu.org/licenses/.

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

rddlgym-0.5.1.tar.gz (20.8 kB view hashes)

Uploaded Source

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