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.

Source Distribution

pyDatalog-0.17.1.zip (304.3 kB view hashes)

Uploaded Source

Built Distributions

pyDatalog-0.17.1-cp35-none-win_amd64.whl (222.9 kB view hashes)

Uploaded CPython 3.5 Windows x86-64

pyDatalog-0.17.1-cp35-none-win32.whl (205.1 kB view hashes)

Uploaded CPython 3.5 Windows x86

pyDatalog-0.17.1-cp34-none-win_amd64.whl (219.1 kB view hashes)

Uploaded CPython 3.4 Windows x86-64

pyDatalog-0.17.1-cp34-none-win32.whl (207.2 kB view hashes)

Uploaded CPython 3.4 Windows x86

pyDatalog-0.17.1-cp33-none-win_amd64.whl (219.4 kB view hashes)

Uploaded CPython 3.3 Windows x86-64

pyDatalog-0.17.1-cp33-none-win32.whl (207.4 kB view hashes)

Uploaded CPython 3.3 Windows x86

pyDatalog-0.17.1-cp27-none-win_amd64.whl (229.5 kB view hashes)

Uploaded CPython 2.7 Windows x86-64

pyDatalog-0.17.1-cp27-none-win32.whl (208.1 kB view hashes)

Uploaded CPython 2.7 Windows x86

Supported by

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