Skip to main content

A pure-python implementation of a subset of prolog, using SLG algorithm with memoization

Project description

pyDatalog embeds logic programming in python. Assert facts and insert logic clauses directly in your python code, and use the inference engine to resolve complex, recursive queries fast.

Datalog is a subset of prolog that is best at managing large sets of related information (e.g. in data integration or the semantic web). at simulating intelligent behavior (e.g. in games), at performing recursive algorithms (e.g. in network protocol, code and graph analysis) or at solving discrete constraint problems.

In particular, pyDatalog can be used for object-relational mapping: it can perform multi-database queries (from memory datastore, relational databases, and noSQL database with appropriate connectors) it is more expressive than SQL, with a cleaner syntax; it facilitates re-use of SQL code snippet (e.g. for frequent joins or formula); it offloads the database server by performing joins on the application tier.

Datalog excels at accelerated development : Datalog programs are often shorter than their python equivalent, and Datalog statements can be specified in any order, as simply as formula in a spreadsheet.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyDatalog-0.11.zip (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyDatalog-0.11.win32.exe (134.6 kB view details)

Uploaded Source

File details

Details for the file pyDatalog-0.11.zip.

File metadata

  • Download URL: pyDatalog-0.11.zip
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyDatalog-0.11.zip
Algorithm Hash digest
SHA256 80d7c00ce24fbf1eccd569685edbf31d2abb2f4579bb11d69ff6615ec87436ee
MD5 40088e02f700be2f79f5940823eca7c2
BLAKE2b-256 9333d25502ac6f83198ac1c635e9d1c3de4bb093c87d6ef622323b76a1874c2b

See more details on using hashes here.

File details

Details for the file pyDatalog-0.11.win32.exe.

File metadata

  • Download URL: pyDatalog-0.11.win32.exe
  • Upload date:
  • Size: 134.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyDatalog-0.11.win32.exe
Algorithm Hash digest
SHA256 a6e084c5a69c275792f0ce4eff034ec39d39b5ac2f2d6c8dd6bd4abe8a79a614
MD5 32ef4ba57192a0bc1e2e35d4d81bc1a3
BLAKE2b-256 d95b9d238a06f85e67a028ee012c8dd0a392b4ffb91a7552c848200fd52d696c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page