Non-empty string
Project description
nonemptystr
Non-empty string.
Usage
from nonemptystr import EmptyString, nonemptystr
name: nonemptystr = nonemptystr("John")
try:
name = nonemptystr("")
except EmptyString:
print("The name is empty.")
API
Module nonemptystr
class nonemptystr(obj: object)
Subclass of str
.
Raise EmptyString
exception if str(obj)
is empty string.
class EmptyString
Subclass of ValueError
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nonemptystr-0.1.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for nonemptystr-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f26ee6951f5483e7b12985da5b9498b9edd8084db42b9442eb22ddc19a126623 |
|
MD5 | 66e24740ddd1d6b2ed6694709e0a06f5 |
|
BLAKE2b-256 | d98e152c5b3173eec0c55ff4797e557233cdbb8b8752520b0b45ca86a0d1c24a |