Stevesie Python Client
This library is under development, please be careful and report any bugs you find! <3
Installation
This package will be available on PyPi when it's a little more mature, but until then you'll need to download (yes, actually download or clone this repo) and make the ./stevesie folder available to your Python code.
For example, if I want to run the file main.py, I would need to make sure the stevesie folder is in the same directory as main.py, and then we can perform imports like this in main.py: from stevesie.worker import Worker
Usage
This code is currently meant to help you interact with your workers programmatically, either downloading collection results the worker has already gathered in JSON format, or to run workers with special parameters.
from stevesie.worker import Worker
# find your ID from https://stevesie.com/workers/WORKER_ID and insert
worker = Worker(WORKER_ID)
# fetch metadata about the worker, like its task or workflow definition
worker.fetch()
# see what parameters are available to run with
print(worker.run_params())
# download all the workers collection results in-memory
worker_results = worker.fetch_results()
# save the results as JSON locally
worker_results.save_to_file(CACHE_FILE_LOCATION)
# re-load the local JSON back into memory
worker.load_results(CACHE_FILE_LOCATION)
# show the worker extraction results
print(worker_results.items())
# run the worker with custom parameters
worker.run({'PARAM_ID': 'custom_value_from_python'})
Sample Projects
If you build something cool, let us know and we'll link to it here:
Metadata
Release files for stevesie 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stevesie-0.0.7.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stevesie-0.0.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 23.1 kB
Release files / stevesie-0.0.7.tar.gz
| Download URL | stevesie-0.0.7.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03112e3bb13a208123df9c3546b4331c6d082787f2603d472c7ec0f0b231ee2e
|
|
BLAKE2b-256 checksum How to use checksums |
4b0c12c87f07e9ecd3db144f826d0f6d85447c0cd869671f1ffe3c2b5014b70a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.4
|
Release files / stevesie-0.0.7-py2.py3-none-any.whl
| Download URL | stevesie-0.0.7-py2.py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6c40c91fa46dc66fbc27fc3d5e1e28ab3c8f6b249ec37fc6095730ad5ea40d2d
|
|
BLAKE2b-256 checksum How to use checksums |
20e2281c9f4c60d4dff8304d9e57027550415c125aa2e4c05640aaf79256238f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.4
|