Generate character and byte ranges
Project description
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
for element in character_range('aaa', 'aba', CharacterMap.ASCII_LOWERCASE):
print(element) # 'aaa', 'aab', ..., 'aay', 'aaz', 'aba'
for element in character_range(b'0', b'10', ByteMap.ASCII_LOWERCASE):
print(element) # b'0', b'1', ..., b'9', b'00', b'01', ..., b'09', b'10'
Installation
$ pip install character-range
Project details
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
character-range-0.1.0.tar.gz
(19.2 kB
view hashes)
Built Distribution
Close
Hashes for character_range-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cdbefd9ca4bbe98a7a2dfad3ba1d7620fb4c1f20b937012b7be72293194af4 |
|
MD5 | b6bd9c091d485ed1308194ddab238203 |
|
BLAKE2b-256 | 12f445925ac3a93487d2cab7a179cedb2d82979efc780def4eed749b1ef834fc |