Hacker GitHub

← All repos

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

Mentions per year 10 mentions · busiest year 2022 (2)
20082026
  1. …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…
  2. 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)
  3. 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)
  4. 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?
  5. you can try this: https://github.com/yuce/pyswip
  6. …(eg json, or wrapper-language code to eval)", but was recently thinking of trying PySwip[1]. [1] https://github.com/yuce/pyswip
  7. something like this? https://github.com/yuce/pyswip
    comment by trenchgun · 2022-06-06 · in The Power of Prolog
  8. heres python integration https://github.com/yuce/pyswip
    comment by trenchgun · 2022-06-06 · in The Power of Prolog
  9. …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?
  10. …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…