Skip to main content

Chaos Hub plugin for the Chaos Toolkit project

Reason this release was yanked:

This project is now obsolete

Project description

# chaostoolkit-chaoshub

[![Build Status](https://travis-ci.org/chaostoolkit-incubator/chaostoolkit-chaoshub.svg?branch=master)](https://travis-ci.org/chaostoolkit-incubator/chaostoolkit-chaoshub)

The Chaos Hub plugin library.

## Purpose

The purpose of this library is to provide [Chaos Hub][] collaboration and sharing

support to the [Chaos Toolkit][chaostoolkit].

[chaostoolkit]: http://chaostoolkit.org [chaoshub]: http://chaoshub.com

## Features

The library adds the ability to login to a Chaos Hub, by default [ChaosHub.com][chaoshub], and then to be able to publish experiment’s and experimental findings into the hub.

## Install

Install this package as any other Python packages:

` $ pip install -U chaostoolkit-chaoshub `

Notice that this draws a few [dependencies][deps]:

[deps]: https://github.com/chaostoolkit-incubator/chaostoolkit-chaoshub/blob/master/requirements.txt

## Usage

Once installed, new login and publish subcommands will be made available to the chaos command. You can use them as follows:

` $ chaos login `

` $ chaos publish journal.json `

The login command sets up your chaos toolkit installation to target a particular Chaos Hub. The chaos publish command enables you to manually push your experimental findings, typically recorded in the journal.json, to your Chaos Hub account.

By default, once you have logged into your Chaos Hub you will automatically publish your experiment’s findings to your own organization and workspace when you execute chaos run. You can turn this behaviour off by specifying –no-publish as shown here:

` $ chaos run experiment.json --no-publish `

## Contribute

Contributors to this project are welcome as this is an open-source effort that seeks [discussions][join] and continuous improvement.

[join]: https://join.chaostoolkit.org/

From a code perspective, if you wish to contribute, you will need to run a Python 3.5+ environment. Then, fork this repository and submit a PR. The project cares for code readability and checks the code style to match best practices defined in [PEP8][pep8]. Please also make sure you provide tests whenever you submit a PR so we keep the code reliable.

[pep8]: https://pycodestyle.readthedocs.io/en/latest/

### Develop

If you wish to develop on this project, make sure to install the development dependencies. But first, [create a virtual environment][venv] and then install those dependencies.

[venv]: http://chaostoolkit.org/reference/usage/install/#create-a-virtual-environment

`console $ pip install -r requirements-dev.txt -r requirements.txt `

Then, point your environment to this directory:

`console $ python setup.py develop `

Now, you can edit the files and they will be automatically be seen by your environment, even when running from the chaos command locally.

### Test

To run the tests for the project execute the following:

` $ pytest `

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

chaostoolkit-chaoshub-0.1.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

chaostoolkit_chaoshub-0.1.1-py2.py3-none-any.whl (14.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file chaostoolkit-chaoshub-0.1.1.tar.gz.

File metadata

  • Download URL: chaostoolkit-chaoshub-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

File hashes

Hashes for chaostoolkit-chaoshub-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7a570a35af99354d521b7dda48f9dea70d18f5958e5886d09239f99081114c11
MD5 f7dc7837c3af253d330d3a158d2a3731
BLAKE2b-256 524d7f8410561f4c80b70ab69f4622e5f5801aab169f43bb74a09dfc9e0049c4

See more details on using hashes here.

File details

Details for the file chaostoolkit_chaoshub-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: chaostoolkit_chaoshub-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

File hashes

Hashes for chaostoolkit_chaoshub-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 69a0a49e3549bc0d0766bba3c7fbb35cb8c76bbb40ce4c1ab8c21222bdacf90d
MD5 43aa279762f89f5ceda0795d8b1f36c5
BLAKE2b-256 5c2f8393a75d31c35607da2e6208dc153023d588cd0edecb461ed38afb49c8c9

See more details on using hashes here.

Supported by

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