module
comment "# standard library"
import_statement
import "import"
dotted_name
identifier "sys"
import_statement
import "import"
dotted_name
identifier "json"
import_statement
import "import"
dotted_name
identifier "portage"
import_from_statement
from "from"
dotted_name
identifier "datetime"
import "import"
dotted_name
identifier "datetime"
comment "# external library"
comment "# portage api: sys-apps/portage"
import_statement
import "import"
dotted_name
identifier "portage"
comment "# dev-python/termcolor"
import_from_statement
from "from"
dotted_name
identifier "termcolor"
import "import"
dotted_name
identifier "colored"
comment "# http: dev-python/requests"
import_statement
import "import"
dotted_name
identifier "requests"
expression_statement
assignment
identifier "VERSION"
= "="
string
string_start "'"
string_content "3.4"
string_end "'"
expression_statement
assignment
identifier "BASEURL"
= "="
string
string_start "'"
string_content "https://www.portagefilelist.de/query.php?file=%s"
string_end "'"
comment "# the main method to run this."
comment "# options are"
comment "# options = {"
comment "# 'file': '',"
comment "# 'stdout': False"
comment "# }"
comment "# Use options['stdout'] = True if you wan to run this as a s"...
comment "# With False the output is collected and returned, so no imm"...
function_definition (+29 nodes collapsed)
class_definition (+1599 nodes collapsed)