Folklore service framework command line toolkit
Project description
Command line tool for managing Folklore services.
Install
$ pip install folklore-cli
Usage
$ folklore -h
Run Folklore service
$ folklore serve
Deploy an application
To deploy using ansible, extra requirements should be installed:
$ pip install folklore-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:
$ folklore 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:
$ folklore 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 folklore-cli[shell]
Start the shell:
$ folklore 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file folklore_cli-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: folklore_cli-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6516d51563c8d4798f419db8511dced2ec65ed68da4f70c524b0fdcb75b63bde |
|
MD5 | d9c66887a78c4ec97d94d892d3b9d87e |
|
BLAKE2b-256 | 38262a75ec34d0e2a362a44ae702b3739bfbe6707419e0e6906763b9e94be9d9 |