An open API service indexing awesome lists of open source software.

https://github.com/augustunderground/hym

HTTP API for GACE and ACE.
https://github.com/augustunderground/hym

Last synced: 10 months ago
JSON representation

HTTP API for GACE and ACE.

Awesome Lists containing this project

README

          

# HYM

HTTP Adapter for [gym](https://www.gymlibrary.ml/#),
[GAC²E](https://github.com/AugustUnderground/gace)
and [AC²E](https://github.com/matthschw/ace).

## Install

```bash
$ pip install git+https://github.com/augustunderground/hym.git
```

## Gym

```bash
$ gym-http --host --port \
--env --var --num
```

Reset:

```bash
$ curl -X GET :/-v/reset
```

Step from file:

```bash
$ curl -d '@examples/gym-action.json' -H "Content-Type: application/json" \
-X POST :/-v/step
```

Action Space:

```bash
$ curl -X GET :/-v/action_space
```

Observation Space:

```bash
$ curl -X GET :/-v/observation_space
```

Random Action:

```bash
$ curl -X GET :/-v/random_action
```

Take random step:

```bash
$ curl -X GET :/-v/random_step
```

## GAC²E

```bash
$ gace-http --host --port \
--env --pdk \
--var --num
```

Reset:

```bash
$ curl -X GET :/gace:--v/reset
```

Step from file:

```bash
$ curl -d '@examples/gace-action.json' -H "Content-Type: application/json" \
-X POST :/gace:--v/step
```

Action Space:

```bash
$ curl -X GET :/gace:--v/action_space
```

Observation Space:

```bash
$ curl -X GET :/gace:--v/observation_space
```

Random Action:

```bash
$ curl -X GET :/gace:--v/random_action
```

Take random step:

```bash
$ curl -X GET :/gace:--v/random_step
```

View Target:

```bash
$ curl -X GET :/gace:--v/target
```

## HAC²E

```bash
$ ace-http --host --port --env --pdk \
--num
```

From command:

```bash
$ curl -d '{"Wd":2e-6}' -H "Content-Type: application/json" \
-X POST :/-/sim
```

From file:

```bash
$ curl -d '@sizing.json' -X POST :/-/sim
```

Get last result without simulating:

```bash
$ curl -X GET :/-/performance
```

Get current sizing

```bash
$ curl -X GET :/-/sizing
```

Get Performance Parameters:

```bash
$ curl -X GET :/-/p-params
```

Get Sizing Parameters:

```bash
$ curl -X GET :/-/s-params
```

Get Initial Sizing:

```bash
$ curl -X GET :/-/init
```

Get Random Sizing:

```bash
$ curl -X GET :/-/rng
```