MCPcopy
hub / github.com/caronc/apprise / parse_phone_no

Method parse_phone_no

apprise/url.py:765–790  ·  view source on GitHub ↗

A wrapper to utils.parse_phone_no() with unquoting support. Parses a specified set of data and breaks it into a list. Args: content (str): The path to split up into a list. If a list is provided, then it's individual entries are processed.

(content, unquote=True, prefix=False)

Source from the content-addressed store, hash-verified

763
764 @staticmethod
765 def parse_phone_no(content, unquote=True, prefix=False):
766 """A wrapper to utils.parse_phone_no() with unquoting support.
767
768 Parses a specified set of data and breaks it into a list.
769
770 Args:
771 content (str): The path to split up into a list. If a list is
772 provided, then it's individual entries are processed.
773
774 unquote (:obj:`bool`, optional): call unquote on each element
775 added to the returned list.
776
777 Returns:
778 list: A unique list containing all of the elements in the path
779 """
780
781 if unquote:
782 try:
783 content = URLBase.unquote(content)
784 except TypeError:
785 # Nothing further to do
786 return []
787
788 content = parse_phone_no(content, prefix=prefix)
789
790 return content
791
792 @property
793 def app_id(self):

Callers 15

test_parse_phone_noFunction · 0.80
test_notify_baseFunction · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80
parse_urlMethod · 0.80

Calls 2

parse_phone_noFunction · 0.85
unquoteMethod · 0.80

Tested by 2

test_parse_phone_noFunction · 0.64
test_notify_baseFunction · 0.64