Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

token_env-0.2.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for token_env-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8e84ded9772b5938a36284848d77b13d4bc3947b2b7f3771ff6aa4e2c75b9a2c
MD5 92fd5b1de6441600b789a3286f652326
BLAKE2b-256 4ded082519e2ce22db573f4a5b6b1be772bc13ff4f6a70d955164068cff12e74

See more details on using hashes here.

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

Hashes for token_env-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b35fe3e91d64f0f4f453e3df0599e71bfde113be7fac7c73d6dbf0e0b2c45d50
MD5 74386f6319400259d140f249d2864dfc
BLAKE2b-256 3ab3f61c4282ddaac4a9f4991301c5197262c8b47b83c96ad70d182cd9117eae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page