Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Attrs support for publish/subscribe

Open
#1,100 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
tooling

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.

Description

Feature

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.

Dominant language
Python
Stars
5.8k
Forks
490
Avg merge
3d 12h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-attrs/attrs

All issues in python-attrs/attrs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.