Skip to main content

Opinionated wrapper around boto that reads yaml

Project description

An opinionated wrapper around Amazon Cloudformation that reads yaml files. and make things happen.

https://travis-ci.org/realestate-com-au/bespin.png?branch=master

Installation

Just use pip:

pip install bespin

Usage

Once bespin is installed, there will be a new program called bespin.

When you call bespin without any arguments it will print out the tasks you have available.

You may invoke these tasks with the task option.

Simpler Usage

To save typing --task, --stack and --environment too much , the first positional argument is treated as task (unless it is prefixed with a -); the second positional argument (if also not prefixed with a -) is taken as the environment and the third is treated as the stack.

So:

$ bespin --task deploy --environment dev --stack app

Is equivalent to:

$ bespin deploy dev app

Logging colors

If you find the logging output doesn’t look great on your terminal, you can try setting the term_colors option in bespin.yml to either light or dark.

The yaml configuration

Bespin reads everything from a yaml configuration. By default this is a bespin.yml file in the current directory, but may be changed with the --bespin-config option or BESPIN_CONFIG environment variable.

It will also read from ~/.bespin.yml and will be overridden by anything in the configuration file you’ve specified.

Tests

Install testing deps and run the helpful script:

pip install -e .
pip install -e ".[tests]"
./test.sh

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

bespin-0.5.1.1.tar.gz (35.3 kB view hashes)

Uploaded Source

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