CLIPS Python bindings
Project description
Python CFFI bindings for the ‘C’ Language Integrated Production System CLIPS 6.41.
- Source:
- Documentation:
- Download:
Initially developed at NASA’s Johnson Space Center, CLIPS is a rule-based programming language useful for creating expert and production systems where a heuristic solution is easier to implement and maintain than an imperative one. CLIPS is designed to facilitate the development of software to model human knowledge or expertise.
CLIPSPy brings CLIPS capabilities within the Python ecosystem.
Installation
Linux
On Linux CLIPSPy is packaged for x86_64 architecture as a wheel according to PEP-513 guidelines. Most of the distributions should be supported.
$ pip install clipspy
MacOsx
Apple Silicon is supported for Python versions greater than 3.11.
$ pip install clipspy
Windows
CLIPSPy comes as a wheel for most of the Python versions and architectures.
> pip install clipspy
Building from sources
The provided Makefiles take care of retrieving the CLIPS source code and compiling the Python bindings together with it.
$ make
# make install
Please check the documentation for more information regarding building CLIPSPy from sources.
Example
import clips
DEFTEMPLATE_STRING = """
(deftemplate person
(slot name (type STRING))
(slot surname (type STRING))
(slot birthdate (type SYMBOL)))
"""
DEFRULE_STRING = """
(defrule hello-world
"Greet a new person."
(person (name ?name) (surname ?surname))
=>
(println "Hello " ?name " " ?surname))
"""
environment = clips.Environment()
# define constructs
environment.build(DEFTEMPLATE_STRING)
environment.build(DEFRULE_STRING)
# retrieve the fact template
template = environment.find_template('person')
# assert a new fact through its template
fact = template.assert_fact(name='John',
surname='Doe',
birthdate=clips.Symbol('01/01/1970'))
# fact slots can be accessed as dictionary elements
assert fact['name'] == 'John'
# execute the activations in the agenda
environment.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file clipspy-1.0.4.tar.gz
.
File metadata
- Download URL: clipspy-1.0.4.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25bf864e01f35c2ed4d0e3f3963e0a800e2e773f428dce8fd565028f46116d26 |
|
MD5 | ce5416c72877bbeb535b386f80f64780 |
|
BLAKE2b-256 | 5cdf898982356541af065119211c0d8ae204ffec3e7053886fe4092fe0dc7e49 |
File details
Details for the file clipspy-1.0.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 611.7 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8de68c3531335e4b822c70aade7daeb4880c078fa5ea5f30d35f178989b3b7d1 |
|
MD5 | 10d3ed5cfb2df6c996caf1b24d33d9c8 |
|
BLAKE2b-256 | 7461c35efab86ed70c30eebcdb695e9545402214482473168debc1917532f0d4 |
File details
Details for the file clipspy-1.0.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 611.7 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c62363765c05413dfccafbc8384409a29a996dfd1be8c3dab8cb179557a287 |
|
MD5 | f62030990642c1b73408c857ce7a0144 |
|
BLAKE2b-256 | 757c6aecbb3481c8b75af2bb6e2a69b2ed74a435ca6ad23af25e7d4769ae672f |
File details
Details for the file clipspy-1.0.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 611.7 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f06e090739f7b234db076430395241a1e1a1396413567a8591e2d4ef55f3206 |
|
MD5 | 49ae91351c8458eb1d30ddaa5b2effa2 |
|
BLAKE2b-256 | ddda8cc61d8df734ff5108822bd0b2a745630d4b898bfb10343a66a5fb66cb73 |
File details
Details for the file clipspy-1.0.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 611.8 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18a8e186e515a4a464bbbc8c95d55c5d947e26db6e554558bac9d009302d6407 |
|
MD5 | 653c288f98dd08f1a6a13c40b73e77ad |
|
BLAKE2b-256 | 0ea419386cb0dba4334908b69d933daaf83e3aadb4de6245a9b10aff0d0eed5e |
File details
Details for the file clipspy-1.0.4-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 714.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 415dd7132ef96bdd2cca2ae0f0ae596b4d52807e8b5542f051bf405ec5266d19 |
|
MD5 | d08bc0cd121f93bf607b596cdbebf670 |
|
BLAKE2b-256 | 4313ad883f93e477fc8d25d12c3aa6f5c4faa3e47febc9edf6eb51c6e5f1a18b |
File details
Details for the file clipspy-1.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 894.2 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30e63236c9b552437a8e57b9ab257004c5c170a782c8932c1d0ec5b8020ba3fa |
|
MD5 | 72a104c4e3cc83df2e380e0d11dad160 |
|
BLAKE2b-256 | ff535a48a20b7122ee698d7ec1e4b28cf202c0a3b182ff54b340f40eb680bd2d |
File details
Details for the file clipspy-1.0.4-cp312-cp312-macosx_11_0_universal2.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp312-cp312-macosx_11_0_universal2.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.12, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f3acfd90741b5e9692cf219780c682147fe6c2819eae5f4c764e3dd655b6816 |
|
MD5 | 5fa927021afe5090bbf52d8ff9c3cd83 |
|
BLAKE2b-256 | 03d6e115d339e2f89a9bfd12ca58308ad68b10307f2ef34c275a961254ceb9a2 |
File details
Details for the file clipspy-1.0.4-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 714.5 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 118d984ac606207f5594b1515756af18a5226e86226471bedc953f3f92402f51 |
|
MD5 | d00cbb58a4b236e37762ef55f05e48ba |
|
BLAKE2b-256 | 23654ad6e9f3ee7cda1e6f4c11c89263652525b882ba45f874e0a69c0cd01656 |
File details
Details for the file clipspy-1.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 891.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340a371a160f2e48f03b87cb536a6af880a7db3fb26f2a4eafc07e814a751385 |
|
MD5 | 999cf57c8f4e9b24f4bca13a0eaf420b |
|
BLAKE2b-256 | f244feebe45241c0d6e21550c963126d0234ec4e1536bbd03d3a690f575e0824 |
File details
Details for the file clipspy-1.0.4-cp311-cp311-macosx_11_0_universal2.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp311-cp311-macosx_11_0_universal2.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.11, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 790f5b925d5615c808388fdfe3ba7d460843c3d1ff795272c5f46d2fe18b3bad |
|
MD5 | 60c7785d4eb8139b5b2a68cb67c992c6 |
|
BLAKE2b-256 | 3585eecf4b560e334fd7eeb45514536767de35b3b1bd810360c24918343164ec |
File details
Details for the file clipspy-1.0.4-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 714.5 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99afd9f821e5c4348bc4a4be81ec48a1f3aecb049c2f4a244b796c8ac218abdb |
|
MD5 | 2e0fdc5f48edf34fcf24818b0b860293 |
|
BLAKE2b-256 | 3052285866a1317a4ea09d970a900e0750a660e9e1ebb0860b554397fb9dd412 |
File details
Details for the file clipspy-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 891.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fbd6d8d27e67f0b59d9c1e6751ee20b327b2679f6fb23b0a1c9998aab61ee7a |
|
MD5 | 8bd613489ef8432ef01d5f1b00d90177 |
|
BLAKE2b-256 | c1860aaabc9e1f50ef9f4c161f74656ee71d7205c178fa7eb3140e5691955547 |
File details
Details for the file clipspy-1.0.4-cp310-cp310-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp310-cp310-macosx_11_0_x86_64.whl
- Upload date:
- Size: 557.5 kB
- Tags: CPython 3.10, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 115f7af2a2ba9b3ba61b3549fdb53a650f9734e33803301083d2694e6ae55124 |
|
MD5 | 973bb09fcb1b466bc32408725c0f1a45 |
|
BLAKE2b-256 | f6cc713fdddd19df4c0e5447211e1edeca8daca0473c7f4255732dec8a7faf65 |
File details
Details for the file clipspy-1.0.4-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 714.5 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e0ca10866d1787d92b3985be18697c07bf7462658eb551e0e8855ebb22d8fb1 |
|
MD5 | 852b34df66236171c9cbe0a24a86e66d |
|
BLAKE2b-256 | 549001e5a2b4a863722f4eb454dc30023cd252694bf94fad8bf43878371ef579 |
File details
Details for the file clipspy-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 891.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2047576320bdd217bee6eacc70fb901ea25ddc9b99903f8b5a75acfe8d6dfe78 |
|
MD5 | 25c0add596c29888e8882fa59f9ff7ff |
|
BLAKE2b-256 | 65b13052b1ae3c92339004467297be37dcb954e3aa4f12dadb69c3465f157926 |
File details
Details for the file clipspy-1.0.4-cp39-cp39-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp39-cp39-macosx_11_0_x86_64.whl
- Upload date:
- Size: 557.5 kB
- Tags: CPython 3.9, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71daeae07e5b9769a97bdcad469d17008063c733a2884181f2c5ce04fc8bba0 |
|
MD5 | ad20711c6b4d012015494cfad93c112c |
|
BLAKE2b-256 | bd5bf635c5f2a5000009cae97be15b26575199e2b447e49bd6c55751dbf68a5a |
File details
Details for the file clipspy-1.0.4-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 714.5 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57981ac7ee5bbcd6ddbc1739d9bbc503b8578e0a688b478c69c84745919a649f |
|
MD5 | 11d52d75fd342a3426710ff54f3887c5 |
|
BLAKE2b-256 | 5049d339aeadcd101e584162d50467053799bfa033fee52ce66ae93a224e1edd |
File details
Details for the file clipspy-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 891.8 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67a06ceeb478865605201354972c1e42e951dcde982754ca47a462ff79dc0633 |
|
MD5 | dce88bc07b6d936c38d20083364738fe |
|
BLAKE2b-256 | 6679aa0e936b776cb13d4b98cb20720b94ecfa09505e457c03cf3789e268b44d |
File details
Details for the file clipspy-1.0.4-cp38-cp38-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp38-cp38-macosx_11_0_x86_64.whl
- Upload date:
- Size: 557.5 kB
- Tags: CPython 3.8, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb0a699c9f2d49d9d34effdb894225edfd29fc83f8e53d1d0bd5e9ebbd4a106 |
|
MD5 | 5b929d767759846f04bdd985221e65e2 |
|
BLAKE2b-256 | d89ca3990f6eb985ebd58196151a5dff42213e2fd1372ded5f48ff2c7c601c80 |
File details
Details for the file clipspy-1.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 889.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82bca2da2c94002e055a72f76f69f5ace85cbb072217498031a9b186dd2fe3f6 |
|
MD5 | bb3cad2ee6e0d128a63ae09ce33a5330 |
|
BLAKE2b-256 | d1d7e4794b6cab6178ba5398a47e58e8ecccea4f261b991d414f631b47efa454 |
File details
Details for the file clipspy-1.0.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: clipspy-1.0.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 889.9 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 055b55d5b8cfeafa4f5094e09cfa68571f0cfadeba67c75d23c9d7919d505299 |
|
MD5 | 0484455835c15a78ae3d2aa970a56be3 |
|
BLAKE2b-256 | 18ebf57dc2e716eb1ae8ad493047d37f2c00db7ba6072f9e0fc0e0955e053be3 |