File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class ModuleManager:
12
12
Otherwise an error will be raised.
13
13
14
14
Example usage:
15
+
15
16
>>> with client.protobuf_loader() as loader:
16
17
>>> loader.load_main_proto_files()
17
18
>>> loader.load_service_proto_files(0, "exonum-supervisor:0.12.0")
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ class ProtobufLoader:
36
36
This class is a Singleton, meaning that only one entity of that class is created at a time.
37
37
38
38
Example workflow:
39
+
39
40
>>> with client.protobuf_loader() as loader:
40
41
>>> loader.load_main_proto_files()
41
42
>>> loader.load_service_proto_files(0, "service_name")
@@ -62,6 +63,7 @@ class ProtobufLoader:
62
63
>>> assert loader_1 == loader_2
63
64
64
65
This may be useful if you have several modules that should work with ProtobufLoader:
66
+
65
67
>>> # main.py
66
68
>>> loader = ProtobufLoader(client)
67
69
>>> loader.initialize()
You can’t perform that action at this time.
0 commit comments