Skip to main content

Python strings for humans.

Usage:

>>> from strings import string
>>> s = string("Hello, World")
>>> s
'Hello, World'
>>> s.len()
12
>>> s.length
12
>>> s.size
12
>>> s + ", What?"
Traceback (most recent call last):
  File "strings.py", line 27, in <module>
    x = s.add(", world")
  File "strings.py", line 20, in add
    return self + string(value)
  File "strings.py", line 23, in __add__
    raise NotImplementedError("Use add instead")
NotImplementedError: Use add instead
>>> s.add(", What?")
'Hello, World, What?'

Background

Inspired by an April Fool’s Day joke.

Release files for strings 0.1.2

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

Source distribution (sdist)

Source distribution for strings 0.1.2
File Size Uploaded
strings-0.1.2.tar.gz 2.2 kB Details

Release files / strings-0.1.2.tar.gz

Download URL strings-0.1.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8398e184ccee0900772443179554dfde157b6472a5a18c4dc68fff10de8126e7
BLAKE2b-256 checksum
How to use checksums
bf25472d34792ee3816edcab999b5c00ce5e468ebd928ab5eff77f2a6738e37a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

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