sweetpea.backend module
This module provides functionality for making requests to the backend.
- class sweetpea.backend.LowLevelRequest(comparison, k, variables)
Bases:
objectRepresents an individual low-level request to the backend.
- comparisons = ['EQ', 'LT', 'GT']
- to_dict()
Converts this request to a dict suitable for conversion to json and then the backend.
- to_generation_request()
- class sweetpea.backend.BackendRequest(fresh, cnfs=[], ll_requests=[])
Bases:
objectRepresents a full request to the backend, including CNFs, LowLevelRequests, and unigen arguments.
- Parameters
fresh (int) –
ll_requests (List[LowLevelRequest]) –
- get_cnfs_as_json()
- get_requests_as_json()
- get_requests_as_generation_requests()