8000 GitHub - link89/fire-rpc: Turn fire command line into remote JSON RPC
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

link89/fire-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fire-rpc

Turn fire command line into RPC server.

Installation

pip install fire-rpc

Example

fire-rpc provides a built-in echo server to demonstrate how to use it.

To start the echo server, run the following command:

# Note that the yes command is used to workaround the interactive mode of fire
yes | python -m fire_rpc /echo --port 8000

To call the echo server, run the following command:

url -X POST http://localhost:8000/echo -H "Content-Type: application/json" -d '{"args":["Hello World"]}'

The echo server will return the following response:

{"result": {"args": ["Hello World"], "kwargs": {}}}

About

Turn fire command line into remote JSON RPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0