python-attrs / python-attrs/attrs
Attrs support for publish/subscribe
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.8k
- Forks
- 480
- Avg merge
- 2h 15m
- Merged PRs (30d)
- 2
Description
Attrs has nice support for validation and conversion.
That same concept could/should be extended to post setattr() phase of attribute updates.
This would allow for publish / subscribe systems on attribute updates.
In theory this should be a trivial feature enhancement to allow an additional hook.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading attrs' existing validation and conversion support and the related tests, then trace the post-setattr phase of attribute updates. Determine the hook's expected behavior for publish/subscribe use cases and add coverage showing when it runs and what is observable when the feature is complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100