Skip to main content

message-splitter

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 Actions
msgsplitter-1.0-py3-none-any.whl Python 3 none any Details for msgsplitter-1.0-py3-none-any.whl

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

Security for msgsplitter 1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

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