Code Monkey home page Code Monkey logo

hrpc's People

Contributors

decentral1se avatar

Watchers

 avatar  avatar

hrpc's Issues

Scratchpad

2020-08-08

Notes

  • So, after shopping around, it looks like I can use https://github.com/standy66/purerpc under the hood! The CLI is kinda meh (as is any tool from gRPC, it seems) but the hrpc interface is kinda nice and simple, so I think I will wrap the protoc/protoc plugin interface with a simple argparse entrypoint.
  • On first attempt at generation over in @hyperspace-org/rpc, I did run into hypercore-protocol/hyperspace-rpc#3.
  • I can use grpcio-tools to get a pure python protoc CLI instead of having to require a system package! This greatly simplifies the installation requirements.

TODO

  • Install a local hyperspace daemon and try to write a dead-simple python client script which fires a request at the daemon via a socket and gets a response. There must be some version check or something real simple in this regard. Can use the plain 'ol python -m grpc_tools.protoc --purerpc_out=. --python_out=. -I. schema.proto incantation to get a stub and service file. The generated files need to have async/await bindings and be possible to use trio with ideally.
  • If the above works, then we're all good, go on to implement the hrpc client in python. Otherwise, thrash wildly in a swampy marsh of bugs probably...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.