Skip to main content
Help us improve Python packaging – donate today!

Run command in the context same as application

Project Description

Run your commands in your application context. Let’s eliminate cd and source in your crontab!

Requirements

  • Supports Python 2.7 only

We’ll be supporting 3.5 soon.

Setup

$ pip install --user appdo
or
(venv)$ pip install appdo

Usage

First, write your config file ~/.appdo.conf in TOML.

[default]
cd = "~/work/myapp"
source = ["/etc/profile", "~/.bash_profile"]
prefix = "bundle exec"

[default.env]
PAGER    = "cat"
RACK_ENV = "staging"

Then run appdo command. The commands will be executed in the config manner.

$ appdo rake -vT

Which is equivalent to:

$ cd ~/work/myapp
$ source /etc/profile
$ source ~/.bash_profile
$ PAGER=cat RACK_ENV=staging bundle exec rake -vT

ChangeLog

0.2.0 (2016-04-24)

  • Publicly released.
  • License changed into Apache License
  • cd option added to config file
  • returns error when no command specified.
  • --listapp command line option added to see what app you’ve set

0.1.2 (2016-04-22)

  • Initial release

Release history Release notifications

This version
History Node

0.2.0

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
appdo-0.2.0-py2.7.egg (7.3 kB) Copy SHA256 hash SHA256 Egg 2.7 Apr 23, 2016
appdo-0.2.0.tar.gz (9.9 kB) Copy SHA256 hash SHA256 Source None Apr 23, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page