Skip to main content

A pure-python implementation of Datalog, a truly declarative language derived from Prolog.

Project description

##1. Description The main goal of pyDatalog is to introduce Datalog as a Domain Specific Language (DSL) inside Python syntax and programs.

###1.1 pyDatalog

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. 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);

###1.2 Datalog

#### Datalog = SQL + recursivity Datalog is a truly declarative language derived from Prolog, with strong academic foundations. It complements Python very well for:

  • managing complex 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, parsing)
  • solving discrete constraint problems.

#### Simple as Excel 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.

requirements, bugs…

Project details


Download files

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

Files for pyDatalog, version 0.17.1
Filename, size File type Python version Upload date Hashes
Filename, size pyDatalog-0.17.1-cp27-none-win32.whl (208.1 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size pyDatalog-0.17.1-cp27-none-win_amd64.whl (229.5 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size pyDatalog-0.17.1-cp33-none-win32.whl (207.4 kB) File type Wheel Python version 3.3 Upload date Hashes View
Filename, size pyDatalog-0.17.1-cp33-none-win_amd64.whl (219.4 kB) File type Wheel Python version 3.3 Upload date Hashes View
Filename, size pyDatalog-0.17.1-cp34-none-win32.whl (207.2 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size pyDatalog-0.17.1-cp34-none-win_amd64.whl (219.1 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size pyDatalog-0.17.1-cp35-none-win32.whl (205.1 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size pyDatalog-0.17.1-cp35-none-win_amd64.whl (222.9 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size pyDatalog-0.17.1.zip (304.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page