Comments (3)
We could also just force it on the user to add a @dataclass
decorator on the events. I opened an PR to demonstrate this with the examples: #139
from lahja.
dataclasses could be a nice way to do this but I'm not inclined to force it.
from lahja.
but I'm not inclined to force it.
It would be totally up to the consumer to decide to use them or not. Here's a PR to show case that for Trinity ethereum/trinity#726 I only converted a few places there but I happily convert all of them if you are 👍 on that change.
from lahja.
Related Issues (20)
- Run sync handlers in an executor
- Ensure docs are covered with doctest in CI
- Error prone pattern with background tasks that we wait till they are started.
- More efficient subscription updates.
- Better request/response benchmark
- Thread based endpoint implementation
- Ensure that `broadcast/request/stream/wait_for` cannot be called prior to running the endpoint.
- Rename `EndpointAPI.subscribe` to be `EndpointAPI.add_event_handler` HOT 3
- endpoint.request() should raise when a result is no longer possible
- Declarative cross implementation test suite tools HOT 2
- Make `Response` a property of `Request`
- ReadTheDocs build isn't triggered automatically HOT 1
- Context manager API for EndpointAPI.subscribe
- Convert test suite to use declarative tool
- Proxy object API HOT 2
- The Trio endpoint serializes all messages through a single coro
- Fix and re-enable *-core-common tests on CI
- Use cloudpickle HOT 4
- Custom event serialization.
- Create a constant for the commonly used BroadcastConfig(require_subscriber=False)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lahja.