go-org-py

This commit is contained in:
fz0x1 2025-06-23 17:25:28 +02:00
commit 48bddd4a93
Signed by: fz0x1
GPG key ID: 6F81647BE1B459F4
9 changed files with 394 additions and 0 deletions

24
README.md Normal file
View file

@ -0,0 +1,24 @@
# go-org-py
go-org-py provides Python bindings for
[go-org](https://github.com/niklasfasching/go-org), a fast and accurate Org-mode
parser and renderer written in Go. The bindings are generated using gopy,
enabling direct access to go-org functionality from Python.
## install
```bash
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/go-python/gopy@master
pip install git+https://git.fz0x1.wtf/fz0x1/go-org-py.git
```
## using
```python
from go_org_py import convert
html = convert.OrgToHTML("* test")
# or
html = convert.Render("* test", <path file>, "html")
```