# ActiveState/code

ActiveState Code Recipes

Repository: https://github.com/ActiveState/code
Canonical: https://ross.abutalabs.com/products/activestate-code
Homepage: https://code.activestate.com
Language: Python
License: MIT
License Family: permissive
Last push: 2022-04-14T09:17:35+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3327, "days_push": 1602, "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 1972, forks 689 (observed 2026-08-28T04:06:00.952737+00:00)

## What it is
A GitHub migration of the ActiveState Code Recipes site (code.activestate.com), a community collection of thousands of code snippets, utility functions, and recipes across many languages, most famously the Python Cookbook. Recipes are contributed via pull requests and indexed in the repo wiki.

## Use cases
- find a python snippet to parse or format text
- learn common programming idioms from community recipes
- contribute a useful utility function for others to reuse
- browse the historical Python Cookbook recipes
- find small code examples in perl, tcl, or other dynamic languages

## When to choose
- you want small, self-contained code snippets to learn from or copy into your project
- you are looking for classic Python Cookbook recipes and community utilities
- you want to share a useful snippet with a long-running community

## When to avoid
- you need a maintained, production-ready library with releases and dependency management
- you need a searchable, curated package index rather than loose snippets
- you need guaranteed up-to-date code, as many recipes are legacy and outdated

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools, documentation
- domain: developer-tools, programming-languages, tutorials, education
- platform: cross-platform, python
- tags: code-recipes, snippets, python-cookbook, community-contributed, multi-language

## Member repositories
- ActiveState/code (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:00.952737+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:05:00.324305+00:00, confidence not recorded.
  - readme: https://github.com/ActiveState/code (fetched 2026-08-28T04:06:00.952737+00:00, sha 1a8bd211a44f)
  - homepage: https://code.activestate.com (fetched 2026-08-29T10:44:31.157870+00:00, sha b8eb22578a71)
  - site_page: http://docs.activestate.com/ (fetched 2026-08-29T10:44:31.161416+00:00, sha 8743a8836ea5)
  - site_page: https://code.activestate.com/about (fetched 2026-08-29T10:44:31.167964+00:00, sha 46b9c2c94bf9)
  - site_page: https://code.activestate.com/ppm (fetched 2026-08-29T10:44:31.164094+00:00, sha f393ed583753)
  - site_page: https://code.activestate.com/pypm (fetched 2026-08-29T10:44:31.166213+00:00, sha 14f7a889d54e)
  - site_page: https://code.activestate.com/help/faq (fetched 2026-08-29T10:44:31.170102+00:00, sha 57d5a2e1e6a7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
