Skip to main content

CLIPS Python bindings

Project description

Python CFFI bindings for the ‘C’ Language Integrated Production System CLIPS 6.41.

Source:

https://github.com/noxdafox/clipspy

Documentation:

https://clipspy.readthedocs.io

Download:

https://pypi.python.org/pypi/clipspy

Build Status Documentation Status

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 architectures as a wheel according to PEP-513 guidelines. Most of the distributions should be supported.

$ [sudo] 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 Makefile takes care of retrieving the CLIPS source code and compiling the Python bindings together with it.

$ make
$ sudo 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


Download files

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

Source Distribution

clipspy-1.0.1.tar.gz (28.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

clipspy-1.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (611.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

clipspy-1.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (611.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

clipspy-1.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (611.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

clipspy-1.0.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (611.7 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

clipspy-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (894.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

clipspy-1.0.1-cp311-cp311-win_amd64.whl (718.8 kB view details)

Uploaded CPython 3.11Windows x86-64

clipspy-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (891.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

clipspy-1.0.1-cp311-cp311-macosx_10_9_universal2.whl (628.2 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

clipspy-1.0.1-cp310-cp310-win_amd64.whl (718.8 kB view details)

Uploaded CPython 3.10Windows x86-64

clipspy-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (891.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

clipspy-1.0.1-cp310-cp310-macosx_11_0_x86_64.whl (556.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

clipspy-1.0.1-cp39-cp39-win_amd64.whl (720.4 kB view details)

Uploaded CPython 3.9Windows x86-64

clipspy-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (891.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

clipspy-1.0.1-cp39-cp39-macosx_11_0_x86_64.whl (556.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

clipspy-1.0.1-cp38-cp38-win_amd64.whl (720.4 kB view details)

Uploaded CPython 3.8Windows x86-64

clipspy-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (891.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

clipspy-1.0.1-cp38-cp38-macosx_11_0_x86_64.whl (556.1 kB view details)

Uploaded CPython 3.8macOS 11.0+ x86-64

clipspy-1.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (889.8 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

clipspy-1.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (889.8 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

Details for the file clipspy-1.0.1.tar.gz.

File metadata

  • Download URL: clipspy-1.0.1.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for clipspy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 663d0f52b9a3168d1ef0ebe3d3e7257a41034e3c4bf0f8c05b782fa39a9e6cae
MD5 af0c519ad62f2390236ff83bbde1d71e
BLAKE2b-256 64ac3bded95d88e2174cfe0a4c990a517212071ad0cbbb668a653967f9ba073e

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 771ceac21cd798b09abfa68ff1c9f675e749d533dc929010abd91854a0197137
MD5 efc149b778f4b44945bd36930d48f3bf
BLAKE2b-256 164e2cb194d42359e72cd07c35f369fe82a0374b41798c412632361d8a55274e

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ad92ab8fa1edfa9edfe34661ece95aa33225c43afe44e5c0524f2af3ffe1025
MD5 72278f248f2992b18d6091a121046468
BLAKE2b-256 3abd202a168ff968b832023c461ea8df6c0d8af73ba209aeb5dc52423ef97f21

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0c9b7f5e8cfb0bf7c2c6c2d465a2e8247ef16cd5a0b84623a79456923893740
MD5 0ddc5bc02fa946e3b571e1c617fa2483
BLAKE2b-256 96be6463fd815fb773325b87f2cdc2901675821eb0ef12c181f286d2f614b588

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9031e18555cc0c77acd98fe2d5de715071b064d4354c66bb1d39085eeb84b7a6
MD5 9bd7e15d190d7c06953e310bf65f9127
BLAKE2b-256 6ceb9f31184e6d7d3a1f422ca7dd251413d2570a4696649e7ad13ea9bb95d62b

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 410aaf003d0c742fe6223c12444aca32bd29e5c85454a3bc3dd9e706f57122d9
MD5 f97fd171200ecd94bf14f8fca98a0ac2
BLAKE2b-256 a28d10e1337d22a9ffadc1c1e4ca0ba94d6fa7ef23a21c26e38562584ca02954

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: clipspy-1.0.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 718.8 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

Hashes for clipspy-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea9c07526b2a86cfdcca66ab3bf6cbf95bcae0a406e9d5ae915d23b2fb004d9f
MD5 9cd2ca16f8b69c8cb9c4af0e58990167
BLAKE2b-256 5642c71938a08145d3856abcf3ad5a8a4bc8880c76d3d075af9ee322967bcd5d

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9921e547e1ce62a91f82c75d4e31fd8d4a701b1a4db5bcd2d2ee38b3ab08b3d5
MD5 2e3cace317fcefd978529dd7981219dc
BLAKE2b-256 eb5dda74a5962e9b00f6391662f38d598e33af692f31e2340eb40e77a435dfd7

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 54f6b440294f49c734b33e87aaf05f3c62a785f1d5eb05d181f235eddab3d4c3
MD5 0d98b715b943333d1cf15eed68a11902
BLAKE2b-256 50c8605d4ddfa7dc8c8a4ecb1d2b40dd538168a417a1c70f839afa1de2ecdf8b

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: clipspy-1.0.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 718.8 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

Hashes for clipspy-1.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c5ec21774fd10604ef3ef5a58ea312129c364ea7afe83b9691d5109a873d86aa
MD5 a7af279fe30b1d33958eaf825ca89853
BLAKE2b-256 3359986ec1b334ba56b848116d8041d64ae364c11a0ab81ebf39597cd3fb44ad

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 12b6d6d524b70c054903e46093832b0215ce8d4fa59b19d1be5d54e26c984880
MD5 769f54675f1f1e37ea7bbba7e594289e
BLAKE2b-256 a67b927b45e8e1239116e834d55d3fb153a7e112c176dc98de6027c1a905a5c2

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 e950bbefd8ac8c99c1e7444a1c4e797bc46c2143df634194a341357190e532bd
MD5 76b3e47b7b31e7272b9a11dc9e2c6a1c
BLAKE2b-256 d16e924da826205d39ed5f2a991ad2e7ee1eb34dcb03bef456e21933dd61b70b

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: clipspy-1.0.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 720.4 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

Hashes for clipspy-1.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7a0e6e2d2a4d5e614f2db5fb5c58e5cfa344ef5fb4ed42b572c0d82767c052aa
MD5 87c63919110969f05a4df93dd886bf31
BLAKE2b-256 e8922bcba62592341199d84f921b6884ebbed5089d29eab3329d0aec37df736c

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 80726e4999631e500653774974e14d68a047fcbd3716db4664b5b4bb762c7aad
MD5 932b05df327eafde0340bb9de4f8e71f
BLAKE2b-256 97c989dbf90f7e3d2e279133828cb9eae47ce2bc8ccaec07ddc867bcb8c20a48

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 af497639a1c2c595697c377ac1a98ba728f5169e3d3436aaa6b07e664017afbb
MD5 2a5f82c458b60a4c1d7d80844d33aeb8
BLAKE2b-256 a336f26fff0b6568384dfdca71e0f20e2606813a2f28095af7cf286e16057a0d

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: clipspy-1.0.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 720.4 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

Hashes for clipspy-1.0.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f8aa321120648b8ce6b51e8922814ea7a1e9098c1b3abef24d28d17ed8fe7d9c
MD5 b768c2247518c92d07bf237d8428ee95
BLAKE2b-256 1c11347eab196d4bdd4d9832f34d9fa19e562be9a2e3f50b235cf1f0e3b0ea8a

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f06e0bf7082a5501f56199d9a44cbb4644434582e6a775238071ee445dd479a5
MD5 7d1b80118978996361e2c062b055728b
BLAKE2b-256 939ebdf7837a733fed1f0d3e7814003274d2a801dd5317f22a93ce9a1f4153a2

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp38-cp38-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 381c17363a74f91b1640ce474e0ff8eb5b3293f50a83dbd89feb33f4f5734731
MD5 3504d74164947a3cef02aac246ab0b3d
BLAKE2b-256 e663859b371d17207a062417481239e9af084a74a5f62f3007165f27c00b3450

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 08158770ce19e0278869945809a8db8f5f842841b560ad87412f311ca6925356
MD5 3d3d3268ee6a9410aeac71eb67ce37c6
BLAKE2b-256 07fccccad123810c0acc82d69573b41e833e3ea1c051a278af30964ccdf4508d

See more details on using hashes here.

File details

Details for the file clipspy-1.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clipspy-1.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e9d5a9682683e737382f8862091d833eee989838ca32332b759da482b789efd6
MD5 95d0b2e5baedc882dfd02287080dfa87
BLAKE2b-256 260e723b11eb8968f9eaaa19239fbdb4f260989a0d3a8b3a212188777bf0ce45

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