Skip to content

Commit

Permalink
Added shorten() and expand() Python functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
smelamud committed Mar 16, 2024
1 parent cd68c8e commit 8d98dfe
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _data/py_naming_classes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,26 @@ functions:
If the node name does not include a generation, generation 0 is returned. If name syntax is invalid,
<code>ValueError</code> is raised.
- name: shorten(node_name)
params:
- name: node_name
type: str | None
description: the node name in compact or full form
out:
type: str | None
description: the node name in the compact form
description: Converts the node name to the compact form, omitting generation 0.

- name: expand(node_name)
params:
- name: node_name
type: str | None
description: the node name in compact or full form
out:
type: str | None
description: the node name in the full form
description: Converts the node name to the full form, containing generation.

- name: resolve(name, naming_server=MAIN_SERVER)
params:
- name: name
Expand Down

0 comments on commit 8d98dfe

Please sign in to comment.