Metadata-Version: 2.1
Name: pyarchops-helpers
Version: 0.0.5
Summary: Install All helpers
Home-page: https://github.com/pyarchops/helpers
Author: Azul
Author-email: pyarchops@azulinho.com
License: MIT license
Keywords: pyarchops_helpers
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: bpython (==0.17.1)
Requires-Dist: bumpversion (==0.5.3)
Requires-Dist: coverage (==4.5.2)
Requires-Dist: fabric3 (<2.0)
Requires-Dist: flake8 (==3.6.0)
Requires-Dist: jedi (==0.13.2)
Requires-Dist: ipython (==7.2.0)
Requires-Dist: mypy (==0.650)
Requires-Dist: netifaces (==0.10.7)
Requires-Dist: paramiko (==2.4.2)
Requires-Dist: pylint (==2.2.2)
Requires-Dist: pytest (==4.0.2)
Requires-Dist: pytest-runner (==4.2)
Requires-Dist: pytest-cov (==2.6.0)
Requires-Dist: python-build (==0.2.13)
Requires-Dist: rope (==0.11.0)
Requires-Dist: ropevim (==0.7.0)
Requires-Dist: Sphinx (==1.8.3)
Requires-Dist: tmuxp (==1.4.2)
Requires-Dist: twine (==1.12.1)
Requires-Dist: watchdog (==0.9.0)
Requires-Dist: wheel (==0.32.3)
Requires-Dist: epdb (==0.15.1)

=====================
pyArchOps/helpers
=====================


.. image:: https://badge.fury.io/py/pyarchops-helpers.svg
        :target: https://pypi.python.org/pypi/pyarchops-helpers

.. image:: https://img.shields.io/gitlab/pipeline/gitlab-org/gitlab-ce/master.svg
        :target: https://gitlab.com/pyarchops/helpers/pipelines

.. image:: https://readthedocs.org/projects/pyarchops-helpers/badge/?version=latest
        :target: https://pyarchops-helpers.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://pyup.io/repos/github/pyarchops/helpers/shield.svg
     :target: https://pyup.io/repos/github/pyarchops/helpers/
          :alt: Updates


Helpers for pyArchOps


* Free software: MIT license
* Documentation: https://pyarchops-helpers.readthedocs.io.


Features
--------

* docker based test helpers


Instalation
--------------

.. code-block:: console

    $ pip install pyarchops-helpers


Usage
--------

.. code-block:: python

    from suitable import Api
    from pyarchops_helpers import helpers

    with helpers.ephemeral_docker_container(
            image='azulinho/pyarchops-base'
    ) as container:
        connection_string = "{}:{}".format(
            container['ip'], container['port']
        )
        print('connection strings is ' + connection_string)
        api = Api(connection_string,
                  connection='smart',
                  remote_user=container['user'],
                  private_key_file=container['pkey'],
                  become=True,
                  become_user='root',
                  sudo=True,
                  ssh_extra_args='-o StrictHostKeyChecking=no')

        try:
            result = api.setup()['contacted'][connection_string]
        except Exception as error:
            raise error

        assert result['ansible_facts']


Development
-----------

Install requirements:

.. code-block:: console

    $ sudo pacman -S tmux python-virtualenv python-pip libjpeg-turbo gcc make vim git tk tcl

Git clone this repository

.. code-block:: console

    $ git clone https://github.com/pyarchops/helpers.git pyarchops.helpers
    $ cd pyarchops.helpers


2. See the `Makefile`, to get started simply execute:

.. code-block:: console

    $ make up


Credits
-------

* TODO



=======
History
=======

0.0.1 (2018-12-11)
------------------

* First release on PyPI.


