Skip to main content

Sentence Stream

A small sentence splitter for text streams.

Install

pip install sentence-stream

Example

from sentence_stream import stream_to_sentences

text_chunks = [
    "Text chunks that a",
    "re not on",
    " word or se",
    "ntence boundarie",
    "s. But, they w",
    "ill sti",
    "ll get sp",
    "lit right",
    "!!! Goo",
    "d",
]

assert list(stream_to_sentences(text_chunks)) == [
    "Text chunks that are not on word or sentence boundaries.",
    "But, they will still get split right!!!",
    "Good",
]

For async streams, use async_stream_to_sentences.

Metadata

Release files for sentence-stream 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentence-stream 1.3.0
File Size Uploaded
sentence_stream-1.3.0.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sentence-stream 1.3.0
File Interpreter ABI Platform
sentence_stream-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / sentence_stream-1.3.0.tar.gz

Download URL sentence_stream-1.3.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b06261d35729de97df9002a1cc708f9a888f662b80d5d6d008ee69c51f36041b
BLAKE2b-256 checksum
How to use checksums
a869f3d048692aac843f41102507f6257138392ec841c16718f0618d27051caf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 8, 2026.

Transparency log

Release files / sentence_stream-1.3.0-py3-none-any.whl

Download URL sentence_stream-1.3.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7448d131315b85eefdf238e5edd9caa62899acf609145d5e0e10c09812eb8a1d
BLAKE2b-256 checksum
How to use checksums
48b648339c109bab6f54ff608800773b9425464c6cbf7fd3f2ba01294d78be3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page