# openai/openai-python SLOC report

> openai/openai-python: 338,219 code lines at commit 3dae6090cc31, counted with tokei-15.0.0 on 2026-11-13. Saved result 682085bc6b87332a97c78f213d18b9e828ec05dd95123fda4d08d781b6fa7e7e.

openai/openai-python has 338,219 source lines of code out of 396,737 total lines across 2,217 files, counted with tokei from the main ref at commit 3dae6090cc31 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving openai/openai-python to commit 3dae6090cc31, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

openai/openai-python: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 85.3% of all lines, comments represent 2.8%, and the repository averages 153 code lines per file. Python accounts for 63.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 2,156 | 261,192 | 213,833 | 5,054 | 42,305 |
| YAML | 3 | 115,522 | 114,318 | 18 | 1,186 |
| JSON | 8 | 9,030 | 9,030 | 0 | 0 |
| JavaScript | 6 | 341 | 305 | 4 | 32 |
| TOML | 1 | 272 | 221 | 23 | 28 |
| BASH | 10 | 248 | 181 | 23 | 44 |
| HTML | 3 | 174 | 174 | 0 | 0 |
| Shell | 3 | 125 | 106 | 14 | 5 |
| Forge Config | 1 | 43 | 41 | 2 | 0 |
| Dockerfile | 1 | 10 | 10 | 0 | 0 |
| Markdown | 25 | 9,780 | 0 | 5,845 | 3,935 |

Top language: Python 63.2%. Generated on November 13, 2026. Canonical report: https://octocounts.com/github/openai/openai-python/commit/3dae6090cc31cc64a437fe0bcee740b6d81ed2cc?reportId=682085bc6b87332a97c78f213d18b9e828ec05dd95123fda4d08d781b6fa7e7e&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

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

## Report FAQ

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

openai/openai-python has 338,219 lines of code, plus 10,983 comment lines and 47,535 blank lines, for 396,737 total lines at commit 3dae6090cc31 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 3dae6090cc31, 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 3dae6090cc31 on November 13, 2026.

## Similar repository reports

- [IBM/mcp-context-forge](https://octocounts.com/github/IBM/mcp-context-forge) — Python, 338,818 code lines
- [angr/angr](https://octocounts.com/github/angr/angr) — Python, 338,955 code lines
- [homeassistant-ai/ha-mcp](https://octocounts.com/github/homeassistant-ai/ha-mcp) — Python, 344,502 code lines
- [menglimi/astrbot_plugin_private_companion_v2](https://octocounts.com/github/menglimi/astrbot_plugin_private_companion_v2) — Python, 331,869 code lines
- [pydantic/pydantic-ai](https://octocounts.com/github/pydantic/pydantic-ai) — Python, 345,821 code lines
- [kvcache-ai/ktransformers](https://octocounts.com/github/kvcache-ai/ktransformers) — Python, 328,652 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
