hop.models¶
-
class
hop.models.
Blob
(content: Union[str, int, float, bool, None, Dict[str, Any], List[Any]], missing_schema: bool = False)[source]¶ Defines an unformatted message blob.
-
class
hop.models.
GCNCircular
(header: dict, body: str)[source]¶ Defines a GCN Circular structure.
The parsed GCN circular is formatted as a dictionary with the following schema:
{‘headers’: {‘title’: …, ‘number’: …, …}, ‘body’: …}
-
class
hop.models.
MessageModel
[source]¶ An abstract message model.
-
abstract classmethod
load
(input_)[source]¶ Create a new message model from a file object or string.
- Args:
input_: A file object or string.
- Returns:
The message model.
-
abstract classmethod
-
class
hop.models.
VOEvent
(ivorn: str, role: str = 'observation', version: str = '2.0', Who: dict = <factory>, What: dict = <factory>, WhereWhen: dict = <factory>, How: dict = <factory>, Why: dict = <factory>, Citations: dict = <factory>, Description: dict = <factory>, Reference: dict = <factory>)[source]¶ Defines a VOEvent 2.0 structure.
- Implements the schema defined by: