MCPcopy Create free account
hub / github.com/ScottfreeLLC/AlphaPy / get_alias

Function get_alias

alphapy/alias.py:125–148  ·  view source on GitHub ↗

r"""Find an alias value with the given key. Parameters ---------- alias : str Key for finding the alias value. Returns ------- alias_value : str Value for the corresponding key. Examples -------- >>> alias_value = get_alias('atr') >>> alias

(alias)

Source from the content-addressed store, hash-verified

123#
124
125def get_alias(alias):
126 r"""Find an alias value with the given key.
127
128 Parameters
129 ----------
130 alias : str
131 Key for finding the alias value.
132
133 Returns
134 -------
135 alias_value : str
136 Value for the corresponding key.
137
138 Examples
139 --------
140
141 >>> alias_value = get_alias('atr')
142 >>> alias_value = get_alias('hc')
143
144 """
145 if alias in Alias.aliases:
146 return Alias.aliases[alias]
147 else:
148 return None

Callers 1

vparseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected