pyswip


Namepyswip JSON
Version 0.2.10 PyPI version JSON
download
home_pagehttps://github.com/yuce/pyswip
SummaryPySwip enables querying SWI-Prolog in your Python programs.
upload_time2020-06-22 01:35:44
maintainer
docs_urlNone
authorYuce Tekol
requires_python
licenseMIT
keywords prolog artificial intelligence ai ffi ctypes
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            <a href="https://pypi.python.org/pypi/pyswip"><img src="https://img.shields.io/pypi/v/pyswip.svg?maxAge=2592&updated=2"></a>
<a href="https://travis-ci.org/yuce/pyswip"><img src="https://api.travis-ci.org/yuce/pyswip.svg?branch=master"></a>
<a href="https://coveralls.io/github/yuce/pyswip"><img src="https://coveralls.io/repos/github/yuce/pyswip/badge.svg?branch=master"></a>

# PySwip

---

## PySwip in 2020 Survey

<img src="https://lh5.googleusercontent.com/jQYQkglYr0DRfcyHPKFsjavSyEuOU1Dm3iOHZOw387i92ZKG4YcDowT0Pqe5fwW3EQ5Hy7j-HVbbw62C4x3JbTuWuOGkm6AH_xRmWH4MUIFcoodD_sCgzU2HQos-=w1200">

Thanks for being a member of the PySwip community. We want to know more about you, your interests and any problems you may have with PySwip.

**Please fill out the 
[PySwip in 2020 Survey](https://docs.google.com/forms/d/1trve34aLw61PkgWfoBjtbgVsO1wno-eUk0F5mSVtHOw/edit).** That will help us provide the features you want and resolve the problems with PySwip.

---

## The End of Python 2 Support

Python 2 has reached end of life on January 1st, 2020 as documented [here](https://www.python.org/doc/sunset-python-2/). So, PySwip 0.2.10 will be the last version which officially supports Python 2.

Do you still require Python 2 support? Let us know at: https://github.com/yuce/pyswip/issues/94

---

## What's New?

See the [CHANGELOG](CHANGELOG.md).

**This library is being cleaned up and refactored. Expect API breakage and incompatibility with previous versions.**

**WARNING! PySwip has no Windows installers! If you are a Windows user, see [INSTALL](https://github.com/yuce/pyswip/blob/master/INSTALL.md#windows). There are some "free download" sites that claim to be hosting PySwip installers. DO NOT TRUST THEM!**

Thanks to all [contributors](CONTRIBUTORS.txt).

## Introduction

PySwip is a Python - SWI-Prolog bridge enabling to query [SWI-Prolog](http://www.swi-prolog.org) in your Python programs.
It features an (incomplete) SWI-Prolog foreign language interface, a utility class that makes it easy querying with Prolog and also a
Pythonic interface.

Since PySwip uses SWI-Prolog as a shared library and ctypes to access it, it doesn't require compilation to be installed.

## Requirements:

* Python 2.7 or 3.4 and higher.
    * PyPy is currently not supported.
* SWI-Prolog 7.2.x and higher.
* `libswipl` as a shared library. *This is the default on most platforms.*
* Works on Linux, Windows, MacOS and FreeBSD. Should work on other POSIX.

## Install

**IMPORTANT: Make sure the SWI-Prolog architecture is the same as the Python architecture. If you are using a 64bit build of Python, use a 64bit build of SWI-Prolog, etc.***

See [INSTALL](INSTALL.md) for instructions.

## Examples

### Using Prolog

```python
from pyswip import Prolog
prolog = Prolog()
prolog.assertz("father(michael,john)")
prolog.assertz("father(michael,gina)")
list(prolog.query("father(michael,X)")) == [{'X': 'john'}, {'X': 'gina'}]
for soln in prolog.query("father(X,Y)"):
    print(soln["X"], "is the father of", soln["Y"])
# michael is the father of john
# michael is the father of gina
```

An existing knowledge base stored in a Prolog file can also be consulted,
and queried. Assuming the filename "knowledge_base.pl" and the Python is
being run in the same working directory, it is consulted like so:

    >>> from pyswip import Prolog
    >>> prolog = Prolog()
    >>> prolog.consult("knowledge_base.pl")

### Foreign Functions

```python
from __future__ import print_function
from pyswip import Prolog, registerForeign

def hello(t):
    print("Hello,", t)
hello.arity = 1

registerForeign(hello)

prolog = Prolog()
prolog.assertz("father(michael,john)")
prolog.assertz("father(michael,gina)")
print(list(prolog.query("father(michael,X), hello(X)")))
```

### Pythonic interface (Experimental)

```python
from __future__ import print_function
from pyswip import Functor, Variable, Query, call

assertz = Functor("assertz", 1)
father = Functor("father", 2)
call(assertz(father("michael","john")))
call(assertz(father("michael","gina")))
X = Variable()

q = Query(father("michael",X))
while q.nextSolution():
    print("Hello,", X.value)
q.closeQuery()

# Outputs:
#    Hello, john
#    Hello, gina

```

The core functionality of `Prolog.query` is based on Nathan Denny's public domain prolog.py.

## Help!

* [Support Forum](https://groups.google.com/forum/#!forum/pyswip)
* [Stack Overflow](https://stackoverflow.com/search?q=pyswip)

## Projects/Publications that Use or Reference PySwip

**Do you have a project, video or publication that uses/mentions PySwip? [file an issue](https://github.com/yuce/pyswip/issues/new?title=Powered%20by%20PySwip) or send a pull request.**

If you would like to reference PySwip in a LaTeX document, you can use the provided [BibTeX file](pyswip.bibtex).

### Books

* [Beginning Artificial Intelligence with the Raspberry Pi](https://www.apress.com/gp/book/9781484227428)

### Publications

* [Assessment of Graph Databases as a Viable Materiel Solution for the Army's Dynamic Force Structure (DFS) Portal Implementation: Part 3, Risks, Mitigation Approach, and Roadmap](https://www.researchgate.net/publication/321977892_Assessment_of_Graph_Databases_as_a_Viable_Materiel_Solution_for_the_Army's_Dynamic_Force_Structure_DFS_Portal_Implementation_Part_3_Risks_Mitigation_Approach_and_Roadmap_Assessment_of_Graph_Databases_)
* [Tackling Complexity in High Performance Computing Applications](https://link.springer.com/article/10.1007/s10766-016-0422-9)
* [Social Human-Robot Interaction: A New Cognitive and Affective Interaction-Oriented Architecture](https://www.springer.com/gp/book/9783319474366)
* [A Planning Module for a ROS-Based Ubiquitous Robot Control System](https://dspace.library.uu.nl/bitstream/handle/1874/292669/2014-03-27%20MSc%20Thesis%20Pieterjan%20van%20Gastel.pdf) (PDF)
* [A pilot framework developed as a common platform integrating diverse elements of computer aided fixture design](https://www.tandfonline.com/doi/full/10.1080/00207543.2013.832000)
* [Integration von Prolog und ClioPatria in Python](http://www1.pub.informatik.uni-wuerzburg.de/pub/theses/2017-bodenlos-master.pdf) (PDF, German)
* [SELECTSCRIPT: A Query Language for Robotic World Models and Simulations](https://ieeexplore.ieee.org/document/7140077/)
* [A Concept for Declarative Information Acquisition in Smart Environments](https://d-nb.info/1122172583/34)
* [Implementation on ADHD Diagnostic Expert System based on DSM Diagnostic Criteria](http://jse.or.kr/AJMAHS/papers/v7n11/50.pdf) (PDF, Korean)
* [Wie sehen Krebsmolekule aus? Vergleich der Gute der Klassifizierung potenziell krebserregender Molekule durch induktiv logische und merkmalsbasierte Lernverfahren](http://www.cogsys.wiai.uni-bamberg.de/teaching/ss17/pj_bama/ProjektberichtRelLearningFinzelGrabeHillebrandHornigRicci.pdf) (PDF, German)
* [Companion Robots Behaving with Style: Towards Plasticity in Social Human-Robot Interaction](https://tel.archives-ouvertes.fr/tel-01679314/document) (PDF)
* [Semi-automatically Augmenting Attack Trees using an Annotated Attack Tree Library](https://www.researchgate.net/publication/327985985_Semi-automatically_Augmenting_Attack_Trees_Using_an_Annotated_Attack_Tree_Library)
* [A Learning Framework for Tool Creation by a Robot](http://www.araa.asn.au/acra/acra2015/papers/pap145.pdf) (PDF)

### Videos

* [AI - blocks world solver interactive planner](https://www.youtube.com/watch?v=p1m8htUEHrc)
* [PySwip, Prolog, JAVA SCRIPT and HTML](https://www.youtube.com/watch?v=Oj8xsW2vaLA) (Spanish)
* [GET OUT OF THE MAZE WITH PROLOG AND PYTHON](https://www.youtube.com/watch?v=MW3S0Jfa0LU) (Spanish)

### Projects

* [noworkflow](https://github.com/gems-uff/noworkflow) Supporting infrastructure to run scientific experiments without a scientific workflow management system. http://gems-uff.github.io/noworkflow
* [Super Pacman](https://github.com/kajornsakp/prologProject)
* [Pokemon Weak Detector](https://github.com/ReiiYuki/PokemonWeakDetector)
* [Food Recommendations in Hyderabad, India](https://github.com/cindyleowtt/prolog_food) Food Recommendation AI Expert System using a GUI hosted on Flask and a backend developed with PYSWIP and native Prolog.
* [pyswip_envctrl](https://github.com/2rs2ts/pyswip_envctrl) An environment control module expert system written in PySwip.
* [tic-tac-toe](https://github.com/ivpusic/tic-tac-toe) Tic-tac-toe game with AI in Prolog and GUI in Python (kivy framework + pyswip).
* [TBM1 - "Getting to Know My Home"](http://thewiki.rockinrobotchallenge.eu/index.php?title=TBM1_-_“Getting_to_Know_My_Home”)
* [Prolog natural language parsing component to control a Scribbler II robot over bluetooth](http://justinmangue.com/blog/scribpro-py/)
* [Cosmos](https://github.com/mcsoto/cosmos) A new logic programming language.
* [lib-annotated-attack-trees](https://github.com/yramirezc/lib-annotated-attack-trees) Scripts and resources for creating a library of annotated attack trees and using it to refine an annotated attack tree.
* [ClIDE](https://github.com/skeledrew/clide) Command-line Intelligent Development Environment
* [Artificial Intelligence INF1771 @ PUC-Rio](https://github.com/leotok/INF1771) Projects for the Artificial Intelligence class @ PUC-Rio
* [AutomobileAdvisor](https://github.com/liscju/AutomobileAdvisor) Projekt na systemy ekspertowe pomagający wybrać odpowiedni samochód dla danego klienta na podstawie preferencji (Polish)
* [Prolog Tetris AI](https://sourceforge.net/projects/prologtetrisai/)
* [Jupyter SWI Prolog](https://github.com/targodan/jupyter-swi-prolog) A Jupyter Kernel for SWI-Prolog.
* [Blocks World Planner](https://github.com/davideiacobs/BlocksWorldPlanner) A program that allows users to solve the blocks world problem interacting only using the natural language.

### Blog Posts

* [Calling Prolog from Python](http://fernmac.blogspot.com.tr/2013/07/calling-prolog-from-python.html)
* [Python v. Prolog: Round 1: Fight!](http://www.kuliniewicz.org/blog/archives/2007/10/21/python-v-prolog-round-1-fight/)
* [Path Follower: Arduino+Rasp on ROS](http://blog.giacomocerquone.com/path-follower-maze-solving-car-arduino/) and its [Project code](https://github.com/giacomocerquone/robotics-MazeSolver)
* [10 minutes to make a GUI for your SWI-Prolog App via Python](http://www.paulbrownmagic.com/blog/quick_gui.html)

## License

```
Copyright (c) 2007-2019 Yüce Tekol

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yuce/pyswip",
    "name": "pyswip",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "prolog,artificial intelligence,ai,ffi,ctypes",
    "author": "Yuce Tekol",
    "author_email": "yucetekol@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9d/96/46583f9940a6fbeaecad9a7cbe441b1aebe44b17d3f3e72dd7da215b954c/pyswip-0.2.10.tar.gz",
    "platform": "",
    "description": "<a href=\"https://pypi.python.org/pypi/pyswip\"><img src=\"https://img.shields.io/pypi/v/pyswip.svg?maxAge=2592&updated=2\"></a>\n<a href=\"https://travis-ci.org/yuce/pyswip\"><img src=\"https://api.travis-ci.org/yuce/pyswip.svg?branch=master\"></a>\n<a href=\"https://coveralls.io/github/yuce/pyswip\"><img src=\"https://coveralls.io/repos/github/yuce/pyswip/badge.svg?branch=master\"></a>\n\n# PySwip\n\n---\n\n## PySwip in 2020 Survey\n\n<img src=\"https://lh5.googleusercontent.com/jQYQkglYr0DRfcyHPKFsjavSyEuOU1Dm3iOHZOw387i92ZKG4YcDowT0Pqe5fwW3EQ5Hy7j-HVbbw62C4x3JbTuWuOGkm6AH_xRmWH4MUIFcoodD_sCgzU2HQos-=w1200\">\n\nThanks for being a member of the PySwip community. We want to know more about you, your interests and any problems you may have with PySwip.\n\n**Please fill out the \n[PySwip in 2020 Survey](https://docs.google.com/forms/d/1trve34aLw61PkgWfoBjtbgVsO1wno-eUk0F5mSVtHOw/edit).** That will help us provide the features you want and resolve the problems with PySwip.\n\n---\n\n## The End of Python 2 Support\n\nPython 2 has reached end of life on January 1st, 2020 as documented [here](https://www.python.org/doc/sunset-python-2/). So, PySwip 0.2.10 will be the last version which officially supports Python 2.\n\nDo you still require Python 2 support? Let us know at: https://github.com/yuce/pyswip/issues/94\n\n---\n\n## What's New?\n\nSee the [CHANGELOG](CHANGELOG.md).\n\n**This library is being cleaned up and refactored. Expect API breakage and incompatibility with previous versions.**\n\n**WARNING! PySwip has no Windows installers! If you are a Windows user, see [INSTALL](https://github.com/yuce/pyswip/blob/master/INSTALL.md#windows). There are some \"free download\" sites that claim to be hosting PySwip installers. DO NOT TRUST THEM!**\n\nThanks to all [contributors](CONTRIBUTORS.txt).\n\n## Introduction\n\nPySwip is a Python - SWI-Prolog bridge enabling to query [SWI-Prolog](http://www.swi-prolog.org) in your Python programs.\nIt features an (incomplete) SWI-Prolog foreign language interface, a utility class that makes it easy querying with Prolog and also a\nPythonic interface.\n\nSince PySwip uses SWI-Prolog as a shared library and ctypes to access it, it doesn't require compilation to be installed.\n\n## Requirements:\n\n* Python 2.7 or 3.4 and higher.\n    * PyPy is currently not supported.\n* SWI-Prolog 7.2.x and higher.\n* `libswipl` as a shared library. *This is the default on most platforms.*\n* Works on Linux, Windows, MacOS and FreeBSD. Should work on other POSIX.\n\n## Install\n\n**IMPORTANT: Make sure the SWI-Prolog architecture is the same as the Python architecture. If you are using a 64bit build of Python, use a 64bit build of SWI-Prolog, etc.***\n\nSee [INSTALL](INSTALL.md) for instructions.\n\n## Examples\n\n### Using Prolog\n\n```python\nfrom pyswip import Prolog\nprolog = Prolog()\nprolog.assertz(\"father(michael,john)\")\nprolog.assertz(\"father(michael,gina)\")\nlist(prolog.query(\"father(michael,X)\")) == [{'X': 'john'}, {'X': 'gina'}]\nfor soln in prolog.query(\"father(X,Y)\"):\n    print(soln[\"X\"], \"is the father of\", soln[\"Y\"])\n# michael is the father of john\n# michael is the father of gina\n```\n\nAn existing knowledge base stored in a Prolog file can also be consulted,\nand queried. Assuming the filename \"knowledge_base.pl\" and the Python is\nbeing run in the same working directory, it is consulted like so:\n\n    >>> from pyswip import Prolog\n    >>> prolog = Prolog()\n    >>> prolog.consult(\"knowledge_base.pl\")\n\n### Foreign Functions\n\n```python\nfrom __future__ import print_function\nfrom pyswip import Prolog, registerForeign\n\ndef hello(t):\n    print(\"Hello,\", t)\nhello.arity = 1\n\nregisterForeign(hello)\n\nprolog = Prolog()\nprolog.assertz(\"father(michael,john)\")\nprolog.assertz(\"father(michael,gina)\")\nprint(list(prolog.query(\"father(michael,X), hello(X)\")))\n```\n\n### Pythonic interface (Experimental)\n\n```python\nfrom __future__ import print_function\nfrom pyswip import Functor, Variable, Query, call\n\nassertz = Functor(\"assertz\", 1)\nfather = Functor(\"father\", 2)\ncall(assertz(father(\"michael\",\"john\")))\ncall(assertz(father(\"michael\",\"gina\")))\nX = Variable()\n\nq = Query(father(\"michael\",X))\nwhile q.nextSolution():\n    print(\"Hello,\", X.value)\nq.closeQuery()\n\n# Outputs:\n#    Hello, john\n#    Hello, gina\n\n```\n\nThe core functionality of `Prolog.query` is based on Nathan Denny's public domain prolog.py.\n\n## Help!\n\n* [Support Forum](https://groups.google.com/forum/#!forum/pyswip)\n* [Stack Overflow](https://stackoverflow.com/search?q=pyswip)\n\n## Projects/Publications that Use or Reference PySwip\n\n**Do you have a project, video or publication that uses/mentions PySwip? [file an issue](https://github.com/yuce/pyswip/issues/new?title=Powered%20by%20PySwip) or send a pull request.**\n\nIf you would like to reference PySwip in a LaTeX document, you can use the provided [BibTeX file](pyswip.bibtex).\n\n### Books\n\n* [Beginning Artificial Intelligence with the Raspberry Pi](https://www.apress.com/gp/book/9781484227428)\n\n### Publications\n\n* [Assessment of Graph Databases as a Viable Materiel Solution for the Army's Dynamic Force Structure (DFS) Portal Implementation: Part 3, Risks, Mitigation Approach, and Roadmap](https://www.researchgate.net/publication/321977892_Assessment_of_Graph_Databases_as_a_Viable_Materiel_Solution_for_the_Army's_Dynamic_Force_Structure_DFS_Portal_Implementation_Part_3_Risks_Mitigation_Approach_and_Roadmap_Assessment_of_Graph_Databases_)\n* [Tackling Complexity in High Performance Computing Applications](https://link.springer.com/article/10.1007/s10766-016-0422-9)\n* [Social Human-Robot Interaction: A New Cognitive and Affective Interaction-Oriented Architecture](https://www.springer.com/gp/book/9783319474366)\n* [A Planning Module for a ROS-Based Ubiquitous Robot Control System](https://dspace.library.uu.nl/bitstream/handle/1874/292669/2014-03-27%20MSc%20Thesis%20Pieterjan%20van%20Gastel.pdf) (PDF)\n* [A pilot framework developed as a common platform integrating diverse elements of computer aided fixture design](https://www.tandfonline.com/doi/full/10.1080/00207543.2013.832000)\n* [Integration von Prolog und ClioPatria in Python](http://www1.pub.informatik.uni-wuerzburg.de/pub/theses/2017-bodenlos-master.pdf) (PDF, German)\n* [SELECTSCRIPT: A Query Language for Robotic World Models and Simulations](https://ieeexplore.ieee.org/document/7140077/)\n* [A Concept for Declarative Information Acquisition in Smart Environments](https://d-nb.info/1122172583/34)\n* [Implementation on ADHD Diagnostic Expert System based on DSM Diagnostic Criteria](http://jse.or.kr/AJMAHS/papers/v7n11/50.pdf) (PDF, Korean)\n* [Wie sehen Krebsmolekule aus? Vergleich der Gute der Klassifizierung potenziell krebserregender Molekule durch induktiv logische und merkmalsbasierte Lernverfahren](http://www.cogsys.wiai.uni-bamberg.de/teaching/ss17/pj_bama/ProjektberichtRelLearningFinzelGrabeHillebrandHornigRicci.pdf) (PDF, German)\n* [Companion Robots Behaving with Style: Towards Plasticity in Social Human-Robot Interaction](https://tel.archives-ouvertes.fr/tel-01679314/document) (PDF)\n* [Semi-automatically Augmenting Attack Trees using an Annotated Attack Tree Library](https://www.researchgate.net/publication/327985985_Semi-automatically_Augmenting_Attack_Trees_Using_an_Annotated_Attack_Tree_Library)\n* [A Learning Framework for Tool Creation by a Robot](http://www.araa.asn.au/acra/acra2015/papers/pap145.pdf) (PDF)\n\n### Videos\n\n* [AI - blocks world solver interactive planner](https://www.youtube.com/watch?v=p1m8htUEHrc)\n* [PySwip, Prolog, JAVA SCRIPT and HTML](https://www.youtube.com/watch?v=Oj8xsW2vaLA) (Spanish)\n* [GET OUT OF THE MAZE WITH PROLOG AND PYTHON](https://www.youtube.com/watch?v=MW3S0Jfa0LU) (Spanish)\n\n### Projects\n\n* [noworkflow](https://github.com/gems-uff/noworkflow) Supporting infrastructure to run scientific experiments without a scientific workflow management system. http://gems-uff.github.io/noworkflow\n* [Super Pacman](https://github.com/kajornsakp/prologProject)\n* [Pokemon Weak Detector](https://github.com/ReiiYuki/PokemonWeakDetector)\n* [Food Recommendations in Hyderabad, India](https://github.com/cindyleowtt/prolog_food) Food Recommendation AI Expert System using a GUI hosted on Flask and a backend developed with PYSWIP and native Prolog.\n* [pyswip_envctrl](https://github.com/2rs2ts/pyswip_envctrl) An environment control module expert system written in PySwip.\n* [tic-tac-toe](https://github.com/ivpusic/tic-tac-toe) Tic-tac-toe game with AI in Prolog and GUI in Python (kivy framework + pyswip).\n* [TBM1 - \"Getting to Know My Home\"](http://thewiki.rockinrobotchallenge.eu/index.php?title=TBM1_-_\u201cGetting_to_Know_My_Home\u201d)\n* [Prolog natural language parsing component to control a Scribbler II robot over bluetooth](http://justinmangue.com/blog/scribpro-py/)\n* [Cosmos](https://github.com/mcsoto/cosmos) A new logic programming language.\n* [lib-annotated-attack-trees](https://github.com/yramirezc/lib-annotated-attack-trees) Scripts and resources for creating a library of annotated attack trees and using it to refine an annotated attack tree.\n* [ClIDE](https://github.com/skeledrew/clide) Command-line Intelligent Development Environment\n* [Artificial Intelligence INF1771 @ PUC-Rio](https://github.com/leotok/INF1771) Projects for the Artificial Intelligence class @ PUC-Rio\n* [AutomobileAdvisor](https://github.com/liscju/AutomobileAdvisor) Projekt na systemy ekspertowe pomagaj\u0105cy wybra\u0107 odpowiedni samoch\u00f3d dla danego klienta na podstawie preferencji (Polish)\n* [Prolog Tetris AI](https://sourceforge.net/projects/prologtetrisai/)\n* [Jupyter SWI Prolog](https://github.com/targodan/jupyter-swi-prolog) A Jupyter Kernel for SWI-Prolog.\n* [Blocks World Planner](https://github.com/davideiacobs/BlocksWorldPlanner) A program that allows users to solve the blocks world problem interacting only using the natural language.\n\n### Blog Posts\n\n* [Calling Prolog from Python](http://fernmac.blogspot.com.tr/2013/07/calling-prolog-from-python.html)\n* [Python v. Prolog: Round 1: Fight!](http://www.kuliniewicz.org/blog/archives/2007/10/21/python-v-prolog-round-1-fight/)\n* [Path Follower: Arduino+Rasp on ROS](http://blog.giacomocerquone.com/path-follower-maze-solving-car-arduino/) and its [Project code](https://github.com/giacomocerquone/robotics-MazeSolver)\n* [10 minutes to make a GUI for your SWI-Prolog App via Python](http://www.paulbrownmagic.com/blog/quick_gui.html)\n\n## License\n\n```\nCopyright (c) 2007-2019 Y\u00fcce Tekol\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "PySwip enables querying SWI-Prolog in your Python programs.",
    "version": "0.2.10",
    "split_keywords": [
        "prolog",
        "artificial intelligence",
        "ai",
        "ffi",
        "ctypes"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "ed95566216c4c3d6bce24a52f7d4537e",
                "sha256": "7abc3009f8badc7d0c23d72422960e9f229059a731430c9acd7e9a718cbd2832"
            },
            "downloads": -1,
            "filename": "pyswip-0.2.10-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ed95566216c4c3d6bce24a52f7d4537e",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 27170,
            "upload_time": "2020-06-22T01:35:42",
            "upload_time_iso_8601": "2020-06-22T01:35:42.839343Z",
            "url": "https://files.pythonhosted.org/packages/dd/b8/9b79319127d48e41542500dea4181ee19758c2710432a397366ac85b7117/pyswip-0.2.10-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "746477784a43bb041bc306c99752bd73",
                "sha256": "7698584ddf73d051d22d5fed728b9e89bb444a9d384d48c9f5e6fd7060bbdb9f"
            },
            "downloads": -1,
            "filename": "pyswip-0.2.10.tar.gz",
            "has_sig": false,
            "md5_digest": "746477784a43bb041bc306c99752bd73",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28595,
            "upload_time": "2020-06-22T01:35:44",
            "upload_time_iso_8601": "2020-06-22T01:35:44.677523Z",
            "url": "https://files.pythonhosted.org/packages/9d/96/46583f9940a6fbeaecad9a7cbe441b1aebe44b17d3f3e72dd7da215b954c/pyswip-0.2.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-06-22 01:35:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "yuce",
    "github_project": "pyswip",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyswip"
}
        
Elapsed time: 0.01381s