pashmak

Python standard modules

you can use this python standard modules in pashmak directly in your code:

for example:

println(os.getuid())
println(random.random())
println('hash is ' + hashlib.sha256('hello'.encode()).hexdigest())
$cwd = os.getcwd()
$time = time.time() - 100
# ...

this is very useful!

Also you can use py_load_module function. if you want to import a module that not imported by default, you can use this function.

Example:

$module = py_load_module('module_name')
$module->func_1()
# ...