strings 0.1.2
pip install strings==0.1.2
Latest version
Released:
Python strings for humans.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (MIT)
- Author: Daniel Greenfeld
- Tags python
Classifiers
- Development Status
- License
- Operating System
- Programming Language
- Topic
Project description
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.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (MIT)
- Author: Daniel Greenfeld
- Tags python
Classifiers
- Development Status
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file strings-0.1.2.tar.gz
.
File metadata
- Download URL: strings-0.1.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8398e184ccee0900772443179554dfde157b6472a5a18c4dc68fff10de8126e7 |
|
MD5 | 93074a9bc03574aa62c1f9b45ad98bd1 |
|
BLAKE2b-256 | bf25472d34792ee3816edcab999b5c00ce5e468ebd928ab5eff77f2a6738e37a |