Git Product home page Git Product logo

kashyapa's Introduction

Kashyapa

Etymology: From Kashyapa is a king ruled Sri Lanka from 473โ€“495. He is well known for building his palace on a massive column of rock, Sigiriya nearly 200 metres (660 ft) high.

Project Goal

If you picked protobuf as your data representation and serialization framework and you are working with Scala, you might not like the java code generated by the protobuf code generator (no case class support specifically). To solve this, you can use ScalaBuff and integrate that with your sbt build with sbt-scalabuff project.

Having done that, one of the challenges you might face is writing a generic converter between a serialized protobuf messages and its de-serialized scala objects. Especially if you are using Twitter Bijection for this work, you will need a converter to/from protobuf objects.

The Kashyapa repo will have two main items to pick from if you are working with ScalaBuff and Twitter Bijection.

  1. it will provide you with a project template if you want to integrate protobuf scala code generation with your sbt build. This template was extracted from the repo here
  2. it will provide you with a generic Scala reflection based method to de-construct and re-construct any protobuf generated scala object.

Project Setup

Clone the repo and update the protobuf definitions (src/main/protobuf/kashyapa.proto) to suite your needs. You will also have a test written in ScalaBufCodecTest to test the re/de-construction of objects.

kashyapa's People

Contributors

echinthaka avatar

Watchers

James Cloos avatar  avatar

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.