Install All helpers
Project description
pyArchOps/helpers
Helpers for pyArchOps
Free software: MIT license
Documentation: https://pyarchops-helpers.readthedocs.io.
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
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.7.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for pyarchops_helpers-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59b6f3ea9b7e22c0a5aca9530c67308d712670c90cd6b0594c685fc6d9e4e626 |
|
MD5 | 1f83709d8956bf6c236abfa89eb9a244 |
|
BLAKE2b-256 | 48c326b67aebd7824fff622857e07ba89aa4ae2cc5e5c42a82fad4454021760f |