Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

rapidfire calls and displays the defined Python function from command line

Project description

SETUP

  • Init RapidFire
$ pip install rapidfire
$ rap --init
$ vi /Your/home/directory/.rapidfire.d/raprc
  • Set the value in RAPIDFIRE_PYFILE_PATH
RAPIDFIRE_PYFILE_PATH = /path/hoge.py
  • Edit sample code
$ vi /path/hoge.py
from rapidfire import task

@task
def sample():
    return ['text1', 'text2', 'text3']
  • Run RapidFire
$ rap sample

API

  • rapidfire.task(next_action, clipboard, per_page)
    • Parameters
      • next_action - For next_action, specify the function name to be executed next
      • clipboard option - Copy the result to the cripboard
      • per_page - Lines per page

Example

from rapidfire import task

@task(next_action='sample_method2', per_page=2)
def sample_method1():
    return ['text1', 'text2', 'text3']


@task(clipboard=True)
def sample_method2():
    text = sample_method1 # The value selected by sample_method1 is entered
    return ['{} is selected'.format(text)]

Project details


Release history Release notifications

This version
History Node

1.0.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
rapidfire-1.0.0-py3-none-any.whl (13.5 kB) Copy SHA256 hash SHA256 Wheel 3.5 Apr 9, 2017
rapidfire-1.0.0.tar.gz (11.0 kB) Copy SHA256 hash SHA256 Source None Apr 9, 2017

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