Giter Club home page Giter Club logo

grpc_test's Introduction

CS 492 GRPC Test code

Requires an installation of grpc and protoc. Installation instructions will depend Operating System and which grpc language you are using. See the grpc guides.

To run the project:

  • Navigate to the protos directory and run make -B all
  • Run the client as python3 client/client.py <directory where /bhl/ocr data is stored>
  • To run the node server, run 'node servers/nodejs/server_stream.js

Current sample output:
{ '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0001.txt': '64', '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0002.txt': '204', '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0003.txt': '0', '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0004.txt': '0', '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0005.txt': '0', '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0006.txt': '0', '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0007.txt': '0', '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0008.txt': '49', '/home/ankit/bhlindex/testdata/bhl/ocr/bhl1/00703camxa2200193Iix4500/naturalhistoryof00mill/naturalhistoryof00mill_0009.txt': '985',... }

grpc_test's People

Contributors

ankitgohel1996 avatar moogen avatar sebsebmc avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grpc_test's Issues

reduce BHL name index

  • reduce database for scalability (say 10k randomnly selected books)
  • reduce dataset for development (say 500 books)

Code generation for node

As of now, I can only generate node protobuf code for proto2, which is why the file questionstream.proto has the field query in both the QuestionRequest and QuestionResponse messages (Since node code wasn't generated, but code for the python client was, I was only able to write back data in the query field of the Request itself - it would crash if I tried to write it in the response field of QuestionResponse as node could not find that class)

This should be fixed once I/someone figures out how to generate the protobuf code for proto3

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.