# openai/openai-python SLOC report

> As of 2026-09-21 (commit 69a2c1db6fea), openai/openai-python contains 320,616 total lines: 270,647 code, 9,511 comments, 40,458 blank, across 1,974 files in 8 languages (top: Python 63.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

openai/openai-python has 270,647 source lines of code out of 320,616 total lines across 1,974 files, counted from the main ref at commit 69a2c1db6fea by the OctoCounts tokei engine on 2026-09-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving openai/openai-python to commit 69a2c1db6fea, 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.4% of all lines, comments represent 3.0%, and the repository averages 137 code lines per file. Python accounts for 63.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,927 | 213,188 | 173,021 | 4,410 | 35,757 |
| YAML | 3 | 97,932 | 96,794 | 6 | 1,132 |
| JavaScript | 6 | 341 | 305 | 4 | 32 |
| TOML | 2 | 317 | 235 | 47 | 35 |
| BASH | 10 | 245 | 177 | 22 | 46 |
| JSON | 4 | 97 | 97 | 0 | 0 |
| Shell | 1 | 27 | 18 | 4 | 5 |
| Markdown | 21 | 8,469 | 0 | 5,018 | 3,451 |

Top language (Python 63.9%). Generated at 2026-09-21T09:06:21.250665724+00:00. Canonical report: https://octocounts.com/github/openai/openai-python

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/openai/openai-python/commit/69a2c1db6feacf32be6693809e7cab1c3b49cad7?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

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

openai/openai-python has 320,616 total lines, including 270,647 code lines, 9,511 comment lines, and 40,458 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 69a2c1db6fea, 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 69a2c1db6fea on 2026-09-21T09:06:21.250665724+00:00.

## Similar repository reports

- [kovidgoyal/kitty](https://octocounts.com/github/kovidgoyal/kitty) — Python, 272,599 code lines
- [angr/angr](https://octocounts.com/github/angr/angr) — Python, 274,750 code lines
- [alirezarezvani/claude-skills](https://octocounts.com/github/alirezarezvani/claude-skills) — Python, 277,686 code lines
- [imbad0202/academic-research-skills](https://octocounts.com/github/imbad0202/academic-research-skills) — Python, 279,102 code lines
- [bytedance/deer-flow](https://octocounts.com/github/bytedance/deer-flow) — Python, 260,633 code lines
- [matplotlib/matplotlib](https://octocounts.com/github/matplotlib/matplotlib) — Python, 256,762 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)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
