Skip to content

About

API Definitions Generated

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

shared-generated

Generated Go and Python code for the API contracts. CI generates it and overwrites it on every publish, so do not edit it here.

Layout

Path Contents
go/ Go module github.com/versegeek/shared-generated/go
go/grpc/ gRPC code generated from Protobuf
go/rest/ REST code generated from OpenAPI 3.0
python/grpc/ gRPC code generated from Protobuf

Go

go get github.com/versegeek/shared-generated/go@latest
import (
    "github.com/versegeek/shared-generated/go/grpc/<domain>/v1" // package <domain>v1
    "github.com/versegeek/shared-generated/go/rest/<domain>/v1" // package <domain>V1
)

// Your code here...

Python

pip install "shared-generated @ git+https://github.com/versegeek/shared-generated.git#subdirectory=python"
# or
uv add "git+https://github.com/versegeek/shared-generated.git#subdirectory=python"
from <domain>.v1 import <name>_pb2, <name>_pb2_grpc

# Your code here...

About

API Definitions Generated

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages