- string value lookup
-
string array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not an string, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single string value instead of an array, it will always be converted to a single-item array. - Integer value lookup
-
Integer array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not an integer, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single integer value instead of an array, it will always be converted to a single-item array. - float value lookup
-
float array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not an float, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single float value instead of an array, it will always be converted to a single-item array. - boolean value lookup
-
boolean array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not a boolean, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single boolean value instead of an array, it will always be converted to a single-item array. - offset_datetime value lookup
-
offset_datetime array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not an offset datetime, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single offset_datetime value instead of an array, it will always be converted to a single-item array. - local_datetime value lookup
-
local_datetime array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not a local datetime, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single local_datetime value instead of an array, it will always be converted to a single-item array. - local_date value lookup
-
local_date array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not a local date, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single local_date value instead of an array, it will always be converted to a single-item array. - local_time value lookup
-
local_time array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not a local time, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single local time value instead of an array, it will always be converted to a single-item array.
package otoml
Module Otoml.HelpersSource
string value lookup
Looks up an string at specified path.
Alias for find_string
Looks up an string at specified path, returns None if path does not exist.
Looks up an string at specified path, returns an Error with a descriptive message if path does not exist or the value is neither an string nor (with ~strict:false) a value that can be converted to string.
string array value lookup Note: for all functions that look up arrays, ~strict:true applies only to array item conversion. With ~strict:true they will fail if an array contains a value that is not an string, while with ~strict:false it will attempt to convert values (i.e. pass ~strict:false to the accessor function). If a user supplies a single string value instead of an array, it will always be converted to a single-item array.
Looks up an array of strings at specified path.
Alias for find_strings
Looks up an array of strings at specified path, returns None if path does not exist.
Looks up an array of strings at specified path, returns an Error with a descriptive message if path does not exist or the value is neither an string or an array of strings, nor (with ~strict:false) a value that can be converted to an array of strings.
Integer value lookup
Looks up an integer at specified path.
Alias for find_integer
Looks up an integer at specified path, returns None if path does not exist.
Looks up an integer at specified path, returns an Error with a descriptive message if path does not exist or the value is neither an integer nor (with ~strict:false) a value that can be converted to integer.
Integer array value lookup Note: for all functions that look up arrays, ~strict:true applies only to array item conversion. With ~strict:true they will fail if an array contains a value that is not an integer, while with ~strict:false it will attempt to convert values (i.e. pass ~strict:false to the accessor function). If a user supplies a single integer value instead of an array, it will always be converted to a single-item array.
Looks up an array of integers at specified path.
Alias for find_integers
Looks up an array of integers at specified path, returns None if path does not exist.
val find_integers_result :
?strict:bool ->
t ->
string list ->
(toml_integer list, string) resultLooks up an array of integers at specified path, returns an Error with a descriptive message if path does not exist or the value is neither an integer or an array of integers, nor (with ~strict:false) a value that can be converted to an array of integers.
float value lookup
Looks up an float at specified path.
Alias for find_float
Looks up an float at specified path, returns None if path does not exist.
Looks up an float at specified path, returns an Error with a descriptive message if path does not exist or the value is neither an float nor (with ~strict:false) a value that can be converted to float.
float array value lookup Note: for all functions that look up arrays, ~strict:true applies only to array item conversion. With ~strict:true they will fail if an array contains a value that is not an float, while with ~strict:false it will attempt to convert values (i.e. pass ~strict:false to the accessor function). If a user supplies a single float value instead of an array, it will always be converted to a single-item array.
Looks up an array of floats at specified path.
Alias for find_floats
Looks up an array of floats at specified path, returns None if path does not exist.
Looks up an array of floats at specified path, returns an Error with a descriptive message if path does not exist or the value is neither an float or an array of floats, nor (with ~strict:false) a value that can be converted to an array of floats.
boolean value lookup
Looks up a boolean at specified path.
Alias for find_boolean
Looks up a boolean at specified path, returns None if path does not exist.
Looks up a boolean at specified path, returns an Error with a descriptive message if path does not exist or the value is neither a boolean nor (with ~strict:false) a value that can be converted to boolean.
boolean array value lookup Note: for all functions that look up arrays, ~strict:true applies only to array item conversion. With ~strict:true they will fail if an array contains a value that is not a boolean, while with ~strict:false it will attempt to convert values (i.e. pass ~strict:false to the accessor function). If a user supplies a single boolean value instead of an array, it will always be converted to a single-item array.
Looks up an array of booleans at specified path.
Alias for find_booleans
Looks up an array of booleans at specified path, returns None if path does not exist.
Looks up an array of booleans at specified path, returns an Error with a descriptive message if path does not exist or the value is neither a boolean or an array of booleans, nor (with ~strict:false) a value that can be converted to an array of booleans.
offset_datetime value lookup
Looks up an offset_datetime at specified path.
Alias for find_offset_datetime
Looks up an offset_datetime at specified path, returns None if path does not exist.
val find_offset_datetime_result :
?strict:bool ->
t ->
string list ->
(toml_date, string) resultLooks up an offset_datetime at specified path, returns an Error with a descriptive message if path does not exist or the value is neither an offset_datetime nor (with ~strict:false) a value that can be converted to offset_datetime.
offset_datetime array value lookup Note: for all functions that look up arrays, ~strict:true applies only to array item conversion. With ~strict:true they will fail if an array contains a value that is not an offset datetime, while with ~strict:false it will attempt to convert values (i.e. pass ~strict:false to the accessor function). If a user supplies a single offset_datetime value instead of an array, it will always be converted to a single-item array.
Looks up an array of offset_datetimes at specified path.
Alias for find_offset_datetimes
Looks up an array of offset_datetimes at specified path, returns None if path does not exist.
val find_offset_datetimes_result :
?strict:bool ->
t ->
string list ->
(toml_date list, string) resultLooks up an array of offset_datetimes at specified path, returns an Error with a descriptive message if path does not exist or the value is neither an offset datetime or an array of offset datetimes, nor (with ~strict:false) a value that can be converted to an array of offset_datetimes.
local_datetime value lookup
Looks up a local_datetime at specified path.
Alias for find_local_datetime
Looks up a local_datetime at specified path, returns None if path does not exist.
val find_local_datetime_result :
?strict:bool ->
t ->
string list ->
(toml_date, string) resultLooks up a local_datetime at specified path, returns an Error with a descriptive message if path does not exist or the value is neither a local datetime nor (with ~strict:false) a value that can be converted to local datetime.
local_datetime array value lookup Note: for all functions that look up arrays, ~strict:true applies only to array item conversion. With ~strict:true they will fail if an array contains a value that is not a local datetime, while with ~strict:false it will attempt to convert values (i.e. pass ~strict:false to the accessor function). If a user supplies a single local_datetime value instead of an array, it will always be converted to a single-item array.
Looks up an array of local_datetimes at specified path.
Alias for find_local_datetimes
Looks up an array of local_datetimes at specified path, returns None if path does not exist.
val find_local_datetimes_result :
?strict:bool ->
t ->
string list ->
(toml_date list, string) resultLooks up an array of local_datetimes at specified path, returns an Error with a descriptive message if path does not exist or the value is neither a local datetime or an array of local datetimes, nor (with ~strict:false) a value that can be converted to an array of local_datetimes.
local_date value lookup
Looks up a local_date at specified path.
Alias for find_local_date
Looks up a local_date at specified path, returns None if path does not exist.
Looks up a local_date at specified path, returns an Error with a descriptive message if path does not exist or the value is neither a local_date nor (with ~strict:false) a value that can be converted to local_date.
local_date array value lookup Note: for all functions that look up arrays, ~strict:true applies only to array item conversion. With ~strict:true they will fail if an array contains a value that is not a local date, while with ~strict:false it will attempt to convert values (i.e. pass ~strict:false to the accessor function). If a user supplies a single local_date value instead of an array, it will always be converted to a single-item array.
Looks up an array of local_dates at specified path.
Alias for find_local_dates
Looks up an array of local_dates at specified path, returns None if path does not exist.
val find_local_dates_result :
?strict:bool ->
t ->
string list ->
(toml_date list, string) resultLooks up an array of local_dates at specified path, returns an Error with a descriptive message if path does not exist or the value is neither a local_date or an array of local_dates, nor (with ~strict:false) a value that can be converted to an array of local_dates.
local_time value lookup
Looks up a local_time at specified path.
Alias for find_local_time
Looks up a local_time at specified path, returns None if path does not exist.
Looks up a local_time at specified path, returns an Error with a descriptive message if path does not exist or the value is neither a local time nor (with ~strict:false) a value that can be converted to local_time.
local_time array value lookup Note: for all functions that look up arrays, ~strict:true applies only to array item conversion. With ~strict:true they will fail if an array contains a value that is not a local time, while with ~strict:false it will attempt to convert values (i.e. pass ~strict:false to the accessor function). If a user supplies a single local time value instead of an array, it will always be converted to a single-item array.
Looks up an array of local_times at specified path.
Alias for find_local_times
Looks up an array of local_times at specified path, returns None if path does not exist.
val find_local_times_result :
?strict:bool ->
t ->
string list ->
(toml_date list, string) resultLooks up an array of local_times at specified path, returns an Error with a descriptive message if path does not exist or the value is neither a local time or an array of local_times, nor (with ~strict:false) a value that can be converted to an array of local times.
- string value lookup
-
string array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not an string, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single string value instead of an array, it will always be converted to a single-item array. - Integer value lookup
-
Integer array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not an integer, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single integer value instead of an array, it will always be converted to a single-item array. - float value lookup
-
float array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not an float, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single float value instead of an array, it will always be converted to a single-item array. - boolean value lookup
-
boolean array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not a boolean, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single boolean value instead of an array, it will always be converted to a single-item array. - offset_datetime value lookup
-
offset_datetime array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not an offset datetime, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single offset_datetime value instead of an array, it will always be converted to a single-item array. - local_datetime value lookup
-
local_datetime array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not a local datetime, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single local_datetime value instead of an array, it will always be converted to a single-item array. - local_date value lookup
-
local_date array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not a local date, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single local_date value instead of an array, it will always be converted to a single-item array. - local_time value lookup
-
local_time array value lookup Note: for all functions that look up arrays,
~strict:trueapplies only to array item conversion. With~strict:truethey will fail if an array contains a value that is not a local time, while with~strict:falseit will attempt to convert values (i.e. pass~strict:falseto the accessor function). If a user supplies a single local time value instead of an array, it will always be converted to a single-item array.