semvec/pypi-packages huggingface dataset:
docker-clean 1.0.2
A command to clean docker images, containers, networks and volumes.
License: Apache 2.0
Keywords: docker,python

Overview
========

.. image:: https://scrutinizer-ci.com/g/stakkr-org/docker-clean/badges/quality-score.png?b=master
   :target: https://scrutinizer-ci.com/g/stakkr-org/docker-clean
.. image:: https://travis-ci.com/stakkr-org/docker-clean.svg?branch=master
   :target: https://travis-ci.com/stakkr-org/docker-clean
.. image:: https://img.shields.io/pypi/l/docker-clean.svg
   :target: https://pypi.python.org/pypi/docker-clean
.. image:: https://api.codeclimate.com/v1/badges/0d084cbb66933be59317/maintainability
   :target: https://codeclimate.com/github/stakkr-org/docker-clean/maintainability
   :alt: Maintainability
.. image:: https://api.codeclimate.com/v1/badges/0d084cbb66933be59317/test_coverage
   :target: https://codeclimate.com/github/stakkr-org/docker-clean/test_coverage
   :alt: Test Coverage


Docker-Clean
============

Command line tool to clean docker containers, images, volumes and networks
that are not in use currently (started).


.. code:: bash

    Usage: docker-clean [OPTIONS]

      Clean Docker containers, images, volumes and networks that are not in use

    Options:
      -f, --force                           Do it
      -c, --containers / --no-containers    Remove containers
      -i, --images / --no-images            Remove images
      -V, --volumes / --no-volumes          Remove volumes
      -n, --networks / --no-networks        Remove networks
      --help                                Show this message and exit.



Development
===========

Setup your env
--------------

To develop, you have to create a virtual environment :

.. code:: bash

    $ git clone git@github.com:stakkr-org/docker-clean.git docker-clean
    $ cd docker-clean
    $ python3 -m venv venv
    $ source venv/bin/activate
    # For Windows use "venv\Scripts\activate"


Then install docker-clean and its dependencies :

.. code:: bash

    $ python -m pip install --upgrade pip
    $ python -m pip install -e .
    $ python -m pip install -r requirements-dev.txt


Run Tests
---------

.. code:: bash

    $ py.test
gym-tool-use 1.0.0
Gym tool use environments.
License: Apache 2.0
Keywords: gym,pycolab,reinforcement-learning,tool-use

# Gym Tool Use

[`gym`](http://gym.openai.com/docs/) tool use environments.

<hr/>

```sh
$ pip install gym-tool-use
```

# Usage

```python
import gym_tool_use  # import to register gym envs
env = gym.make("TrapTube-v0")
observation = env.reset()
action = env.action_space.sample()
observation_next, reward, done, info = env.step(action)
image = env.render(mode="rgb_array")  # also supports mode="human"
```

# Environments

The following environments are registered:

- `"TrapTube-v0"` (base task)
- `"PerceptualTrapTube-v0"`
- `"StructuralTrapTube-v0"`
- `"SymbolicTrapTube-v0"`
- `"PerceptualSymbolicTrapTube-v0"`
- `"StructuralSymbolicTrapTube-v0"`
- `"PerceptualStructuralTrapTube-v0"`
- `"PerceptualStructuralSymbolicTrapTube-v0"`

# Baselines

Baseline implementations here: https://github.com/fomorians/tool-use

# Development

Development is started with `pipenv`.

```sh
$ pipenv install
$ pipenv shell
```
gym-pycolab 1.0.0
Gym interface for pycolab games.
License: Apache 2.0
Keywords: gym,pycolab,reinforcement-learning

# Gym PyColab

[`gym`](http://gym.openai.com/docs/) interface for [`pycolab`](https://github.com/deepmind/pycolab) games.

<hr/>

<p align="center">
  <p align="center">
    <img src="extraterrestrial_marauders.gif" alt="Extraterrestrial Marauders">
  </p>
  <p align="center"><i>Extraterrestrial Marauders</i></p>
</p>

```sh
$ pip install gym-pycolab
```

# API

## Example

Inherit from `gym_pycolab.PyColabEnv` to make a `gym.Env` version. Also see [pycolab_games.py](gym_pycolab/pycolab_games.py) for more examples.

```python
import gym_pycolab
from gym import spaces

class MyGameEnv(gym_pycolab.PyColabEnv):
    """A pycolab game env."""

    def __init__(self,
                 max_iterations=10,
                 default_reward=-1.):
        super(MyGameEnv, self).__init__(
            max_iterations=max_iterations,
            default_reward=default_reward,
            action_space=spaces.Discrete(4))

    def make_game(self):
        return my_game

    def make_colors(self):
        return {'#': (0, 0, 255)}

env = MyGameEnv()
state = env.reset()
state, reward, done, info = env.step(0)
```

# Games and Envs

Includes most of the pycolab example games (with `gym.make(game)` or `gym_pycolab.{game}Env(...)`):

+ `Ordeal-v0` ([ordeal](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/ordeal.py))
+ `WarehouseManager-v{0,1,2}` ([warehouse_manager](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/warehouse_manager.py))
+ `FluvialNatation-v0` ([fluvial_natation](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/fluvial_natation.py))
+ `ExtraterrestrialMarauders-v0` ([extraterrestrial_marauders](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/extraterrestrial_marauders.py))
+ `ShockWave-v{0,1}` ([shockwave](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/shockwave.py))
+ `Aperture-v{0,1,2}` ([aperture](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/aperture.py))
+ `Apprehend-v0` ([apprehend](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/apprehend.py))
+ `BetterScrollyMaze-v{0,1,2}` ([better_scrolly_maze](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/better_scrolly_maze.py))
+ `ChainWalk-v0` ([classics/chain_walk](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/classics/chain_walk.py))
+ `CliffWalk-v0` ([classics/cliff_walk](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/classics/cliff_walk.py))
+ `FourRooms-v0` ([classics/four_rooms](https://github.com/deepmind/pycolab/blob/master/pycolab/examples/classics/four_rooms.py))

## Running an Example

Rendering the `ExtraterrestrialMarauders-v0` with random actions:

```sh
$ python -m gym_pycolab.pycolab_games --game extraterrestrial_marauders
```

# Development

Development is started with `pipenv`.

```sh
$ pipenv install
$ pipenv shell
```

# Testing

```sh
$ python -m gym_pycolab.pycolab_env_test
```