sekai

API reference

Generated from the docstrings in the source. Everything listed is importable from the top-level sekai package unless the page says otherwise.

Page Contents
Core Env, Wrapper and its semantic subclasses, MultiAgentEnv, result dataclasses
Spaces Box, Discrete, MultiDiscrete, MultiBinary, Dict, Tuple, Sequence, MaskedBox and sekai.spaces utilities
Wrappers every single-env wrapper in sekai.wrappers
Vector SyncVecEnv, AsyncVecEnv, ProcVecEnv, NativeVecEnv, results and vector wrappers
Registry register, make, make_vec, EnvSpec, …
Environments built-in environment classes (and native vector versions), renderers and price simulators in sekai.envs
Finance the sekai.finance toolkit: market data, samplers, simulators, features, costs, accounts, rewards, metrics, universe slots, order book
Rendering sekai.rendering: Renderer, Canvas, RecordFrames, save_gif, save_video
Statistics EpisodeStats and trackers
Utilities check_env, RunningMeanStd, ExponentialMovingStats, action-mask helpers, seeding helpers
Compatibility sekai.compat: the gymnasium and PettingZoo bridges
Errors SekaiError and its subclasses
CLI sekai.cli

Names starting with an underscore are private and not covered by semantic-versioning guarantees. Env._set_rng() is the one exception: it is the documented way for environments to seed themselves.