Skip to main content

folklore-cli: Folklore command line toolkit

https://travis-ci.org/maralla/folklore-cli.svg?branch=master

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>

Metadata

Release files for folklore-cli 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for folklore-cli 0.2.0
File Interpreter ABI Platform
folklore_cli-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / folklore_cli-0.2.0-py2.py3-none-any.whl

Download URL folklore_cli-0.2.0-py2.py3-none-any.whl
Size 13.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6516d51563c8d4798f419db8511dced2ec65ed68da4f70c524b0fdcb75b63bde
BLAKE2b-256 checksum
How to use checksums
38262a75ec34d0e2a362a44ae702b3739bfbe6707419e0e6906763b9e94be9d9
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for folklore-cli 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page