ephaptic 0.2.4__tar.gz → 0.2.6__tar.gz
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.
- {ephaptic-0.2.4 → ephaptic-0.2.6}/PKG-INFO +1 -1
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/cli/__main__.py +4 -2
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/ephaptic.py +3 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic.egg-info/PKG-INFO +1 -1
- {ephaptic-0.2.4 → ephaptic-0.2.6}/pyproject.toml +1 -1
- {ephaptic-0.2.4 → ephaptic-0.2.6}/LICENSE +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/README.md +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/__init__.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/adapters/__init__.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/adapters/fastapi_.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/adapters/quart_.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/cli/__init__.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/client/__init__.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/client/client.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/localproxy.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/transports/__init__.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/transports/fastapi_ws.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic/transports/websocket.py +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic.egg-info/SOURCES.txt +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic.egg-info/dependency_links.txt +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic.egg-info/entry_points.txt +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic.egg-info/requires.txt +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/ephaptic.egg-info/top_level.txt +0 -0
- {ephaptic-0.2.4 → ephaptic-0.2.6}/setup.cfg +0 -0
|
@@ -79,14 +79,14 @@ def generate(
|
|
|
79
79
|
|
|
80
80
|
ephaptic = load_ephaptic(client)
|
|
81
81
|
|
|
82
|
-
typer.secho(f"Found {len(ephaptic._exposed_functions)} functions.", fg=typer.colors.GREEN)
|
|
83
|
-
|
|
84
82
|
schema_output = {
|
|
85
83
|
"methods": {},
|
|
86
84
|
"events": {},
|
|
87
85
|
"definitions": {},
|
|
88
86
|
}
|
|
89
87
|
|
|
88
|
+
typer.secho(f"Found {len(ephaptic._exposed_functions)} functions.", fg=typer.colors.GREEN)
|
|
89
|
+
|
|
90
90
|
for name, func in ephaptic._exposed_functions.items():
|
|
91
91
|
typer.secho(f" - {name}")
|
|
92
92
|
|
|
@@ -117,6 +117,8 @@ def generate(
|
|
|
117
117
|
|
|
118
118
|
schema_output["methods"][name] = method_schema
|
|
119
119
|
|
|
120
|
+
typer.secho(f"Found {len(ephaptic._exposed_events)} events.", fg=typer.colors.GREEN)
|
|
121
|
+
|
|
120
122
|
for name, model in ephaptic._exposed_events.items():
|
|
121
123
|
typer.secho(f" - {name}")
|
|
122
124
|
adapter = TypeAdapter(model)
|
|
@@ -95,14 +95,17 @@ class EphapticTarget:
|
|
|
95
95
|
return emitter
|
|
96
96
|
|
|
97
97
|
def expose(func: Callable):
|
|
98
|
+
global _EXPOSED_FUNCTIONS
|
|
98
99
|
_EXPOSED_FUNCTIONS[func.__name__] = func
|
|
99
100
|
return func
|
|
100
101
|
|
|
101
102
|
def identity_loader(func: Callable):
|
|
103
|
+
global _IDENTITY_LOADER
|
|
102
104
|
_IDENTITY_LOADER = func
|
|
103
105
|
return func
|
|
104
106
|
|
|
105
107
|
def event(model: typing.Type[pydantic.BaseModel]):
|
|
108
|
+
global _EXPOSED_EVENTS
|
|
106
109
|
_EXPOSED_EVENTS[model.__name__] = model
|
|
107
110
|
return model
|
|
108
111
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|