cellmap_flow.utils.web_utils
Attributes
Functions
Return the local/private IP address in use on this machine |
|
|
Encodes a JSON object into a URL-safe string without '/', '+', or '='. |
|
Decodes a URL-safe string back into a JSON object. |
|
|
|
|
|
Module Contents
- cellmap_flow.utils.web_utils.ARGS_KEY = '__CFLOW_ARGS__'
- cellmap_flow.utils.web_utils.IP_PATTERN = ['CELLMAP_FLOW_SERVER_IP(', ')CELLMAP_FLOW_SERVER_IP']
- cellmap_flow.utils.web_utils.INPUT_NORM_DICT_KEY = 'input_norm'
- cellmap_flow.utils.web_utils.POSTPROCESS_DICT_KEY = 'postprocess'
- cellmap_flow.utils.web_utils.get_free_port()
- cellmap_flow.utils.web_utils.get_public_ip()
Return the local/private IP address in use on this machine (e.g., 10.x.x.x or 192.168.x.x if behind NAT). This does not return the real Internet-facing public IP if you’re behind NAT.
- cellmap_flow.utils.web_utils.encode_to_str(data)
Encodes a JSON object into a URL-safe string without ‘/’, ‘+’, or ‘=’.
- cellmap_flow.utils.web_utils.decode_to_json(encoded_str)
Decodes a URL-safe string back into a JSON object.
- cellmap_flow.utils.web_utils.list_cls_to_dict(ll)
- cellmap_flow.utils.web_utils.kill_n_remove_from_neuroglancer(jobs, s)
- cellmap_flow.utils.web_utils.get_norms_post_args(input_norms, postprocess)