Description
A simple gem for nested grpc message encoding and decoding. When you have deeply nested hash to convert to grpc message, it is difficult. So I wrote a tiny library :). Similar to ActiveModelSerializer
grpc_serializer alternatives and similar gems
Based on the "Abstraction" category.
Alternatively, view grpc_serializer alternatives based on common mentions on social networks and blogs.
-
Amoeba
A ruby gem to allow the copying of ActiveRecord objects and their associated children, configurable with a DSL on the model -
Waterfall
A slice of functional programming to chain ruby services and blocks, thus providing a new approach to flow control. Make them flow! -
u-service
Represent use cases in a simple and powerful way while writing modular, expressive and sequentially logical code. -
Smart Init - Simple service objects in Ruby
A simple gem for eliminating Ruby initializers boilerplate code, and providing unified service objects API -
SuperModule
SuperModule allows defining class methods and method invocations the same way a super class does without using def included(base). This also succeeds ActiveSupport::Concern by offering lighter syntax -
Invokable
Objects are functions! Treat any Object or Class as a Proc (like Enumerable but for Procs). -
EasilyTypable
Ruby module that facilitates English-like type checking in an inheritance hierarchy via "type_name?" methods -
🔮 Magic Lookup
Find a related class for an object (ex., a decorator, a presenter, a controller, or whatever). -
dry-rb
dry-rb is a collection of next-generation Ruby libraries, each intended to encapsulate a common task.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of grpc_serializer or a related project?
README
grpc_serializer
A simple gem for nested grpc message encoding and decoding
Usage
$ gem install grpc_serializer
Sample Proto file (.proto) :
syntax = "proto3";
package cpqgrpc.product.v1;
message Shop {
string name = 1;
repeated string items = 2
}
message ProductRequest {
uint64 id = 2;
string name = 3;
repeated string categories = 4;
Shop shop = 5
}
Use the generated stub class ProductRequest as follows. Do deep_symbolize_keys before sending as argument
payload:
{
id: 1,
name: "Macbook"
categories: ["accessories", "electronics"],
shop: {
name: "shop 1",
items: ["item1", "item2"]
}
}
grpc_msg = GrpcSerializer.hash_to_grpc_object(payload, ProductRequest)
To decode to hash on client or server
hash = GrpcSerializer.grpc_object_to_hash(grpc_msg, ProductRequest)