Lumesh Built-in Function Documentation: Into Module
Basic Data Types
You can view the types by executing the type
command.
boolean
- Function: Converts to boolean
- Parameters:
value: Any
- Any type of value
- Returns:
Boolean
- Example:
boolean 42 # Returns True |
str
- Function: Converts to string
- Parameters:
value: Any
- Any type of value
- Returns:
String
- Example:
str 42 # Returns "42" |
int
- Function: Converts to integer
- Parameters:
value: Integer | Float | String
- Returns:
Integer
- Example:
int "100" # Returns 100 |
float
- Function: Converts to float
- Parameters:
value: Integer | Float | String
- Returns:
Float
- Example:
float "100" # Returns 100 |
filesize
- Function: Converts to file size
- Parameters:
value: Integer | Float | String | Filesize
- Returns:
Filesize
- Example:
filesize "3000M" # Returns 2.93G |
time
Same as
time.parse
- Function: Converts to time
- Parameters:
value: String
- Returns:
DateTime
- Example:
time "2025-1-2" # Returns a DateTime type |
Complex Data Types
table
Same as
parse.cmd
json
Same as
parse.to_json
toml
Same as
parse.to_toml
csv
Same as
parse.to_csv