preparing module¶
Classes for preparing arguments.
base_arg_config ReadonlyConfig¶
Argument config for BasePreparer.
ReadonlyConfig(
broadcast_named_args=dict(
is_dict=True
),
broadcast_kwargs=dict(
is_dict=True
),
template_context=dict(
is_dict=True
),
seed=dict(),
jitted=dict(),
chunked=dict(),
staticized=dict(),
records=dict()
)
BasePreparer class¶
Base class for preparing target functions and arguments.
Warning
Most properties are force-cached - create a new instance to override any attribute.
Superclasses
Inherited members
- Base.chat
- Base.find_api
- Base.find_assets
- Base.find_docs
- Base.find_examples
- Base.find_messages
- Cacheable.get_ca_setup
- Chainable.chain
- Chainable.pipe
- Configured.config
- Configured.copy
- Configured.equals
- Configured.get_writeable_attrs
- Configured.prettify
- Configured.rec_state
- Configured.replace
- Configured.resolve_merge_kwargs
- Configured.update_config
- HasSettings.get_path_setting
- HasSettings.get_path_settings
- HasSettings.get_setting
- HasSettings.get_settings
- HasSettings.has_path_setting
- HasSettings.has_path_settings
- HasSettings.has_setting
- HasSettings.has_settings
- HasSettings.reset_settings
- HasSettings.resolve_setting
- HasSettings.resolve_settings_paths
- HasSettings.set_settings
- Pickleable.decode_config
- Pickleable.decode_config_node
- Pickleable.dumps
- Pickleable.encode_config
- Pickleable.encode_config_node
- Pickleable.file_exists
- Pickleable.getsize
- Pickleable.load
- Pickleable.loads
- Pickleable.modify_state
- Pickleable.resolve_file_path
- Pickleable.save
- Prettified.pprint
Subclasses
adapt_staticized_to_udf class method¶
Adapt staticized dictionary to a UDF.
arg_config property¶
Argument config of BasePreparer.
HybridConfig(
broadcast_named_args=dict(
is_dict=True
),
broadcast_kwargs=dict(
is_dict=True
),
template_context=dict(
is_dict=True
),
seed=dict(),
jitted=dict(),
chunked=dict(),
staticized=dict(),
records=dict()
)
args_to_broadcast cached_property¶
Arguments to broadcast.
broadcast_kwargs cached_property¶
Argument broadcast_kwargs.
broadcast_named_args cached_property¶
Argument broadcast_named_args.
broadcast_result cached_property¶
Result of broadcasting.
build_arg_config_doc class method¶
Build argument config documentation.
chunked cached_property¶
Argument chunked.
def_broadcast_kwargs cached_property¶
Default keyword arguments for broadcasting.
dt_arr_to_ns class method¶
Prepare a datetime array and convert it to nanoseconds.
find_target_func class method¶
Find target function by its name.
freq cached_property¶
Frequency in nanosecond format.
get_arg method¶
Get mapped argument according to the argument config.
get_arg_default method¶
Get argument default according to the argument config.
get_raw_arg method¶
Get raw argument.
get_raw_arg_default method¶
Get raw argument default.
idx_setters cached_property¶
Index setters from resolving the argument records.
index cached_property¶
Index in nanosecond format.
jitted cached_property¶
Argument jitted.
map_enum_value class method¶
Map enumerated value(s).
override_arg_config_doc class method¶
Call this method on each subclass that overrides BasePreparer.arg_config.
post_args cached_property¶
Arguments after broadcasting.
post_broadcast_named_args cached_property¶
Custom arguments after broadcasting.
pre_args cached_property¶
Arguments before broadcasting.
prepare_dt_arr class method¶
Prepare a datetime array.
prepare_dt_obj class method¶
Prepare a datetime object for broadcasting.
prepare_post_arg method¶
Prepare an argument after broadcasting and/or template substitution.
prepare_td_arr class method¶
Prepare a timedelta array.
prepare_td_obj class method¶
Prepare a timedelta object for broadcasting.
records cached_property¶
Argument records.
resolve_dynamic_target_func class method¶
Resolve a dynamic target function.
seed cached_property¶
Argument seed.
set_seed method¶
Set seed.
staticized cached_property¶
Argument staticized.
target_arg_map cached_property¶
Map of the target arguments to the preparer attributes.
target_args cached_property¶
Arguments to be passed to the target function.
target_func cached_property¶
Target function.
target_shape cached_property¶
Target shape.
td_arr_to_ns class method¶
Prepare a timedelta array and convert it to nanoseconds.
template_context cached_property¶
Argument template_context.
wrapper cached_property¶
Array wrapper.
MetaBasePreparer class¶
Metaclass for BasePreparer.
Superclasses
- MetaConfigured
builtins.type
arg_config class property¶
Argument config.