Skip to main content

A pure-python implementation of a truly declarative subset of prolog. Run logic queries on databases or python objects, and use logic clauses to define python classes.

Project description

pyDatalog adds the logic programming paradigm to python’s toolbox, in a pythonic way. You can now run logic queries on databases or python objects, and use logic clauses to define python classes.

Datalog is a truly declarative subset of prolog that is best at

  • managing large sets of related information (e.g. in data integration or the semantic web).

  • simulating intelligent behavior (e.g. in games),

  • performing recursive algorithms (e.g. in network protocol, code and graph analysis)

  • at solving discrete constraint problems.

In particular, pyDatalog can be used as query language:

  • 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.2.zip (59.7 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.2.win32.exe (104.7 kB view details)

Uploaded Source

File details

Details for the file pyDatalog-0.11.2.zip.

File metadata

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

File hashes

Hashes for pyDatalog-0.11.2.zip
Algorithm Hash digest
SHA256 8658e3016eefb8e18d7e081304c10cc2302f831478c8e210cc3751f4659e1a05
MD5 8b4d14e0bc08c51b6b57b73aff8c186a
BLAKE2b-256 0566988fa7695943cf020505612fa4bba40d1a1f404832fc1a55ead113e28192

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyDatalog-0.11.2.win32.exe
Algorithm Hash digest
SHA256 30d33dd5ca600f71e30c6b3c6e198cf0ddf0102338158cbc4992cdf8b8d7528f
MD5 cc9290d40a3f2bf92373adf1f5661a5f
BLAKE2b-256 1824c54c4124b6924d559de990641884f3546f7d2822587c9b8f7fd671770d3e

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