Skip to content
/ cloc Public

Cloc (CLingo Object Caller) is a Python library for converting clingo's output into Python call(s)

License

Notifications You must be signed in to change notification settings

owrel/cloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloc

Cloc (CLingo Object Caller) is a Python library for converting ASP facts, that can come from a Clingo output into Python call(s). It can help build workflow tools. For large project, CLORM might be a more featured/reliable library.

Installation

Import the Github repository

git clone https://github.com/Owrel/cloc.git

In the project folder, install Cloc with pip:

pip install .

Usage

import cloc

class HelloWorld(cloc.Cloc):
    def __init__(self) -> None:
        super().__init__()
    def hello(self):
        print("HelloWorld")

h = HelloWorld()
h.from_str("hello.")
# Output: HelloWorld

More examples available here

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Cloc (CLingo Object Caller) is a Python library for converting clingo's output into Python call(s)

Topics

Resources

License

Stars

Watchers

Forks

Languages