Skip to main content

Data common code for batch workflows by Equinox

Project description

PyPI Version Documentation Status Code Quality Grade Coverage Code of Conduct

Batch is a simple interface for managing the state of jobs and workflows in batchy microservice.

Installation

datacoco-batch requires Python 3.6+

python3 -m venv <virtual env name>
source <virtual env name>/bin/activate
pip install datacoco-batch

Quickstart

self.batchy = Batch(
            wf=test_workflow,
            server="server.com",
            port="80",
        )

self.batchy.open()

self.batchy.get_status()

self.batchy.close()

Sample output

{
    "global": {
        "batch_id": "123456789",
        "status": "success",
        "failure_cnt": 0,
        "open_cnt": 2,
        "batch_start": "2020-01-17T06:58:01.234567",
        "batch_end": "2020-01-17T07:18:08.012345"
        }
    }

Development

Getting Started

It is recommended to use the steps below to set up a virtual environment for development:

python3 -m venv <virtual env name>
source <virtual env name>/bin/activate
pip install -r requirements.txt

Testing

pip install -r requirements-dev.txt

To run the testing suite, simply run the command: tox or python -m unittest discover tests

Contributing

Contributions to datacoco_batch are welcome!

Please reference guidelines to help with setting up your development environment 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

datacoco-batch-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file datacoco-batch-0.1.1.tar.gz.

File metadata

  • Download URL: datacoco-batch-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for datacoco-batch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 76bdaaba455ca05203ccad041512783c0bb388d43165d826566bc8ad750d1b67
MD5 b56e8ca3cdabbbae2bc27b4cfe9e43bd
BLAKE2b-256 b5034a0851b7fa9befcde3355e48fe6759f254d43c8181b011929e7780772273

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