yuce/pyswip

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

80
/ 100
Verified

Leverages SWI-Prolog's shared library via ctypes for zero-compilation installation, eliminating native build dependencies. Offers multiple query interfaces—from high-level `Prolog.query()` for straightforward fact retrieval to low-level foreign function registration for embedding Python callbacks directly in Prolog rules. Supports both dynamic assertions and loading external knowledge bases from .pl files.

545 stars and 13,869 monthly downloads. Used by 1 other package. Available on PyPI.

Maintenance 10 / 25
Adoption 21 / 25
Maturity 25 / 25
Community 24 / 25

How are scores calculated?

Stars

545

Forks

105

Language

Python

License

MIT

Last pushed

Feb 15, 2026

Monthly downloads

13,869

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.