# Fluent Python example code

Example code for Fluent Python, 2nd edition (O'Reilly 2022)

Repository: https://github.com/fluentpython/example-code-2e
Canonical: https://ross.abutalabs.com/products/fluent-python-example-code
Homepage: https://amzn.to/3J48u2J
Language: Python
License: MIT
License Family: permissive
Topics: python, python3, concurrency, iterators, metaprogramming, special-methods
Last push: 2026-06-17T01:01:07+00:00
Link (homepage): https://amzn.to/3J48u2J

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 87, release rhythm 35, longevity 100
- inputs: {"age_days": 2722, "days_push": 78, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4121, forks 1196 (observed 2026-08-28T04:08:35.958577+00:00)

## What it is
Example code repository accompanying the first edition of the book 'Fluent Python' by Luciano Ramalho (O'Reilly, 2015). It is archived and no longer updated; the second edition examples live in fluentpython/example-code-2e.

## Use cases
- learning idiomatic Python from the Fluent Python book
- running companion examples while reading Fluent Python 1st edition
- studying Python data model, descriptors, and coroutines examples
- comparing 1st edition code with 2nd edition examples
- exploring Pythonic design patterns with runnable snippets

## When to choose
- you are reading the first edition of Fluent Python and want its exact code
- you want MIT-licensed reference snippets of classic Python idioms

## When to avoid
- you are reading the second edition of Fluent Python (use example-code-2e instead)
- you need maintained, guaranteed-working code for production
- you need a tutorial or course rather than raw example files

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools
- domain: programming-languages, tutorials, developer-tools
- platform: python, cross-platform
- tags: book-examples, python-idioms, fluent-python, archived, oreilly

## Member repositories
- fluentpython/example-code-2e (main) score 71
- fluentpython/example-code (mirror) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:35.958577+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-29T17:55:36.991090+00:00, confidence not recorded.
  - readme: https://github.com/fluentpython/example-code-2e (fetched 2026-08-28T04:08:35.958577+00:00, sha 4a054ffda19e)
  - homepage: https://amzn.to/3J48u2J (fetched 2026-08-29T08:50:49.047528+00:00, sha 77a33e6b39cb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
