# RafeKettler/magicmethods

Guide to Python's magic methods

Repository: https://github.com/RafeKettler/magicmethods
Canonical: https://ross.abutalabs.com/products/magicmethods
Homepage: http://www.rafekettler.com/magicmethods.html
Language: HTML
License Family: other
Last push: 2023-12-25T07:09:52+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5704, "days_push": 982, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1720, forks 342 (observed 2026-08-28T04:05:26.736982+00:00)

## What it is
A written guide to Python's magic (dunder) methods, originally authored in 2011 by Rafe Kettler and licensed under CC BY-NC-SA. It is a documentation-style educational resource built from Markdown/LaTeX sources rather than a software library.

## Use cases
- learn how Python's __init__, __repr__, and other dunder methods work
- understand operator overloading in Python classes
- reference for implementing context managers and descriptors
- study material for Python object model internals
- find examples of __getattr__, __call__, and comparison methods

## When to choose
- you want a concise written explanation of Python's magic methods
- you are learning the Python object model and protocol methods
- you need a free reference to link or fork for educational content

## When to avoid
- you need up-to-date coverage of modern Python features (the guide dates from 2011)
- you want runnable code or a library rather than prose documentation
- you need commercial-use-friendly licensing (CC BY-NC-SA restricts commercial use)

## Facets
- artifact type: learning-resource
- maturity: abandoned
- function: documentation, developer-tools
- domain: tutorials, programming-languages, education
- platform: python, cross-platform
- tags: python-magic-methods, dunder-methods, guide, tutorial, python

## Member repositories
- RafeKettler/magicmethods (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.736982+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:04.069125+00:00, confidence not recorded.
  - readme: https://github.com/RafeKettler/magicmethods (fetched 2026-08-28T04:05:26.736982+00:00, sha 553a1de54691)
- Data as of 2026-08-30T08:39:29.467469+00:00.
