ephaptic 0.2.7__tar.gz → 0.2.8__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.7 → ephaptic-0.2.8}/PKG-INFO +1 -1
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/ephaptic.py +8 -3
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic.egg-info/PKG-INFO +1 -1
- {ephaptic-0.2.7 → ephaptic-0.2.8}/pyproject.toml +1 -1
- {ephaptic-0.2.7 → ephaptic-0.2.8}/LICENSE +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/README.md +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/__init__.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/adapters/__init__.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/adapters/fastapi_.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/adapters/quart_.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/cli/__init__.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/cli/__main__.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/client/__init__.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/client/client.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/localproxy.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/transports/__init__.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/transports/fastapi_ws.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic/transports/websocket.py +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic.egg-info/SOURCES.txt +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic.egg-info/dependency_links.txt +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic.egg-info/entry_points.txt +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic.egg-info/requires.txt +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/ephaptic.egg-info/top_level.txt +0 -0
- {ephaptic-0.2.7 → ephaptic-0.2.8}/setup.cfg +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import asyncio
|
|
2
|
-
|
|
2
|
+
import warnings
|
|
3
3
|
import msgpack
|
|
4
4
|
import redis.asyncio as redis
|
|
5
5
|
import pydantic
|
|
@@ -172,7 +172,12 @@ class Ephaptic:
|
|
|
172
172
|
return EphapticTarget(targets)
|
|
173
173
|
|
|
174
174
|
def __getattr__(self, name: str):
|
|
175
|
-
|
|
175
|
+
warnings.warn(
|
|
176
|
+
"Use `emit` and the new (typed) event system instead.",
|
|
177
|
+
DeprecationWarning,
|
|
178
|
+
stacklevel=2,
|
|
179
|
+
)
|
|
180
|
+
# @deprecated("")
|
|
176
181
|
async def emitter(*args, **kwargs):
|
|
177
182
|
transport: Transport = _active_transport_ctx.get()
|
|
178
183
|
if not transport:
|
|
@@ -309,4 +314,4 @@ class Ephaptic:
|
|
|
309
314
|
import traceback
|
|
310
315
|
traceback.print_exc()
|
|
311
316
|
finally:
|
|
312
|
-
if current_uid: manager.remove(current_uid, transport)
|
|
317
|
+
if current_uid: manager.remove(current_uid, transport)
|
|
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
|
|
File without changes
|