# openai/openai-python SLOC report

> openai/openai-python: 318,322 code lines at commit de6d70d5c50e, counted with tokei-14.0.0 on 2026-10-21. Saved result b4a4de2ab4f0f40a6b921a611701582296dea769f5c4977392a300548355dc5e.

openai/openai-python has 318,322 source lines of code out of 373,897 total lines across 2,138 files, counted from the main ref at commit de6d70d5c50e by the OctoCounts tokei engine on 2026-10-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 de6d70d5c50e, 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 85.1% of all lines, comments represent 2.9%, and the repository averages 149 code lines per file. Python accounts for 63.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 2,072 | 245,036 | 200,427 | 4,863 | 39,746 |
| YAML | 3 | 109,271 | 108,082 | 18 | 1,171 |
| JSON | 11 | 8,752 | 8,752 | 0 | 0 |
| JavaScript | 6 | 341 | 305 | 4 | 32 |
| TOML | 2 | 332 | 248 | 49 | 35 |
| BASH | 10 | 245 | 177 | 22 | 46 |
| 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 | 26 | 9,568 | 0 | 5,784 | 3,784 |

Top language (Python 63.0%). Generated at 2026-10-21T02:55:14.813569223Z. Canonical report: https://octocounts.com/github/openai/openai-python/commit/de6d70d5c50ef1b9d3e5068b6e25ea52f447a8cb?reportId=b4a4de2ab4f0f40a6b921a611701582296dea769f5c4977392a300548355dc5e&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/de6d70d5c50ef1b9d3e5068b6e25ea52f447a8cb?reportId=b4a4de2ab4f0f40a6b921a611701582296dea769f5c4977392a300548355dc5e&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 373,897 total lines, including 318,322 code lines, 10,756 comment lines, and 44,819 blank lines.

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

OctoCounts resolved the public GitHub repository to commit de6d70d5c50e, 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 de6d70d5c50e on 2026-10-21T02:55:14.813569223Z.

## Similar repository reports

- [hsliuping/TradingAgents-CN](https://octocounts.com/github/hsliuping/TradingAgents-CN) — Python, 319,622 code lines
- [hugohe3/ppt-master](https://octocounts.com/github/hugohe3/ppt-master) — Python, 323,567 code lines
- [HKUDS/Vibe-Trading](https://octocounts.com/github/HKUDS/Vibe-Trading) — Python, 310,617 code lines
- [topoteretes/cognee](https://octocounts.com/github/topoteretes/cognee) — Python, 327,698 code lines
- [kvcache-ai/ktransformers](https://octocounts.com/github/kvcache-ai/ktransformers) — Python, 328,578 code lines
- [run-llama/llama_index](https://octocounts.com/github/run-llama/llama_index) — Python, 307,316 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)
