blob: 81eb1d4fc2e6a02962bb496f4f1259ce04f60ed9 [file] [log] [blame]
Masood Malekghassemif8e297a2015-02-19 15:39:32 -08001/*
2 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003 * Copyright 2015 gRPC authors.
Masood Malekghassemif8e297a2015-02-19 15:39:32 -08004 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Masood Malekghassemif8e297a2015-02-19 15:39:32 -08008 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009 * http://www.apache.org/licenses/LICENSE-2.0
Masood Malekghassemif8e297a2015-02-19 15:39:32 -080010 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +020011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
Masood Malekghassemif8e297a2015-02-19 15:39:32 -080016 *
17 */
18
19// Generates a Python gRPC service interface out of Protobuf IDL.
20
Masood Malekghassemi65c803b2015-03-20 06:48:47 -070021#include "src/compiler/config.h"
Harsh Vardhan5b8fa872016-09-12 20:37:42 +053022#include "src/compiler/protobuf_plugin.h"
Masood Malekghassemif8e297a2015-02-19 15:39:32 -080023#include "src/compiler/python_generator.h"
Masood Malekghassemif8e297a2015-02-19 15:39:32 -080024
25int main(int argc, char* argv[]) {
Masood Malekghassemi3bb52152015-03-17 21:52:52 -070026 grpc_python_generator::GeneratorConfiguration config;
Masood Malekghassemi3bb52152015-03-17 21:52:52 -070027 grpc_python_generator::PythonGrpcGenerator generator(config);
Masood Malekghassemi65c803b2015-03-20 06:48:47 -070028 return grpc::protobuf::compiler::PluginMain(argc, argv, &generator);
Masood Malekghassemif8e297a2015-02-19 15:39:32 -080029}