# ollama/ollama-python SLOC report

> As of 2026-09-17 (commit b28b1e8a8cf5), ollama/ollama-python contains 6,391 total lines: 4,769 code, 482 comments, 1,140 blank, across 46 files in 4 languages (top: Python 98.8%). Default configuration. Counted with tokei via OctoCounts.

ollama/ollama-python has 4,769 source lines of code out of 6,391 total lines across 46 files, counted from the main ref at commit b28b1e8a8cf5 by the OctoCounts tokei engine on 2026-09-17. 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 ollama/ollama-python to commit b28b1e8a8cf5, 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 small codebase by counted code lines. Code represents 74.6% of all lines, comments represent 7.5%, and the repository averages 104 code lines per file. Python accounts for 98.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 41 | 5,854 | 4,711 | 135 | 1,008 |
| TOML | 1 | 67 | 58 | 0 | 9 |
| Markdown | 3 | 309 | 0 | 186 | 123 |
| Plain Text | 1 | 161 | 0 | 161 | 0 |

Top language (Python 98.8%). Generated at 2026-09-17T02:53:14.994643591+00:00. Canonical report: https://octocounts.com/github/ollama/ollama-python

## Reproduce this report

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

## Report FAQ

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

ollama/ollama-python has 6,391 total lines, including 4,769 code lines, 482 comment lines, and 1,140 blank lines.

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

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

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

This OctoCounts report was generated from main at commit b28b1e8a8cf5 on 2026-09-17T02:53:14.994643591+00:00.

## Similar repository reports

- [ai4s-research/ai4s-skills](https://octocounts.com/github/ai4s-research/ai4s-skills) — Python, 4,764 code lines
- [python-poetry/tomlkit](https://octocounts.com/github/python-poetry/tomlkit) — Python, 4,746 code lines
- [SYSTRAN/faster-whisper](https://octocounts.com/github/SYSTRAN/faster-whisper) — Python, 4,715 code lines
- [ArThirtyFour/MXU-modules](https://octocounts.com/github/ArThirtyFour/MXU-modules) — Python, 4,825 code lines
- [MxUserBot/MXU-modules](https://octocounts.com/github/MxUserBot/MXU-modules) — Python, 4,825 code lines
- [python-attrs/cattrs](https://octocounts.com/github/python-attrs/cattrs) — Python, 4,685 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)
