Skip to content

echinthaka/kashyapa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages