Metadata-Version: 2.1
Name: VectorGym
Version: 0.1.2
Summary: Simple multiprocess tool for gym environments
Home-page: https://github.com/MRzNone/VectorGym
Author: Weihao Zeng
Author-email: whzeng98@gmail.com
License: MIT
Download-URL: https://github.com/MRzNone/VectorGym/archive/refs/tags/v0.1.2.tar.gz
Description: # VectorGym
        Multi-process any(most) gym environment. Automatically parallel the given gym environment using [multiprocessing](https://docs.python.org/3/library/multiprocessing.html); VectorGym forwards all properties and function \(not starting with __\) of the underlying gym to you.
        
        # Quick Start
        
        Check [this demo](https://github.com/MRzNone/VectorGym/blob/main/demo/train_simple.py) for a skeleton for training using VectorSim. It deals with only running unfinished environments during trajectory collection.
        
        Run gym environment in parallel.
        ```
        from VectorGym import VectorGym
        
        if __name__ == '__main__':
            envs = VectorGym('CartPole-v1', 2)
        
            print(envs.action_space)
            print(envs.observation_space)
        
            envs.reset()
        
            for _ in range(500):
                envs.render()
                actions = envs.action_space.sample()
                res = envs.step(actions)
                dones = [r[-2] for r in res]
        
                envs.reset(select=dones)
        
            envs.close()
        ```
        
        # Install
        ```
        git clone git@github.com:MRzNone/VectorGym.git
        cd VectorGym
        pip install -e .
        ```
        
Keywords: gym,multiprocess,parallel,simple
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
