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.3.tar.gz (2.6 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.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fire_rpc-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 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.3.tar.gz
Algorithm Hash digest
SHA256 c50e3a3202ab7b2159a3676b84be045abb71d3abcbc8dc6a5de86132e9b9ac88
MD5 367c1cfed1b649594fb7330ad75a28ed
BLAKE2b-256 dd43684f72d321630ad2ca18f8a0dbd2ceef15c274e8c05e9deb29d1cc1963a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fire_rpc-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 38dcf5ec521e41a19ebb38526c2343b761739ae094f3a7a79d1699afbca5c2e3
MD5 1e534af88b43e621f2134a0254bf7c7f
BLAKE2b-256 fe4e23b5cf89398e347d450c54264e04a7ec17a2a85da8f67aad5e05867cce4e

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