Clorm

Latest version: v1.6.0

Safety actively analyzes 663899 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

1.0.2

A bug fixes release with some improved error messages. Changes:

* Improved error messages when there is something wrong in the typecast
signature

* Bug fix to allow empty unifier list

* Bug fix for setting default values that evaluate to False (e.g, 0).

* Extended default field values to allow None as a legitimate value. This is a
boundary cases where a user might want to define a RawField sub-class where None
is a legitimate value.

* Added better error checking for Select/Delete 'where' and 'order_by'
expressions to improve debugging. Any references to paths will be examined when
the expression is declared rather than having to wait for the query to be executed to
detect the error.

1.0.1

Small update to improve speed of instantiating Clorm predicate instance objects.

1.0.0

It's been over a year since Clorm was started and I think it is now ready for a proper version 1.0.0 release. The other reason for incrementing the major release number is that the API has been modified slightly (and simplified) but it means that any code written for the previous version will need some tweaking to work with the new version.

Here are some main points for this release:

1) Simplified the API for basic usage. For example, no need to pass a FactBaseBuilder object to every call of the clorm.clingo.Model.facts() function, but instead can pass a list of predicates when the clorm.clingo.Control object
is instantiated.

2) Support for negated literals, and complex terms, and querying of the sign of the literal.

3) Helper functions; easy to define a basic predicate mapping, which is useful for debugging ASP programs.

3) Improved the automatic generation of Predicate names (beyond simply setting the first letter to lower-case) to cover some common naming conventions, such as camel-case, and snake case.

4) Added more flexible usage of the overriden clorm.clingo.Control functions. For example the assign_external() function can take a set/list/fact-base of facts rather than one literal at a time.

5) Improved some of the error messages when the API is not used correctly.

6) The query specification mechanism has been re-implemented; which will simplify advanced usage but also make it easier to maintain.

7) Some renaming of functions/member functions for consistency.

8) Bug fixes.

0.9.0

This release has been tested on Python 3.6 and 3.7. Includes support for the official Clingo 5.3 and 5.4 releases.

0.8.0

This release has been tested on Python 3.6 and 3.7. Includes support for clingo 5.3 and 5.4 (dev release).

0.7.0

A Clorm release that has been tested on Python 3.6 and 3.7. Includes support for Clingo 5.3 and 5.4 (dev release). Adds support for building a context to be used when grounding an ASP program (note: grounding context is introduced in Clingo 5.4)

Page 4 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.