Skip to main content

Very simple char functions

Project description

Charred

Very simple package with is_ascii_char, is_same_char, is_string, is_unicode_char and repeat_char methods.

I will probably add more later.

Install package:

pip install charred

# or pip3

Usage:

from charred import is_ascii_char, is_same_char, is_string, is_unicode_char, repeat_char

>>> is_ascii_char('$')
True
>>> is_ascii_char('£')
False

>>> is_same_char('FF')
True
>>> is_same_char('FD')
False

>>> is_string('F')
True
>>> is_string(1)
False

>>> is_unicode_char('£')
True
>>> is_unicode_char('F')
False

>>> repeat_char('F', 6)
FFFFFF

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

charred-0.1.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

charred-0.1.1-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page