A library for parsing gemtext (mimetype text/gemini) in python3.
|
%!s(int64=3) %!d(string=hai) anos | |
---|---|---|
gemtextparser | %!s(int64=3) %!d(string=hai) anos | |
.gitignore | %!s(int64=3) %!d(string=hai) anos | |
LICENSE | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
setup.py | %!s(int64=3) %!d(string=hai) anos |
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: