Client library for interacting with MOTHR
Project description
mothrpy
Installation
pip install mothrpy
Usage
Basic example submitting a job request
from mothrpy import JobRequest
request = JobRequest(service='echo')
request.add_parameter(value='Hello MOTHR!')
result = request.run_job()
print(result)
Submitting a job request using MothrClient
. This allows you to reuse the
client connection when making multiple requests.
from mothrpy import JobRequest, MothrClient
client = MothrClient()
# Send one request
request = JobRequest(client=client, service='echo')
request.add_parameter(value='Hello MOTHR!')
result = request.run_job()
print(result)
# Reuse the client in another request
request = JobRequest(client=client, service='echo')
request.add_parameter(value='Hello again MOTHR!')
result = request.run_job()
print(result)
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
mothrpy-0.3.0.tar.gz
(8.5 kB
view details)
Built Distribution
File details
Details for the file mothrpy-0.3.0.tar.gz
.
File metadata
- Download URL: mothrpy-0.3.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ab8316a7f966918b0db336b71cbc54b4083a0afeb07a9e47b8d904a11783fb3 |
|
MD5 | f87bac9d8f5c26f89b74e0c6388fbfdd |
|
BLAKE2b-256 | 7ab9b74929e4c1562202bccc400f78f864601a216bc56972ba72a08bc32c0929 |
File details
Details for the file mothrpy-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: mothrpy-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de09ab04d06921a9c19defbc22cf4f2bd0f8f92f23a0453104e15e952605f948 |
|
MD5 | 5fe5488c1dafab4d14ca620c7f79a106 |
|
BLAKE2b-256 | eaa9bfc333e9bd48dd9e53b79437ac88d123a49dc141159742dd91410e04faff |