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 | 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
rapidfire-1.0.0.tar.gz
(11.0 kB
view details)
Built Distribution
rapidfire-1.0.0-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file rapidfire-1.0.0.tar.gz
.
File metadata
- Download URL: rapidfire-1.0.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c44bb234596b05187cfc4691934a14ee9879a03ccae210f820c89b67010303 |
|
MD5 | 36ff259f4f0462b173e660139fd59b62 |
|
BLAKE2b-256 | 65dcded7e5619ee7e76413c547270591c9ec1dc69f5bd55c43b276d9ba0bc13a |
File details
Details for the file rapidfire-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: rapidfire-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a2e9818322c4b8ce13088808b257c81797da3d103f8c7f3c599cbd91120723 |
|
MD5 | 97aea423ace55f081e284b120105dba2 |
|
BLAKE2b-256 | 459a107de2617ddf19e9990a13c85cbc8538c21ef1525dddb150f653e0a1fa17 |