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.8.tar.gz
(17.5 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a8a12ef015b4f93ba67a47146e7a3ca75a5641b0e6f21233bc15dea741af764 |
|
MD5 | 86e3cb901cd92abcfa61225d1531a1e5 |
|
BLAKE2b-256 | 0712f5764300b0f7bc854e8e60db82d5a5aa5347adc5e7e24588c36a498b1afb |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c20ea74c3f57cb2773a9a5776fb2d5b84a117f8814b57e1d7caadfd5b7e493 |
|
MD5 | 23238a1d05d93d6aeca46a60b9be70db |
|
BLAKE2b-256 | 65cca86d88acfaabf8f2cdae5b38ac3dc5e3dd406e382685a8cde6b6a3b9e17e |