yuce/pyswip

PySwip is a Python-Prolog interface that enables querying SWI-Prolog in your Python programs.

70
/ 100
Verified

This tool helps software developers integrate Prolog's declarative logic programming capabilities directly into their Python applications. Developers can define logical rules and facts in Prolog, then query them programmatically from Python to perform tasks like symbolic reasoning or knowledge base inference. This is ideal for Python developers building intelligent systems that require complex rule-based decision making.

545 stars. Used by 1 other package. Available on PyPI.

Use this if you are a Python developer who needs to embed a Prolog knowledge base and query engine within your Python application.

Not ideal if you are not a developer or do not need to combine Python's versatility with Prolog's symbolic reasoning.

knowledge-representation declarative-programming expert-systems logical-reasoning AI-development
Maintenance 10 / 25
Adoption 11 / 25
Maturity 25 / 25
Community 24 / 25

How are scores calculated?

Stars

545

Forks

105

Language

Python

License

MIT

Last pushed

Feb 15, 2026

Commits (30d)

0

Reverse dependents

1

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/yuce/pyswip"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.