Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZhouYanzhao/Nest
/ functions
Functions
83 in github.com/ZhouYanzhao/Nest
⨍
Functions
83
◇
Types & classes
9
↓ 20 callers
Method
add_argument
Hide metavar by default.
src/nest/cli.py:47
↓ 19 callers
Method
keys
(self)
src/nest/modules.py:40
↓ 15 callers
Method
items
(self)
src/nest/modules.py:37
↓ 7 callers
Method
_update_modules
Automatically import all available Nest modules.
src/nest/modules.py:691
↓ 5 callers
Method
clone
Clone the Nest module. Parameters: params: Module parameters
src/nest/modules.py:187
↓ 4 callers
Method
load
(self)
src/nest/settings.py:118
↓ 3 callers
Function
is_variable
(name: str)
src/nest/parser.py:31
↓ 3 callers
Function
resolve_variable
(name: str)
src/nest/parser.py:34
↓ 3 callers
Method
save
(self)
src/nest/settings.py:121
↓ 3 callers
Method
save_settings
Save Nest settings. Parameters: path: Path to the setting file settings: The
src/nest/settings.py:58
↓ 3 callers
Method
values
(self)
src/nest/modules.py:43
↓ 2 callers
Method
_check_params
Raise errors if invalid params are provided to the Nest module. Parameters: params: The provided params
src/nest/modules.py:95
↓ 2 callers
Method
_import_nest_modules_from_dir
Import registered Nest modules form a given directory. Parameters: path: The path to the directory n
src/nest/modules.py:382
↓ 2 callers
Method
_import_nest_modules_from_file
Import registered Nest modules form a given file. Parameters: path: The path to the file namespace:
src/nest/modules.py:302
↓ 2 callers
Method
_install_namespaces_from_path
Install namespaces from path. Parameters: path: Path to the directory namespace: Spec
src/nest/modules.py:535
↓ 2 callers
Method
_update_namespaces
Get the available namespaces.
src/nest/modules.py:668
↓ 2 callers
Function
check_all_resolved
(resolved_config: Any)
src/nest/parser.py:91
↓ 2 callers
Method
hook_exceptions
Format excetion traceback. Parameters: logger: The logger for logging exceptions.
src/nest/cli.py:73
↓ 2 callers
Function
parse_config
Parse experiment config. Parameters: config: The configuration of Nest modules, which specifies initial parameters, topologie
src/nest/parser.py:13
↓ 1 callers
Method
__init__
(self, func: Callable, meta: Dict[str, object], params: dict = {})
src/nest/modules.py:56
↓ 1 callers
Method
__len__
Number of Nest modules Returns: The number of Nest modules
src/nest/modules.py:712
↓ 1 callers
Method
_add_module_finder
Add a custom finder to support Nest module import syntax.
src/nest/modules.py:635
↓ 1 callers
Method
_check_definition
Raise errors if the module definition is invalid.
src/nest/modules.py:74
↓ 1 callers
Method
_check_returns
Raise errors if invalid returns are generated by the Nest module. Parameters: returns: The generated returns
src/nest/modules.py:124
↓ 1 callers
Method
_fetch_nest_modules_from_url
Fetch and unzip Nest modules from url. Parameters: url: URL of the zip file or git repo dst:
src/nest/modules.py:413
↓ 1 callers
Method
_format_namespace
Format namespace. Parameters: src: The original namespace Returns: Formatted namespa
src/nest/modules.py:214
↓ 1 callers
Method
_import_nest_modules_from_py_module
Import registered Nest modules from a given python module. Parameters: namespace: A namespace that is used to avo
src/nest/modules.py:270
↓ 1 callers
Method
_install_namespaces_from_url
Install namespaces from url. Parameters: url: URL of the zip file or git repo namespace:
src/nest/modules.py:480
↓ 1 callers
Method
_pack_namespaces
Pack namespaces to a zip file. Parameters: srcs: Path to the namespaces dst: Save pat
src/nest/modules.py:595
↓ 1 callers
Method
_remove_namespaces_from_path
Remove namespaces from path. Parameters: src: Namespace or path
src/nest/modules.py:560
↓ 1 callers
Method
exec_module
(self, module)
src/nest/modules.py:650
↓ 1 callers
Method
filter
(self, record: object)
src/nest/logger.py:14
↓ 1 callers
Method
load_settings
Load Nest settings. Returns: The settings dict
src/nest/settings.py:77
↓ 1 callers
Function
main
()
src/nest/__main__.py:3
↓ 1 callers
Function
run_tasks
Run experiment tasks by resolving config. Parameters: config_file: The path to the config file param_file:
src/nest/parser.py:75
↓ 1 callers
Function
setup_logger
Initialize logger. Returns: The global logger
src/nest/logger.py:18
Method
__call__
(self, *args, **kwargs)
src/nest/modules.py:136
Method
__contains__
(self, key)
src/nest/settings.py:115
Method
__dir__
Support IDE auto-completion Returns: A list of module names
src/nest/modules.py:731
Method
__getattr__
Get a Nest module by name. Parameters: key: Name of the Nest module Returns: The Ne
src/nest/modules.py:742
Method
__getitem__
(self, key: str)
src/nest/modules.py:28
Method
__getitem__
Get a Nest module by a query string. There are three match modes: 1. Exact match if the query string starts with '$':
src/nest/modules.py:769
Method
__getitem__
(self, key: str)
src/nest/settings.py:109
Method
__init__
(self)
src/nest/cli.py:61
Method
__init__
(self)
src/nest/modules.py:202
Method
__init__
(self)
src/nest/modules.py:654
Method
__init__
(self)
src/nest/settings.py:106
Method
__iter__
(self)
src/nest/modules.py:34
Method
__iter__
Iterator for Nest modules. Returns: The Nest module iterator
src/nest/modules.py:702
Method
__repr__
(self)
src/nest/modules.py:184
Method
__repr__
(self)
src/nest/modules.py:825
Method
__setitem__
(self, key: str, val: str)
src/nest/modules.py:31
Method
__setitem__
(self, key: str, val: str)
src/nest/settings.py:112
Method
__str__
(self)
src/nest/modules.py:177
Method
__str__
(self)
src/nest/modules.py:828
Method
_hook
(exc_type, value, exc_tb)
src/nest/cli.py:81
Method
_hook
(count, block_size, total_size)
src/nest/modules.py:423
Method
_ipython_key_completions_
Support IPython key completion. Returns: A list of module ids
src/nest/modules.py:722
Method
_register
Decorator for Nest modules registration. Parameters: ignored: Ignore the module module meta informat
src/nest/modules.py:228
Function
alert_msg
Show alert message. Parameters: msg: The message
src/nest/utils.py:114
Method
check_extension
(filename)
src/nest/modules.py:614
Method
clear
(self)
src/nest/modules.py:46
Method
cmd_module
module Nest module manager.
src/nest/cli.py:123
Method
cmd_setting
setting Settings configuration.
src/nest/cli.py:236
Method
cmd_task
task Task runner.
src/nest/cli.py:99
Method
create_module
(func)
src/nest/modules.py:258
Method
create_module
(self, spec)
src/nest/modules.py:642
Function
decode_id
Decode unique id to namespace and key. Parameters: unique_id: The given unique id Returns: namespace and key
src/nest/utils.py:96
Function
encode_id
Encode unique id from namespace and key. Parameters: namespace: The given namespace key: The given key
src/nest/utils.py:77
Method
error
Show help when parse failed.
src/nest/cli.py:38
Function
exception
Decorator for logging errors and warnings of function. Parameters: func: The decorated function
src/nest/logger.py:47
Method
find_requirement
(name)
src/nest/modules.py:352
Method
find_spec
(self, fullname, path, target=None)
src/nest/modules.py:659
Function
format_elapse
Format an elapse to human readable string. Parameters: elapse: The elapse dict, e.g., dict(seconds=10) Returns:
src/nest/utils.py:31
Method
format_help
Allow to use custom help.
src/nest/cli.py:29
Function
indent_text
Indent multi-line text. Parameters: text: The input text indent: Number of spaces
src/nest/utils.py:64
Method
install_dep
(url, tool)
src/nest/modules.py:519
Function
is_annotation_matched
Return True if annotation is matched with the given variable. {Any, List, Set, Tuple, Dict, Union, Callable, Iterable, Iterator} from "typing" are
src/nest/utils.py:163
Function
load_yaml
Load yaml file. Parameters: path: The path to the file Returns: The dict Raw string
src/nest/utils.py:47
Function
merge_dict
Recursively merges two dicts. Parameters: src: The source dict (will be modified) diff: Differences to
src/nest/utils.py:128
Method
onerror
(func, path, exc_info)
src/nest/cli.py:201
Function
wrapper
(*args, **kwargs)
src/nest/logger.py:55
Function
yaml_format
Format dict using YAML. Parameters: obj: The input dict object Returns: formated string
src/nest/utils.py:17