Skip to main content

Interface to ECLiPSe CLP

Project description

PyCLP is a Python library to interface ECLiPSe Constraint Programmig System.

This module try to implement a pythonic interface to ECLiPSe (alias easy to use) by compromising on a little bit on performance.

Major differences from ECLiPSe standard interface libraries

The main difference compared to embedded interface provided by ECLiPSe system is the persistence of constructed terms after calling the pyclp.resume (check 3.1.2 Building ECLiPSe terms ) function. In ECLiPSe standard interfaces compound terms are destroyed after resume while in PyCLP are stored in a reference that survives after resuming. PyCLP will destroy the reference only when python destroys the linked python object (garbage collection). This consumes more memory but now the python object and the related ECLiPSe object have the same lifetime.

Moreover, in the definition of the API I tried to take advantage of a common property of python and ECLiPSe: both are weak typed languages.

Next steps

  • Extend functionality of set_option function

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

PyCLP-1.0.tar.gz (201.1 kB view details)

Uploaded Source

File details

Details for the file PyCLP-1.0.tar.gz.

File metadata

  • Download URL: PyCLP-1.0.tar.gz
  • Upload date:
  • Size: 201.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyCLP-1.0.tar.gz
Algorithm Hash digest
SHA256 e3b3418a0ff66a576da2f97b5e0fc5a738f9ff4fc917ef16258ebe7881af3a87
MD5 ef523a224e7d382dac9879617d3b1b6c
BLAKE2b-256 c5733820cfe10f1ede8d6434e1661aaa7eef802b8bb5071852aca860e4d5e3a9

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