Query
thehive4py.query
QueryExpr = List[Union[_FilterExpr, _SortExpr, Paginate, dict]]
module-attribute
filters
FilterExpr = _Union['_FilterBase', dict]
module-attribute
Lt(field, value)
Bases: _FilterBase
Field less than value.
Source code in thehive4py/query/filters.py
37 38 | |
Gt(field, value)
Bases: _FilterBase
Field greater than value.
Source code in thehive4py/query/filters.py
44 45 | |
Lte(field, value)
Bases: _FilterBase
Field less than or equal value.
Source code in thehive4py/query/filters.py
51 52 | |
Gte(field, value)
Bases: _FilterBase
Field less than or equal value.
Source code in thehive4py/query/filters.py
58 59 | |
Ne(field, value)
Bases: _FilterBase
Field not equal value.
Source code in thehive4py/query/filters.py
65 66 | |
Eq(field, value)
Bases: _FilterBase
Field equal value.
Source code in thehive4py/query/filters.py
72 73 | |
StartsWith(field, value)
Bases: _FilterBase
Field starts with value.
Source code in thehive4py/query/filters.py
79 80 | |
EndsWith(field, value)
Bases: _FilterBase
Field ends with value.
Source code in thehive4py/query/filters.py
86 87 | |
Id(id)
Bases: _FilterBase
FIlter by ID.
Source code in thehive4py/query/filters.py
93 94 | |
Between(field, start, end)
Bases: _FilterBase
Field between inclusive from and exclusive to values.
Source code in thehive4py/query/filters.py
100 101 | |
In(field, values)
Bases: _FilterBase
Field is one of the values.
Source code in thehive4py/query/filters.py
107 108 | |
Contains(field)
Bases: _FilterBase
Object contains the field.
Source code in thehive4py/query/filters.py
114 115 116 117 118 119 120 121 122 | |
Has(field)
Bases: _FilterBase
Object contains the field.
Source code in thehive4py/query/filters.py
128 129 | |
Like(field, value)
Bases: _FilterBase
Field contains the value.
Source code in thehive4py/query/filters.py
135 136 | |
Match(field, value)
Bases: _FilterBase
Field contains the value
Source code in thehive4py/query/filters.py
142 143 | |
page
Paginate(start, end, extra_data=[])
Bases: UserDict
Source code in thehive4py/query/page.py
5 6 | |
sort
SortExpr
Bases: UserDict
Base class for sort expressions.
__and__(other)
Source code in thehive4py/query/sort.py
7 8 | |
__or__(other)
Source code in thehive4py/query/sort.py
10 11 | |
Asc(field)
Bases: SortExpr
Source code in thehive4py/query/sort.py
28 29 | |
Desc(field)
Bases: SortExpr
Source code in thehive4py/query/sort.py
33 34 | |