Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/datapane/datapane
/ is_valid_id
Function
is_valid_id
python-client/src/datapane/common/viewxml_utils.py:29–31 ·
view source on GitHub ↗
(cached) regex to check for a xsd:ID name
(id: str)
Source
from the content-addressed store, hash-verified
27
28
29
def
is_valid_id(id: str) -> bool:
30
""
"(cached) regex to check for a xsd:ID name"
""
31
return
re.fullmatch(r
"^[a-zA-Z_][\w.-]*$"
, id) is not None
32
33
34
def
validate_view_doc(
Callers
1
__init__
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected