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.2.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.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fire_rpc-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9a28a20d7ab073e808cde9e1c84cc8e75e9c11d4f7a4c464b58700f401df07ef
MD5 7f6c7b6c2b9a8a01bd5632ad8babfdc5
BLAKE2b-256 c86aee8ffa7478158ec0efb84009adade8031b4235091993170741fedf1129e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fire_rpc-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c551d273f1997eb15e3cf459b9f461bf0ede00f696dee0f6d91afccc3a8eabf9
MD5 c673dd01ee1d015911ed0d0cc77a0283
BLAKE2b-256 e10bd35f07c19391cf91615a86ad4421af59b79c35333a39703ceed5e7982a63

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