character-range 0.2.0

Creator: codyrutscher

Last updated:

Add to Cart

Description:

characterrange 0.2.0

Character range


This package does exactly what it says on the tin:
Create a string or bytes range.
from character_range import (
ByteMap, character_range, CharacterMap,
string_range, bytes_range
)

print(list(character_range('a', 'z')))
# 'a', 'b', ..., 'y', 'z'

for element in string_range('aaa', 'aba', CharacterMap.ASCII_LOWERCASE):
print(element) # 'aaa', 'aab', ..., 'aay', 'aaz', 'aba'

for element in bytes_range(b'0', b'10', ByteMap.ASCII_LOWERCASE):
print(element) # b'0', b'1', ..., b'9', b'00', b'01', ..., b'09', b'10'

For more information, see the documentation.
Installation
This package is available on PyPI:
$ pip install character-range

Contributing
Please see Contributing for more information.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.