obspy.clients.nrl.client.NRLPath.isidentifier

NRLPath.isidentifier()

Return True if the string is a valid Python identifier, False otherwise.

Use keyword.iskeyword() to test for reserved identifiers such as “def” and “class”.