# evhub/coconut

Simple, elegant, Pythonic functional programming.

Repository: https://github.com/evhub/coconut
Canonical: https://ross.abutalabs.com/products/coconut
Homepage: http://coconut-lang.org
Language: Python
License: Apache-2.0
License Family: permissive
Topics: python, functional, language, functional-programming, functional-language, programming-language, coconut, xonsh, xontrib, compiler
Last push: 2026-02-16T05:03:23+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 31, longevity 100
- inputs: {"age_days": 4351, "days_push": 198, "days_rel": 245, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4349, forks 141 (observed 2026-08-28T04:08:46.262865+00:00)

## What it is
Coconut is a functional programming language that is a superset of Python, compiling to Python code while adding features like pattern matching, pipelines, and tail call optimization. It is distributed as a pip-installable command-line compiler and interpreter.

## Use cases
- write functional Python code
- compile a functional language to Python
- use pattern matching on older Python versions
- backport modern Python syntax to Python 2.6
- learn functional programming in a Pythonic way

## When to choose
- you want functional programming features while staying in the Python ecosystem
- you need Python 2.6+ compatibility with modern syntax
- you want pipeline-style programming and algebraic data types in Python

## When to avoid
- your team only writes standard Python and cannot adopt a new language
- you need maximum performance, since Coconut compiles to Python
- you rely on tooling that does not understand Coconut syntax

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, programming-language, cli
- domain: programming-languages, compilers, developer-tools
- platform: python, cli, cross-platform
- tags: functional-programming, transpiler, python-superset, pattern-matching, pipelines

## Member repositories
- evhub/coconut (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.262865+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-29T18:21:33.220778+00:00, confidence not recorded.
  - readme: https://github.com/evhub/coconut (fetched 2026-08-28T04:08:46.262865+00:00, sha 242b5bc5476c)
  - homepage: http://coconut-lang.org (fetched 2026-08-29T09:10:28.887017+00:00, sha 3c8adc0a3d40)
- Data as of 2026-08-30T08:39:29.467469+00:00.
