yuce/pyswip
View on GitHub ↗ ★ 549 Python
PySwip is a Python-Prolog interface that enables querying SWI-Prolog in your Python programs.
10 mentions on Hacker News by 6 people: 0 stories, 10 comments · first 2020-09-27 · latest 2026-01-07
20082026
-
…which you should check out, but PySwip seemed like "the right thing" when I was looking at it: https://github.com/yuce/pyswip/ ...documentation is extremely sparse, and assumes you already know prolog, but here's a slightly better example…
comment by ramses0 · 2026-01-07 · in “Stop Designing Languages. Write Libraries Instead” (2016) -
There are a bunch of libraries that will do this - here's one example of a python one: https://github.com/yuce/pyswip - and a ruby one: https://github.com/preston/ruby-prolog
comment by dflock · 2025-11-12 · in Learn Prolog Now (2006) -
There are a bunch of libraries that will do this - here's one example of a python one: https://github.com/yuce/pyswip - and a ruby one: https://github.com/preston/ruby-prolog
comment by dflock · 2025-11-12 · in Learn Prolog Now (2006) -
Thanks for the link. I have played with PySwip ( https://github.com/yuce/pyswip ), and the MQI looks like a more maintainable approach to integrating SWI-Prolog with Python ( https://github.com/SWI-Prolog/packages-mqi ). The biggest source…
comment by networked · 2024-07-18 · in Ask HN: What's Prolog like in 2024? -
you can try this: https://github.com/yuce/pyswip
comment by gieksosz · 2023-11-21 · in Find Legal Moves in Brass Birmingham with Datalog -
…(eg json, or wrapper-language code to eval)", but was recently thinking of trying PySwip[1]. [1] https://github.com/yuce/pyswip
comment by mncharity · 2023-01-18 · in Tar.pl – A tar creator and extractor in ~130 lines of Prolog -
something like this? https://github.com/yuce/pyswip
comment by trenchgun · 2022-06-06 · in The Power of Prolog -
heres python integration https://github.com/yuce/pyswip
comment by trenchgun · 2022-06-06 · in The Power of Prolog -
…fit for most problems, but prolog is a nice language for writing problem-appropriate search. [1] https://github.com/yuce/pyswip
comment by mncharity · 2021-01-06 · in Why Learn Prolog in 2021? -
…Picat might be interesting, but seemingly stumbles a bit on lack of dynamic predicates.[2][3] [1] https://github.com/yuce/pyswip [2] http://picat-lang.org/download/picat_compared_to_prolog_hask... [3] https://www.swi-prolog.org/pldoc/man?se…
comment by mncharity · 2020-09-27 · in Picat 3.0 released (logic-based multi-paradigm programming language)