Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Logic Programming Python Packages

Python packages with the GitHub topic logic-programming. Sorted by monthly downloads, with stars and forks.
pythological
minikanren

An extensible, lightweight relational/logic programming DSL written in pure Python

820K 253 22
pythological
logical-unification

Straightforward unification in Python that's extensible via generic functions.

816K 53 7
potassco
clingo

🦉 A grounder and solver for logic programs.

244K 866 106
synalinks
synalog

Logic programming for AI agents: Datalog-family language compiling to optimized SQL

32K 20 2
yuce
pyswip

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

25K 552 104
potassco
clingo-funasp

🦉 A grounder and solver for logic programs.

22K 866 106
simon-kohaut
pyresin

Reactive probabilistic logic programming with Reactive Circuits: exact, incremental inference over asynchronous data streams.

5K 2 0
lab-v2
pyreason

An explainable inference software supporting annotated, real valued, graph based and temporal logic

4K 356 41
evgskv
logica

Logica is a logic programming language that compiles to SQL. It runs on DuckDB, Google BigQuery, PostgreSQL and SQLite.

4K 2K 115
knowsys
nemo-python

A fast in-memory rule engine

2K 318 26
LukasZahradnik
neuralogic

PyNeuraLogic lets you use Python to create Differentiable Logic Programs

2K 314 25
Volland
leanelpi

λProlog inside Lean 4: write tactics, commands and proof search as logic programs, share types with Lean both ways, get kernel-checked proofs

2K 12 1
andrewgoodchild
tiny-datalog

Datalog as an executable textbook — one readable engine and supporting lessons.

1K 1 0
MesTTo
pymetta

MeTTa, Hyperon's AGI language, based on PeTTa semantics with significant extensions.

1K 1 1
Auctalis
nocturnusai

Verified knowledge for AI agents. Compress context, extract and store facts, define rules, and ask questions — get deterministic answers with proof, not LLM guesses. Connect agents via MCP, Python SDK, TypeSc

1K 3 0
mnoorfawi
pytholog

Python library that enables using prolog syntax and logic programming in python

877 131 22
andyjost
currylang

An implementation of the multi-paradigm programming language Curry, embedded in Python.

701 7 2
markomanninen
calchylus

Lambda Calculus with Hy - Docs: http://calchylus.readthedocs.io/

662 3 0
synalinks
semantic-layers

Install and connect semantic layers: business definitions as verified, executable synalog predicates.

587 2 1
BrainyBlaze
pyxlog

XLOG is a GPU-native logic programming language for unified symbolic reasoning. GPU-accelerated Datalog engine with probabilistic inference, inductive logic programmimg, and neural-symbolic integration.

515 7 1
bramucas
xclingo

A tool for explainability and debugging in Answer Set Programming.

463 17 7
reasoned-ai
pynorm

Neural Logic Programming Language

390 9 1
logictensornetworks
ltn

Deep Learning and Logical Reasoning from Data and Knowledge

389 376 72
rikarazome
prolog-reasoner

SWI-Prolog as a logic calculator for LLMs — MCP server and Python library

368 12 1
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology