Gymnasium grid environment with random tokens
Project description
token-env
This repo implements a single agent Gymnasium environment with tokens.
Installation
pip install token-env
Usage
import token_env
import gymnasium as gym
if __name__ == '__main__':
env = gym.make("TokenEnv-v0")
obs, info = env.reset()
done = False
i = 0
while not done:
i += 1
action = env.action_space.sample()
obs, reward, terminated, truncated, info = env.step(action)
done = terminated or truncated
env.close()
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
token_env-0.2.2.tar.gz
(8.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file token_env-0.2.2.tar.gz.
File metadata
- Download URL: token_env-0.2.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e84ded9772b5938a36284848d77b13d4bc3947b2b7f3771ff6aa4e2c75b9a2c
|
|
| MD5 |
92fd5b1de6441600b789a3286f652326
|
|
| BLAKE2b-256 |
4ded082519e2ce22db573f4a5b6b1be772bc13ff4f6a70d955164068cff12e74
|
File details
Details for the file token_env-0.2.2-py3-none-any.whl.
File metadata
- Download URL: token_env-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b35fe3e91d64f0f4f453e3df0599e71bfde113be7fac7c73d6dbf0e0b2c45d50
|
|
| MD5 |
74386f6319400259d140f249d2864dfc
|
|
| BLAKE2b-256 |
3ab3f61c4282ddaac4a9f4991301c5197262c8b47b83c96ad70d182cd9117eae
|