Skip to main content

Takumi service framework command line toolkit

Project description

https://travis-ci.org/elemepi/takumi-cli.svg?branch=master

Command line tool for managing Takumi services.

Install

$ pip install takumi-cli

Usage

$ takumi -h

Run service

$ takumi serve

Deploy an application

To deploy using ansible, extra requirements should be installed:

$ pip install takumi-cli[deploy]

Add deploy entry to app.yaml:

deploy:
  vars:
    version: HEAD
  targets:
    testing:
      - localhost
      - testing.com
    prod:
      - app.prod

Using the following command to deploy:

$ takumi deploy testing -t deploy

The deploy command is implemented using ansible.

To deploy crontab, add the following config to app.yaml

deploy:
  crontab:
    - name: check dirs
      schedule: "0 5,2 * * *"
      job: 'ls -alh > /dev/null'

    - name: say hello
      schedule:
        minute: 0
        hour: 5,2
      job: 'scripts/say_hello.py'

then run:

$ takumi deploy <target> -t cron

Cron jobs are run under app working directory /srv/{{ app_name }}.

Start an interactive shell

To start an IPython shell, extra requirements should be installed:

$ pip install takumi-cli[shell]

Start the shell:

$ takumi shell -t <host> -- <ipython args>

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

takumi_cli-0.1.1.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

takumi_cli-0.1.1-py2.py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 2 Python 3

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