File: bindings.md

package info (click to toggle)
gumbo-parser 0.13.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,900 kB
  • sloc: ansic: 30,496; cpp: 3,836; python: 890; makefile: 93; sh: 15
file content (43 lines) | stat: -rw-r--r-- 1,993 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
## Python bindings

To install the Python bindings, make sure that the C library is installed first,
and then `sudo python setup.py install` from the root of the distro. This
installs a 'gumbo' module; `pydoc gumbo` should tell you about it.

Recommended best-practice for Python usage is to use one of the adapters to an
existing API (personally, I prefer BeautifulSoup) and write your program in
terms of those. The raw CTypes bindings should be considered building blocks for
higher-level libraries and rarely referenced directly.

## Other language bindings and tools

Many other language bindings and tools are available in other repositories.
They are based on the [original GitHub repository], but migrating them to newer
versions from this repository should not be difficult since there has been no
significant compatibility discrepancy with the old Gumbo.

* C++: [gumbo-query] by lazytiger
* Ruby: [ruby-gumbo] by Nicolas Martyanoff
* Node.js: [node-gumbo-parser] by Karl Westin
* D: [gumbo-d] by Christopher Bertels
* Lua: [lua-gumbo] by Craig Barnes
* Objective-C:
  * [ObjectiveGumbo] by Programming Thomas
  * [OCGumbo] by TracyYih
* C#: [GumboBindings] by Vladimir Zotov
* Perl: [HTML::Gumbo] by Ruslan Zakirov
* Julia: [Gumbo.jl] by James Porter
* C/Libxml: [gumbo-libxml] by Jonathan Tang

[original GitHub repository]: https://github.com/google/gumbo-parser
[gumbo-query]: https://github.com/lazytiger/gumbo-query
[ruby-gumbo]: https://github.com/nevir/ruby-gumbo
[node-gumbo-parser]: https://github.com/karlwestin/node-gumbo-parser
[gumbo-d]: https://github.com/bakkdoor/gumbo-d
[lua-gumbo]: https://github.com/craigbarnes/lua-gumbo
[ObjectiveGumbo]: https://github.com/programmingthomas/ObjectiveGumbo
[OCGumbo]: https://github.com/tracy-e/OCGumbo
[GumboBindings]: https://github.com/rgripper/GumboBindings
[HTML::Gumbo]: https://metacpan.org/pod/HTML::Gumbo
[Gumbo.jl]: https://github.com/porterjamesj/Gumbo.jl
[gumbo-libxml]: https://github.com/nostrademons/gumbo-libxml