stapi-pydantic
Pydantic models for the Satellite Tasking API (STAPI) specification.
Note
This package has no input/output (IO) functionality. For making requests to a STAPI API, use pystapi-client.
API
Order
Bases: _GeoJsonBase
, Generic[T]
Source code in stapi-pydantic/src/stapi_pydantic/order.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
|
set_geometry(geometry)
set geometry from geo interface or input
Source code in stapi-pydantic/src/stapi_pydantic/order.py
118 119 120 121 122 123 124 |
|
OrderCollection
Bases: _GeoJsonBase
, Generic[T]
Source code in stapi-pydantic/src/stapi_pydantic/order.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|
__getitem__(index)
get feature at a given index
Source code in stapi-pydantic/src/stapi_pydantic/order.py
141 142 143 |
|
__iter__()
iterate over features
Source code in stapi-pydantic/src/stapi_pydantic/order.py
133 134 135 |
|
__len__()
return features length
Source code in stapi-pydantic/src/stapi_pydantic/order.py
137 138 139 |
|
OrderStatus
Bases: BaseModel
Source code in stapi-pydantic/src/stapi_pydantic/order.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
new(status_code, reason_code=None, reason_text=None)
classmethod
Creates a new order status with timestamp set to now in UTC.
Source code in stapi-pydantic/src/stapi_pydantic/order.py
62 63 64 65 66 67 68 69 70 71 72 |
|