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.
- Host: GitHub
- URL: https://github.com/augustunderground/hym
- Owner: AugustUnderground
- License: mit
- Created: 2022-02-14T17:11:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-12T16:17:47.000Z (about 4 years ago)
- Last Synced: 2025-03-06T16:36:52.931Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```