hyped.core.ops package¶
Submodules¶
- hyped.core.ops.boolean module
- hyped.core.ops.casting module
- hyped.core.ops.common module
- hyped.core.ops.debug module
- hyped.core.ops.mapping module
- hyped.core.ops.numeric module
- hyped.core.ops.sequence module
SequenceGetItemSequenceGetItemConfigSequenceGetItemsSequenceGetItemsConfigSequenceGetSliceSequenceGetSliceConfigSequenceIndexSequenceIndexConfigSequenceLengthSequenceLengthConfigSequenceMaxSequenceMaxConfigSequenceMinSequenceMinConfigSequencePackSequencePackConfigSequencePadSequencePadConfigSequenceSumSequenceSumConfigSequenceUnpackSequenceUnpackConfigSequenceUnpackWithIndexSequenceUnpackWithIndexConfigSequenceValueWithIndexSequenceZipSequenceZipConfigSequenceZipMappingSequenceZipMappingConfigpack_sequence()sequence_get_item()sequence_max()sequence_min()sequence_pad()zip_()
- hyped.core.ops.string module
StringAddStringAddConfigStringCapitalizeStringCapitalizeConfigStringContainsStringContainsConfigStringEndsWithStringEndsWithConfigStringFindStringFindConfigStringFormatStringFormatConfigStringGetSliceStringGetSliceConfigStringLeftStripStringLeftStripConfigStringLengthStringLengthConfigStringLowerStringLowerConfigStringMultiplyStringMultiplyConfigStringReplaceStringReplaceConfigStringRightStripStringRightStripConfigStringSetSliceStringSetSliceConfigStringSplitStringSplitConfigStringStartsWithStringStartsWithConfigStringStripStringStripConfigStringSwapCaseStringSwapCaseConfigStringTitleStringTitleConfigStringUpperStringUpperConfigstring_contains()string_endswith()string_find()string_format()string_getitem()string_lstrip()string_replace()string_rstrip()string_setitem()string_split()string_startswith()string_strip()
Module contents¶
Implementation Core Operations.
- hyped.core.ops.cast(typ: Any, val: Any) Any¶
Cast a feature to a specified data type.
This function performs a type cast for a value if it is an instance of a
Feature. It infers the target data type from the provided type annotation, adds a cast node to the data flow graph, and retrieves the resulting feature.- Parameters:
typ (Any) – The target type to cast the value to. Typically, this is a type annotation.
val (Any) – The value to be cast. If the value is not a
Feature, it is returned unchanged.
- Returns:
The cast value. If the input
valis aFeature, the function returns the feature resulting from the cast operation. Otherwise, it returnsvalunchanged.- Return type:
Any
- hyped.core.ops.filter_(value: T, condition: BoolFeature | bool | list[bool] | BooleanScalar | BooleanArray) T[source]¶
Filters input values based on a boolean condition using the
GlobalFilteraugmentor.
- hyped.core.ops.zip_(*args: SequenceFeature[T] | list[T] | list[list[T]] | ListScalar | ListArray) SequenceFeature[SequenceFeature[T] | list[T] | list[list[T]] | ListScalar | ListArray] | list[SequenceFeature[T] | list[T] | list[list[T]] | ListScalar | ListArray] | list[list[SequenceFeature[T] | list[T] | list[list[T]] | ListScalar | ListArray]] | ListScalar | ListArray[source]¶
- hyped.core.ops.zip_(**kwargs: SequenceFeature[T] | list[T] | list[list[T]] | ListScalar | ListArray) SequenceFeature[_MappingFeature] | list[_MappingFeature] | list[list[_MappingFeature]] | ListScalar | ListArray
Zip multiple sequences together.
- Parameters:
- Returns:
- The zipped sequences. If the input is
a list of sequences the output will be a
Sequence[Sequence]too. If the input is a dict of mixed-type sequences, the output will be aSequence[Mapping].
- Return type: