sentence-stream
A small sentence splitter for text streams
Decision gist · record as of 2026-08-14
Yes, if you need to split sentences from text that arrives in arbitrary chunks or streams. The low install friction, active maintenance, permissive license, and focused scope make it a straightforward addition to streaming pipelines. Not necessary if your text is already buffered or sentence-aligned.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low friction: pure Python wheel with a single runtime dependency (regex).
- Last commit 2026-08-11 and active maintenance status suggest the project is current.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions—suitable for most projects.
last release 2026-01-08 (218 days) · last repo commit 2026-08-11 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 375,237 downloads/mo, #7,140 on PyPI
Alternatives
Verify before relying
pip install sentence-stream
from sentence_stream import stream_to_sentences
text_chunks = ["Hello world", ". This is", " a test."]
sentences = list(stream_to_sentences(text_chunks))
# For async: from sentence_stream import async_stream_to_sentences- Whether regex dependency adds meaningful overhead or compatibility constraints beyond what sentence-stream itself requires.
- Performance characteristics on very large streams or highly fragmented chunk boundaries.
What it is and what it does
Sentence Stream is a lightweight sentence splitter designed to handle text that arrives in arbitrary chunks—such as streaming responses from language models or network I/O—and reassemble them into complete sentences. Rather than requiring text to be buffered until word or sentence boundaries align, it processes chunks as they arrive and yields complete sentences when boundaries are detected.
The package provides both synchronous (stream_to_sentences) and asynchronous (async_stream_to_sentences) interfaces, making it suitable for integration into streaming pipelines. It depends only on the regex library and supports Python 3.9 through 3.13, keeping installation friction minimal.
Use it for
- Process streaming LLM responses to extract complete sentences as they arrive, without buffering entire outputs.
- Split real-time chat or voice transcription streams into sentence units for downstream NLP processing.
- Handle network-streamed text (e.g., HTTP chunked responses) and emit complete sentences incrementally.
- Build sentence-aware streaming pipelines in async applications where text arrives in unpredictable fragment sizes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to split sentences from text that arrives in arbitrary chunks or streams.
The low install friction, active maintenance, permissive license, and focused scope make it a straightforward addition to streaming pipelines. Not necessary if your text is already buffered or sentence-aligned.
Install
sentence-stream on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (regex). Last commit 2026-08-11 and active maintenance status suggest the project is current.
Requires Python 3.9 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install sentence-stream
from sentence_stream import stream_to_sentences
text_chunks = ["Hello world", ". This is", " a test."]
sentences = list(stream_to_sentences(text_chunks))
# For async: from sentence_stream import async_stream_to_sentences
Verify before relying
- Whether regex dependency adds meaningful overhead or compatibility constraints beyond what sentence-stream itself requires.
- Performance characteristics on very large streams or highly fragmented chunk boundaries.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageregex |
| Maintenance | Actively maintained 218 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 375,237 / month, #7,140 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Text Processing :: Linguistic |
Evidence: sentence_stream-1.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sentence splitter streaming”
- sentence-streamSplits text streams into sentences even when chunks arrive at…
- segtokSplits Indo-European text into sentences and words using rule-based…
- PyRuSHPyRuSH segments clinical and telegraphic text into sentences using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Linguistic packages
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
tiktoken is a fast BPE tokenizer that converts text into token sequences compatible with OpenAI models, supporting multiple encoding schemes including o200k_base and model-specific encodings.
Install it if you work with OpenAI APIs or need to understand token boundaries in GPT-family models.
Detects character encoding and language in byte sequences with high accuracy, supporting 99 encodings and returning confidence scores, language tags, and MIME types.
Install it if you need to detect character encoding or language in byte data; the rewrite makes it substantially faster and more accurate than its predecessors.
Converts Unicode text to ASCII by transliterating non-ASCII characters into their closest ASCII equivalents, with no runtime dependencies.
However, if transliteration quality or ongoing maintenance matters, consider unidecode instead despite its GPL-only license.
Lark is a parsing library that builds abstract syntax trees from context-free grammars, supporting multiple parsing algorithms (Earley, LALR(1), CYK) with automatic line and column tracking.
Python bindings to the tree-sitter parsing library, enabling incremental parsing and syntax tree analysis for source code.
See also semantic-text-splitter · pysbd · segtok · minisbd · memchunk · PyRuSH · razdel · chonkie-core · uniseg · streamlink