pydantic-rpc 0.6.0__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pydantic_rpc/__init__.py CHANGED
@@ -1,9 +1,12 @@
1
+ from importlib.util import find_spec
2
+
1
3
  from .core import (
2
4
  Server,
3
5
  AsyncIOServer,
4
6
  WSGIApp,
5
7
  ASGIApp,
6
8
  ConnecpyASGIApp,
9
+ ConnecpyWSGIApp,
7
10
  Message,
8
11
  )
9
12
 
@@ -12,6 +15,13 @@ __all__ = [
12
15
  "AsyncIOServer",
13
16
  "WSGIApp",
14
17
  "ASGIApp",
18
+ "ConnecpyWSGIApp",
15
19
  "ConnecpyASGIApp",
16
20
  "Message",
17
21
  ]
22
+
23
+ # Optional MCP support
24
+ if find_spec("mcp"):
25
+ from .mcp import MCPExporter # noqa: F401
26
+
27
+ __all__.append("MCPExporter")