sumtypes
Algebraic types for Python providing sum types and tagged unions.
Languages, types and runtimes PyPI MIT
Used in agent projects
20
0.2% of 12,697 public repos built with AI coding agents
Rank in languages, types and runtimes
#18 of 18
by use in those projects
Downloads
34.2K
PyPI, last 7 days, sumtypes
GitHub stars
44
last push Nov 30, 2021
How sumtypes is used
sumtypes is a dependency in 20 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #18 of 18 in languages, types and runtimes. The most used alternative there is TypeScript. Projects that use it most often also use AnyIO (100.0%), attrs (100.0%), borsh-construct (100.0%).
Often used with sumtypes
| AnyIO | 100.0% of sumtypes projects · 68.3× more than average |
|---|---|
| attrs | 100.0% of sumtypes projects · 99.2× more than average |
| borsh-construct | 100.0% of sumtypes projects · 362.8× more than average |
| Construct | 100.0% of sumtypes projects · 109.5× more than average |
| solana-py | 100.0% of sumtypes projects · 37.1× more than average |
Install
| Package | pip install sumtypes |
|---|---|
| Main stacks | Python (20) |
| Example projects | solana-developers/solana-cookbook, henrytirla/Solana-Trading-Bot, everlastingsong/whirlpool-essentials, gowthamsp0606/VOLTX, gabrielfior/solana-analytics-101 |
Alternatives to sumtypes
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| TypeScript npm Language for application-scale JavaScript development with static type checking. |
7,092 (55.9%) | 305M | 111K | Apache-2.0 |
| tsx npm Node.js enhanced with esbuild to run TypeScript and ESM files. |
1,262 (9.9%) | 96.8M | 12.2K | MIT |
| ts-node npm TypeScript execution environment for Node.js with source map support. |
865 (6.8%) | 45.6M | 13.1K | MIT |
| vue-tsc npm TypeScript type checker for Vue.js single-file components. |
111 (0.9%) | 6.5M | 6,724 | MIT |
| tsconfig-paths npm Module resolution utility that loads Node.js modules according to TypeScript path mappings. |
86 (0.7%) | 113M | 1,908 | MIT |
| Cloudflare Workers Types npm TypeScript type definitions for Cloudflare Workers runtime. |
84 (0.7%) | 12.1M | 8,888 | MIT OR Apache-2.0 |
| jiti npm Runtime TypeScript and ESM support for Node.js without build steps. |
84 (0.7%) | 19M | 2,973 | MIT |
| CFFI pypi Foreign Function Interface for calling C code from Python. |
84 (0.7%) | 248M | 280 | — |