Skip to main content

Stevesie Python Client.

Project description

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:

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

stevesie-0.0.7.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stevesie-0.0.7-py2.py3-none-any.whl (15.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file stevesie-0.0.7.tar.gz.

File metadata

  • Download URL: stevesie-0.0.7.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for stevesie-0.0.7.tar.gz
Algorithm Hash digest
SHA256 03112e3bb13a208123df9c3546b4331c6d082787f2603d472c7ec0f0b231ee2e
MD5 39b39ef763f51e2413de2fc40f04b96e
BLAKE2b-256 4b0c12c87f07e9ecd3db144f826d0f6d85447c0cd869671f1ffe3c2b5014b70a

See more details on using hashes here.

File details

Details for the file stevesie-0.0.7-py2.py3-none-any.whl.

File metadata

  • Download URL: stevesie-0.0.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for stevesie-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6c40c91fa46dc66fbc27fc3d5e1e28ab3c8f6b249ec37fc6095730ad5ea40d2d
MD5 0418fed4a6a87a13b48fb3093e6ddbc8
BLAKE2b-256 20e2281c9f4c60d4dff8304d9e57027550415c125aa2e4c05640aaf79256238f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page