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.3.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.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file token_env-0.2.3.tar.gz.

File metadata

  • Download URL: token_env-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 65ef6fe5f221e7d49b1223ef888bc604b1e7695a2921d4d4dd57c953ed01f095
MD5 f96f76d2375e96426b03085e242d0e18
BLAKE2b-256 c183cd88d3f6f1d2a728d96cea3eb6a0777e2d89d144547948a8ef20e5ba16e7

See more details on using hashes here.

File details

Details for the file token_env-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: token_env-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 003d8bd622ebc05392b6e788cbe80b0b1e45ce53b3a67b4f68b1f1db982b91e9
MD5 e0fb00e7db08d32d09e980d9a52fa7b4
BLAKE2b-256 8e72567240dc979f70ae113745ca36311aec02b6d70655a0a49945fa53feca71

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