rtf-tokenize 1.0.0

Creator: bradpython12

Last updated:

0 purchases

rtf-tokenize 1.0.0 Image
rtf-tokenize 1.0.0 Images

Languages

Categories

Add to Cart

Description:

rtftokenize 1.0.0

RTF Tokenize
A simple RTF tokenizer.
API:
# Init:
from rtf_tokenize import RtfTokenizer
tokenizer = RtfTokenizer(rtf_string)
# Get next token (return `None` on end of string):
token = tokenizer.next_token()
# Rewind a token (next call to `next_token` will return it):
tokenizer.rewind_token(token)
# Current location (last tokenized, irrespective of rewound tokens):
position = tokenizer.lnum, tokenizer.cnum

Release history
1.0.0

first public release

License

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

Files In This Product:

Customer Reviews

There are no reviews.