Index / Computing / Software and applications development and analysis
Coding Environment
Space · openenv/coding_env
Execute Python code actions in a sandbox and read stdout, stderr and the exit code.
Good for
- code-execution infrastructure testing
- OpenEnv API demo
Reward
- How it is scored
- Not stated
- Signal
- Not stated
The card does not define a reward.
How to run it
1. From the cardcopied from the publisher's own instructions
from coding_env import CodeAction, CodingEnv
with CodingEnv(base_url="http://localhost:8000").sync() as client:
result = client.reset()
result = client.step(CodeAction(code="print('Hello!')"))2. Run the Space locallyevery Space is a Docker image or app you can clone
git clone https://huggingface.co/spaces/openenv/coding_env cd coding_env
The Space also runs live on the Hub; open it to see the API it serves.
Framework documentation: OpenEnv. Needs: Docker.