# brandon-rhodes/fopnp

Foundations of Python Network Programming (Apress) — scripts and examples

Repository: https://github.com/brandon-rhodes/fopnp
Canonical: https://ross.abutalabs.com/products/fopnp
Language: Python
License Family: other
Last push: 2025-04-30T08:50:18+00:00

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

## Adoption (not part of the score)
Stars 1413, forks 633 (observed 2026-08-28T04:04:39.466766+00:00)

## What it is
The official companion repository of example code for the third edition of 'Foundations of Python Network Programming' (Apress), revised for Python 3. It contains per-chapter scripts covering sockets, TCP/UDP, DNS, TLS, HTTP, email protocols, SSH, FTP, and RPC.

## Use cases
- learn python network programming
- example code for tcp and udp sockets in python
- how to do TLS/SSL in python
- python email sending and IMAP examples
- study material for python networking book
- python http client and server examples
- learn DNS resolution and socket names in python

## When to choose
- you are reading the book and want its runnable example code
- you want well-designed, pedagogical Python 3 networking examples
- you need reference snippets for protocols like SMTP, IMAP, FTP, or RPC in Python

## When to avoid
- you need a production-ready networking library or framework
- you want actively developed software with a license and support
- you need modern async (asyncio) networking patterns, which the third edition predates

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: http-client, http-server, websocket, rpc, email, cryptography, caching, message-queue, developer-tools
- domain: networking, programming-languages, tutorials, developer-tools, apis
- platform: python, cross-platform
- tags: book-examples, network-programming, sockets, dns, tls, smtp, imap, ftp, ssh, python3, textbook-code

## Member repositories
- brandon-rhodes/fopnp (main) score 31

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:39.466766+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-30T04:38:15.705467+00:00, confidence not recorded.
  - readme: https://github.com/brandon-rhodes/fopnp (fetched 2026-08-28T04:04:39.466766+00:00, sha 56e9751aef1c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
