Skip to content

Instantly share code, notes, and snippets.

@marshallbrekka
marshallbrekka / greeter_client.rb
Created May 10, 2017 17:24
greeter_client.rb
this_dir = File.expand_path(File.dirname(__FILE__))
lib_dir = File.join(this_dir, 'lib')
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
require 'grpc'
require 'helloworld_services_pb'
def main
sleep(15)
stub = Helloworld::Greeter::Stub.new(ENV["GRPC_TARGET"] || 'localhost:50051', :this_channel_is_insecure)
@marshallbrekka
marshallbrekka / greeter_client.py
Created May 10, 2017 17:24
greeter_client.py
from __future__ import print_function
import grpc
import time
import helloworld_pb2
import helloworld_pb2_grpc
def run():
channel = grpc.insecure_channel('localhost:50051')
@marshallbrekka
marshallbrekka / pyproject.toml
Created March 25, 2022 02:28
Poetry Install Updates
[tool.poetry]
name = "test-poetry-package"
version = "0.1.0"
description = ""
authors = ["Marshall Brekka <marshallsmedia@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.9"
requests = "*"