Skip to main content

turn fire command line to a rpc server

Project description

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": {}}}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fire_rpc-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fire_rpc-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file fire_rpc-0.1.1.tar.gz.

File metadata

  • Download URL: fire_rpc-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for fire_rpc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a22cabc909cd263d88978f2e1c049926849d43ec30ee65507afd9647ab28ae6e
MD5 5baa8a6392e980033699c80f37dcfc28
BLAKE2b-256 8ae19fba56db67ff79cdea24a259a96e3093098cea333d1ee3b968fad91e7d77

See more details on using hashes here.

File details

Details for the file fire_rpc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fire_rpc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for fire_rpc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cc55914e6487eb34cb44271cb25e3e07ad75b96928139c2e88902ae5d2fb806
MD5 61b014463c2656151b27dd584961b1b5
BLAKE2b-256 799ccb4c0df760428f83ad981d2d2fd7cd922628ffd26cdc002682df328220db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page