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)

  • solving discrete constraint problems.

In particular, pyDatalog can be used as a query language:

  • it can perform multi-database queries (from memory datastore, 11 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.12.0.zip (54.3 kB view details)

Uploaded Source

File details

Details for the file pyDatalog-0.12.0.zip.

File metadata

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

File hashes

Hashes for pyDatalog-0.12.0.zip
Algorithm Hash digest
SHA256 2de5d38d9d7a013561a8bec6dbeb98fdc67d9e5c5e57495a6f9c1fab16dc873c
MD5 9666ddbf19185991a8906f538e31b96f
BLAKE2b-256 da71df99d9cbcdf22a356d82eac0fb7a407f537e03a9f6380182a88faa620e69

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