Experiment utilities
Project description
Experiment utilities
A Python wrapper for utilities to automate running experiments, in particular with relation to bash. For example, to copy over files, run commands, check activity, etc.. Please note that it is written with a Linux bash in mind, so some functionality might not work on e.g., MacOS.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. (see also the MIT License in ./LICENSE).
Installation
Python version: 3.8+
python3 -m pip install exputil
Getting started
Example usage:
There are many things to do, for example to check how many screens are running.
import exputil
local_shell = exputil.LocalShell()
print("There are %d screens active." % local_shell.count_screens())
remote_shell = exputil.RemoteShell("user", "example.com")
print("There are %d screens active on the remote." % remote_shell.count_screens())
Development
Requirements:
python3 -m pip install pytest coverage
Install latest development version:
-
Clone the GitHub repository:
git clone git@github.com:yuanlott/exputilpy.git
-
Install locally using
pip:cd exputilpy python3 -m pip install .
Run tests:
python3 -m pytest
Calculate coverage (outputs .coverage, coverage.xml and htmlcov/):
python3 -m coverage run --branch --include="exputil/*" -m pytest
python3 -m coverage xml
python3 -m coverage html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file exputil-1.9.2.tar.gz.
File metadata
- Download URL: exputil-1.9.2.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2ff618a0c6270066a167578853d417fd217c65ac5a8433b2a577d3ca6f593f0
|
|
| MD5 |
1e9d200e97358038ec96790fba609681
|
|
| BLAKE2b-256 |
732f69fa14e22fada607b33db94162f2d1ab1446aee8e744f66357626fe93b10
|
File details
Details for the file exputil-1.9.2-py3-none-any.whl.
File metadata
- Download URL: exputil-1.9.2-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f4ce62261fe6f2d46a2e4c3b522d71c7d361d596d89ec13734018c0e6fe2dc
|
|
| MD5 |
ec942b5cbd72ca60a206ee8c0c942597
|
|
| BLAKE2b-256 |
dc6c9a98a6a50de75a393aee55fd19fb3d9649c81509e22a11780831332a6ecc
|