# openai/openai-python SLOC report

> As of 2026-08-31 (commit b19c2161b1ea), openai/openai-python contains 267,564 total lines: 224,862 code, 8,277 comments, 34,425 blank, across 1,623 files in 8 languages (top: Python 64.5%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving openai/openai-python to commit b19c2161b1ea, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 84.0% of all lines, comments represent 3.1%, and the repository averages 139 code lines per file. Python accounts for 64.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,586 | 178,809 | 145,070 | 3,709 | 30,030 |
| YAML | 3 | 80,395 | 79,272 | 6 | 1,117 |
| TOML | 2 | 317 | 235 | 47 | 35 |
| BASH | 9 | 200 | 145 | 19 | 36 |
| JSON | 3 | 81 | 81 | 0 | 0 |
| JavaScript | 1 | 50 | 41 | 4 | 5 |
| Shell | 1 | 27 | 18 | 4 | 5 |
| Markdown | 18 | 7,685 | 0 | 4,488 | 3,197 |

Top language (Python 64.5%). Generated at 2026-08-31T09:54:27.337046606+00:00. Canonical report: https://octocounts.com/github/openai/openai-python

## Report FAQ

### How many lines of code does openai/openai-python have?

openai/openai-python has 267,564 total lines, including 224,862 code lines, 8,277 comment lines, and 34,425 blank lines.

### How was the openai/openai-python line count measured?

OctoCounts resolved the public GitHub repository to commit b19c2161b1ea, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for openai/openai-python?

This OctoCounts report was generated from main at commit b19c2161b1ea on 2026-08-31T09:54:27.337046606+00:00.

## Similar repository reports

- [alirezarezvani/claude-skills](https://octocounts.com/github/alirezarezvani/claude-skills) — Python, 225,662 code lines
- [bytedance/deer-flow](https://octocounts.com/github/bytedance/deer-flow) — Python, 227,906 code lines
- [K-Dense-AI/scientific-agent-skills](https://octocounts.com/github/K-Dense-AI/scientific-agent-skills) — Python, 233,599 code lines
- [element-hq/synapse](https://octocounts.com/github/element-hq/synapse) — Python, 215,946 code lines
- [mukul975/Anthropic-Cybersecurity-Skills](https://octocounts.com/github/mukul975/Anthropic-Cybersecurity-Skills) — Python, 211,857 code lines
- [alexgreensh/token-optimizer](https://octocounts.com/github/alexgreensh/token-optimizer) — Python, 239,419 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
