Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Install All helpers

Project description

pyArchOps/helpers

https://badge.fury.io/py/pyarchops-helpers.svg https://img.shields.io/gitlab/pipeline/pyarchops/helpers/next-release.svg Documentation Status https://pyup.io/repos/github/pyarchops/helpers/shield.svg

Helpers for pyArchOps

Features

  • docker based test helpers

Instalation

$ pip install pyarchops-helpers

Usage

from suitable import Api
from pyarchops_helpers import helpers

with helpers.ephemeral_docker_container(
        image='registry.gitlab.com/pyarchops/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:

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

Git clone this repository

$ git clone https://github.com/pyarchops/helpers.git pyarchops.helpers
$ cd pyarchops.helpers
  1. See the Makefile, to get started simply execute:
$ make up

Credits

  • TODO

History

0.0.1 (2018-12-11)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyarchops-helpers, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size pyarchops_helpers-0.0.8-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyarchops_helpers-0.0.8.tar.gz (17.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page