evhub/coconut

Simple, elegant, Pythonic functional programming.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 16 minutes ago
Added to GitGenius on September 15th, 2026
Created on October 4th, 2014
Open Issues & Pull Requests: 90 (+0)
GitHub issues: Enabled
Number of forks: 141
Total Stargazers: 4,357 (+0)
Total Subscribers: 57 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 14.0 days
Mean response time: 113.4 days
90th percentile: 345.2 days
Tracked items: 45

Most active contributors

Sign in to see contributor activity.

How this project is maintained

60% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Three people close 100% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 20
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 671 days
Stale 30+ days: 20
Stale 90+ days: 19

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • resolved (20)
  • feature (13)
  • compatibility (7)
  • bug (6)
  • modification (5)
  • tooling (5)
  • documentation (4)
  • partially resolved (4)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Coconut is a functional programming language that compiles to Python.

Coconut addresses the gap between Python's imperative style and functional programming paradigms by providing a language that compiles directly to Python code. It enables developers to write in a functional style while maintaining full compatibility with the Python ecosystem. The tool adds functional constructs such as pattern matching, pipe operators, and immutable data structures to Python's syntax, allowing code to be more declarative and composable. Since it compiles to standard Python, the resulting code can be used anywhere Python is used, and developers can mix Coconut and Python freely in the same project.

Coconut suits developers who want functional programming features without abandoning Python's libraries and tooling. It works well for projects where functional patterns would improve code clarity, such as data transformation pipelines, mathematical computations, or systems that benefit from immutability and pure functions. Teams already invested in Python can adopt Coconut incrementally, compiling only the modules where functional style provides the most benefit. The language is particularly valuable for those who find Python's syntax limiting for functional approaches but need to remain within the Python ecosystem.

The project maintains active development with regular commits and ongoing refinement of the compiler. The maintainers respond to issues and pull requests, indicating sustained engagement with the user base. Documentation is kept current alongside language updates, and the project includes examples and tutorials to help new users understand Coconut's approach to functional programming in Python.