{
 "kind": "tool",
 "slug": "sumtypes",
 "path": "tools/sumtypes/",
 "name": "sumtypes",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Languages, types and runtimes",
   "tools/languages-types/"
  ]
 ],
 "lead": "Algebraic types for Python providing sum types and tagged unions.",
 "chips": [
  {
   "label": "Languages, types and runtimes",
   "path": "tools/languages-types/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install sumtypes"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/radix/sumtypes"
  },
  {
   "label": "Website",
   "href": "http://github.com/radix/sumtypes/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/radix/sumtypes"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Quiet for a year",
   "status": "cond",
   "sub": "Last change Nov 30, 2021",
   "note": "",
   "src": "https://github.com/radix/sumtypes"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "Not in our scan",
   "status": "info",
   "sub": "#66 of 70 in its category",
   "note": "Dependency in 0 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What sumtypes does",
   "parts": [
    {
     "t": "prose",
     "text": "Algebraic types for Python providing sum types and tagged unions."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "sumtypes popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "28",
       "of": "/ 100",
       "l": "Gid Score, #4131 overall"
      },
      {
       "n": "38K",
       "l": "downloads a week, pypi"
      },
      {
       "n": "44",
       "l": "GitHub stars"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How sumtypes is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "sumtypes is a dependency in 0 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 24 projects, and what it is used with below comes from all of them.",
      "Projects that use it most often also use AnyIO (100.0%), attrs (100.0%), solana-py (100.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "AnyIO",
       "path": "tools/anyio/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "attrs",
       "path": "tools/attrs/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "solana-py",
       "path": "tools/solana/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "solders",
       "path": "tools/solders/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "websockets",
       "path": "tools/websockets/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about sumtypes",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Languages, types and runtimes",
       "path": "tools/languages-types/",
       "items": [
        {
         "text": "TypeScript",
         "path": "tools/typescript/"
        },
        {
         "text": "tsx",
         "path": "tools/tsx/"
        },
        {
         "text": "ts-node",
         "path": "tools/ts-node/"
        },
        {
         "text": "jiti",
         "path": "tools/jiti/"
        },
        {
         "text": "vue-tsc",
         "path": "tools/vue-tsc/"
        },
        {
         "text": "Cloudflare Workers Types",
         "path": "tools/cloudflare-workers-types/"
        },
        {
         "text": "mypy",
         "path": "tools/mypy/"
        },
        {
         "text": "tsconfig-paths",
         "path": "tools/tsconfig-paths/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "sumtypes",
       "me": true,
       "facts": [
        "MIT",
        "Gid 28",
        "38K/wk"
       ]
      }
     ],
     "more": "Compare sumtypes with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install sumtypes"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for sumtypes yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi sumtypes"
  ],
  [
   "Category",
   "Languages, types and runtimes"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "27.6"
  ],
  [
   "Rank in category",
   "#66 of 70"
  ],
  [
   "GitHub",
   "radix/sumtypes"
  ],
  [
   "Last change",
   "Nov 30, 2021"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/radix.png"
}