Skip to main content
https://img.shields.io/travis/elijas/msgsplitter https://img.shields.io/pypi/v/msgsplitter https://img.shields.io/pypi/pyversions/msgsplitter https://img.shields.io/github/license/elijas/msgsplitter

Splits long message to multiple messages in order to fit within an arbitrary message length limit (useful for SMS, Twitter, etc.).

Installation

~ $ pip install msgsplitter

or you can install local version

~ $ pip install -e .

Quick start

>>> import msgsplitter
>>> result = msgsplitter.split("Hello, this is a really long message.", length_limit=30)
>>> result
['Hello, this is a really (1/2)', 'long message. (2/2)']

Run tests

$ pytest

Metadata

Release files for msgsplitter 1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for msgsplitter 1.0
File Interpreter ABI Platform
msgsplitter-1.0-py3-none-any.whl Python 3 none any Details

Release files / msgsplitter-1.0-py3-none-any.whl

Download URL msgsplitter-1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4a959f7009d96f2f38679e991ad67ac48e4fd98ed36b351b7de5a2f00725e74
BLAKE2b-256 checksum
How to use checksums
5ce61ce0c4d5d049eee241907d8f088bcfd7078a78882920292814b0c2f4d8d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

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