semvec/pypi-packages huggingface dataset:
gputree 0.1.0
Remote GPUs Monitoring.
License: MIT
Requires Python: >=3.5.0


# `gputree`

Hosts configuration
---

**PATH**

If no host is provided through the command line interface, `gputree` will look for a configuration file. By default, it looks for `gputree/config.yml` file in `$XDG_CONFIG_HOME` or `~/.config` directory. You can define a custom path to find the gputree configuration file by setting the `$GPUTREE_CONFIG_FILE` environement variable.

```bash
export GPUTREE_CONFIG_FILE=/path/to/gputree/config.yml`
```

**CONTENT**

In the configuration file, list your default hosts to look at under the `hosts` key. You can specify hosts in two ways :

1. Define a host with a unique name as key, and set its address with a user name as follows:
```yml
my-gpu:
    hostname: 0.0.0.0
    user: my.username
```

2. Refer to a host defined in your `~/.ssh/config` file if exists:
```yml
from-ssh-config:
    - gpu-1
    - gpu-2
```

**EXAMPLE**

Full `gputree` configuration file example:

```yml
hosts:
  my-gpu:
    hostname: 0.0.0.0
    user: my.username

  from-ssh-config:
    - gpu-1
    - gpu-2
```
pytest-lazy-fixture 0.6.3
It helps to use fixtures in pytest.mark.parametrize
License: MIT

pytest-lazy-fixture |travis-ci| |appveyor| |pypi|
=================================================

Use your fixtures in ``@pytest.mark.parametrize``.

Installation
------------

.. code-block:: shell

    pip install pytest-lazy-fixture

Usage
-----

.. code-block:: python

    import pytest

    @pytest.fixture(params=[1, 2])
    def one(request):
        return request.param

    @pytest.mark.parametrize('arg1,arg2', [
        ('val1', pytest.lazy_fixture('one')),
    ])
    def test_func(arg1, arg2):
        assert arg2 in [1, 2]


Also you can use it as a parameter in ``@pytest.fixture``:

.. code-block:: python

    import pytest

    @pytest.fixture(params=[
        pytest.lazy_fixture('one'),
        pytest.lazy_fixture('two')
    ])
    def some(request):
        return request.param

    @pytest.fixture
    def one():
        return 1

    @pytest.fixture
    def two():
        return 2

    def test_func(some):
        assert some in [1, 2]

Please see `tests <https://github.com/TvoroG/pytest-lazy-fixture/blob/master/tests/test_lazyfixture.py>`_ for more examples.

Contributing
------------

Contributions are very welcome. Tests can be run with ``tox``.

License
-------

Distributed under the terms of the ``MIT`` license,
``pytest-lazy-fixture`` is free and open source software

Issues
------

If you encounter any problems, please ``file an issue`` along with a
detailed description.

.. |travis-ci| image:: https://travis-ci.org/TvoroG/pytest-lazy-fixture.svg?branch=master
    :target: https://travis-ci.org/TvoroG/pytest-lazy-fixture
.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/TvoroG/pytest-fixture-mark?branch=master&svg=true
    :target: https://ci.appveyor.com/project/TvoroG/pytest-fixture-mark
.. |pypi| image:: https://badge.fury.io/py/pytest-lazy-fixture.svg
    :target: https://pypi.python.org/pypi/pytest-lazy-fixture/