This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# blt: provides simple CLI superpowers

blt is a python package that aims to make it easier for application developers to wrap command line interfaces for the various tools they use day to day. blt was inspired by Heroku’s toolbelt, fabric, and clint. We hope to stand on the shoulders of giants.

## Overview

At blt’s root is the concept of a tool, blt provides several tools out of the box. Currently we have support for:

  • AWS (S3)
  • Django
  • Heroku
  • South (django database migrations)

These tools encapsulate commands that you would want to interface with each system. For example, you might want to be able to push files to an S3 bucket with the AWS tool, or you might want to run a migration using the South tool. blt standardizes the interface for running the command and handles things like configuration injection so you can easily differentiate between dev/staging/prod settings when running a command.

## Real-world Example

Let’s take a quick look at a practical example of blt in action. Here is a sample command for running an AWS S3 sync on our staging environment:

`bash blt e:staging aws.sync_s3 /path/to/my/dir `

That’s it! Running that command will pick up the staging environment configuration, connect to S3, determine the changed files between the S3 bucket and the files in /path/to/my/dir, and push them up to AWS. blt is able to automatically grab things like AWS authentication keys for staging and inject the settings into the runtime so blt can connect to the bucket. Pretty sweet!

## blt Grammar

blt has an opinionated command grammar and enforces a strict way of running commands for tools. blt was designed to have a consistent run style so that no matter what tool you are running commands for, it will have the same basic format. Let’s break down the aws run from above:

blt e:staging aws . sync_s3 /path/to/my/dir
^ ^ ^ ^ ^ ^ | | | | | | | | | | | |

blt executable environment tool separator command args

## Installation

Currently blt is not on PyPI, so you’ll need to build/install from the filesystem. Here are the steps to accomplish this:

#### Clone the blt rep

`bash git clone git@github.com:pubvest/utils.git `

#### Run the sdist directive on setup.py

`bash cd utils/blt python setup.py sdist `

#### Install via pip

`bash cd utils/blt/dist pip install blt-VERSION.tar.gz `

## More to come!

More documentaion/examples to come down the road!

Release History

Release History

0.2.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
blt-0.2.1.tar.gz (21.7 kB) Copy SHA256 Checksum SHA256 Source Feb 26, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting