Skip to content

Python CFFI bindings for CLIPS  #7

Description

@noxdafox

Greetings,

few years ago, I wrote a lightweight wrapper for CLIPS API in ctypes to overcome some issues with PyCLIPS (most important a memory leak).

Lately I decided to redo the entire work using Python CFFI which is much simpler and performant. The great advantage of such approach, compared to the standard Python extensions, is the small amount of necessary boilerplate code.

This will make transitions to CLIPS 6.40/6.50 APIs much simpler.

The library borrows a lot from PyCLIPS design but differs in few ways.

  • Python 2, 3 and PyPy support
  • No embedded CLIPS library, use the locally installed one
  • A more Pythonic API (no CamelCase functions, use of properties and generators...)
  • A more modular design
  • Very simple Python-to-CLIPS data conversion model
  • No string commands manipulation, only the C APIs were wrapped

I was wondering if the PyCLIPS community was interested in this project and if we could, one day, merge the efforts.

I just shared the code here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions