Skip to content

Python: v0.1.3 - New package name

Compare
Choose a tag to compare
@benbrandt benbrandt released this 09 Jun 04:44
· 549 commits to main since this release

Had to adjust the package name so that it could upload to PyPi

from text_splitter import CharacterTextSplitter

# Maximum number of characters in a chunk
max_characters = 1000
# Optionally can also have the splitter trim whitespace for you
splitter = CharacterTextSplitter(trim_chunks=True)

chunks = splitter.chunks("your document text", max_characters)

Full Changelog: python-v0.1.2...python-v0.1.3