nimblebox logo
Docs
v3.3.1b

nbox.framework.on_functions

This contains the code for our public static code parsers. We will be moving them internally as we expand our scope. Till then here's all the code we have written till now. Keep a lookout for Timeless from NimbleBox.

Functions

iconfunctionwrite_program
[source]

Render code for any program.

iconfunctionget_code_portion
[source]

Returns code piece for any section given all the lines it contains

iconfunctionparse_args
[source]

Takes an ast.arguments list and reutrns kwarg/value pair from it.

iconfunctionget_name
[source]

Given a node, try to extract it's name.

iconfunctionparse_kwargs
[source]

Given a node, try to extract it's kwargs.

iconfunctionnode_assign_or_expr
[source]

Return nbox.hyperloop Node for assign or expressions

iconfunctionnode_if_expr
[source]

Return nbox.hyperloop Node for if conditional

iconfunctionnode_for_expr
[source]

Return nbox.hyperloop Node for as for loop.

iconfunctionnode_return
[source]

Return nbox.hyperloop Node for a return method.

iconfunctiondef_func_or_class
[source]

Return nbox.hyperloop Node for any function or class definition.

iconfunctionasync_def_func_or_class
[source]

Return nbox.hyperloop Node for any asyn function.

iconfunctioncode_node
[source]

Return default nbox.hyperloop Node.

iconfunctionget_nbx_flow
[source]
(forward:callable)
Parameters
  • forward -

    the function whose flowchart is to be generated

Get NBX flowchart. Read python grammar here <https://docs.python.org/3/reference/grammar.html>_

Classes

iconclassNboxStrings
[source]
iconfunction__init__
[source]
iconfunctionfunction
[source]

Render code for any function.

iconfunctiondefine
[source]

Render code for any definition.

iconfunctionfor_loop
[source]

Render code for any for loop.

iconfunctionreturn_statement
[source]

Render code for any return statement.

nbox SDKnbox provides built in access to all the APIs and packages them in the most user friendly manner.Star 0