A library for parsing gemtext (mimetype text/gemini) in python3.
Björn Wärmedal 2cab467aef Added method for getting the whole text line from the gemtext line class | 3 年 前 | |
---|---|---|
gemtextparser | 3 年 前 | |
.gitignore | 3 年 前 | |
LICENSE | 3 年 前 | |
README.md | 3 年 前 | |
setup.py | 3 年 前 |
A library for parsing gemtext (mimetype text/gemini) in python3.
usage: gemtextparser [-h] [-f FILE]
A library and CLI tool for parsing and validating gemtext (mimetype text/gemini) in python3.
optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE File to validate
As library:
import gemtextparser
parser = gemtextparser.GemtextParser()
line = gp.parseLine("# Some Gemtext string here.")
print(f"The line is of type {line.linetype.name} with the text '{line.text()}'.")
When used as a library it provides the developer with the following: