Skip to main content

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.

Source Distribution

pyarchops_helpers-0.0.8.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

pyarchops_helpers-0.0.8-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pyarchops_helpers-0.0.8.tar.gz.

File metadata

  • Download URL: pyarchops_helpers-0.0.8.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for pyarchops_helpers-0.0.8.tar.gz
Algorithm Hash digest
SHA256 3a8a12ef015b4f93ba67a47146e7a3ca75a5641b0e6f21233bc15dea741af764
MD5 86e3cb901cd92abcfa61225d1531a1e5
BLAKE2b-256 0712f5764300b0f7bc854e8e60db82d5a5aa5347adc5e7e24588c36a498b1afb

See more details on using hashes here.

File details

Details for the file pyarchops_helpers-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: pyarchops_helpers-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for pyarchops_helpers-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 29c20ea74c3f57cb2773a9a5776fb2d5b84a117f8814b57e1d7caadfd5b7e493
MD5 23238a1d05d93d6aeca46a60b9be70db
BLAKE2b-256 65cca86d88acfaabf8f2cdae5b38ac3dc5e3dd406e382685a8cde6b6a3b9e17e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page