Takumi service framework command line toolkit
Project description
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
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
takumi_cli-0.1.2.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for takumi_cli-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bc9681237b778df9fd07ba0a213ef80e75907f7814ec7e5bc0afe69b4cce43c |
|
MD5 | 3b7c5be5b5fffef4bd6ad66783d498b9 |
|
BLAKE2b-256 | c460d3e98fbe8ecb3bd2a57e3cd74a1243aa4994b12ee711623bc82899f05593 |