The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
ActionInputs
Package: flyte.remote
A class representing the inputs of an action. It is used to manage the inputs of a task and its state on the remote Union API.
ActionInputs extends from a UserDict and hence is accessible like a dictionary
Example Usage:
action = Action.get(...)
print(action.inputs())Output:
{
"x": ...,
"y": ...,
}Parameters
class ActionInputs(
pb2: common_pb2.Inputs,
data: Dict[str, Any],
)| Parameter | Type | Description |
|---|---|---|
pb2 |
common_pb2.Inputs |
|
data |
Dict[str, Any] |
Methods
| Method | Description |
|---|---|
clear() |
D. |
copy() |
|
fromkeys() |
|
get() |
D. |
items() |
D. |
keys() |
D. |
pop() |
D. |
popitem() |
D. |
setdefault() |
D. |
to_dict() |
Convert the object to a JSON-serializable dictionary. |
to_json() |
Convert the object to a JSON string. |
update() |
D. |
values() |
D. |
clear()
def clear()D.clear() -> None. Remove all items from D.
copy()
def copy()fromkeys()
def fromkeys(
iterable,
value,
)| Parameter | Type | Description |
|---|---|---|
iterable |
||
value |
get()
def get(
key,
default,
)D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
| Parameter | Type | Description |
|---|---|---|
key |
||
default |
items()
def items()D.items() -> a set-like object providing a view on D’s items
keys()
def keys()D.keys() -> a set-like object providing a view on D’s keys
pop()
def pop(
key,
default,
)D.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised.
| Parameter | Type | Description |
|---|---|---|
key |
||
default |
popitem()
def popitem()D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty.
setdefault()
def setdefault(
key,
default,
)D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
| Parameter | Type | Description |
|---|---|---|
key |
||
default |
to_dict()
def to_dict()Convert the object to a JSON-serializable dictionary.
Returns: dict: A dictionary representation of the object.
to_json()
def to_json()Convert the object to a JSON string.
Returns: str: A JSON string representation of the object.
update()
def update(
other,
kwds,
)D.update([E, ]**F) -> None. Update D from mapping/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v
| Parameter | Type | Description |
|---|---|---|
other |
||
kwds |
values()
def values()D.values() -> an object providing a view on D’s values