datacatalog.identifiers.abaco package¶
Submodules¶
datacatalog.identifiers.abaco.actorid module¶
-
datacatalog.identifiers.abaco.actorid.
validate
(text_string, permissive=False)[source]¶ Validate whether a string is a hashid
Parameters: Raises: ValueError
– The passed value was not a Hashid and permissive was FalseReturns: Whether the passed value is a Hashid
Return type: Warning
This is better for opt-in classification than formal valdiation as there are several edge cases than can render a false negative.
datacatalog.identifiers.abaco.examples module¶
datacatalog.identifiers.abaco.execid module¶
-
datacatalog.identifiers.abaco.execid.
validate
(text_string, permissive=False)[source]¶ Validate whether a string is a hashid
Parameters: Raises: ValueError
– The passed value was not a Hashid and permissive was FalseReturns: Whether the passed value is a Hashid
Return type: Warning
This is better for opt-in classification than formal valdiation as there are several edge cases than can render a false negative.
datacatalog.identifiers.abaco.hashid module¶
-
datacatalog.identifiers.abaco.hashid.
validate
(text_string, permissive=False)[source]¶ Validate whether a string is a hashid
Parameters: Raises: ValueError
– The passed value was not a Hashid and permissive was FalseReturns: Whether the passed value is a Hashid
Return type: Warning
This is better for opt-in classification than formal valdiation as there are several edge cases than can render a false negative.
-
datacatalog.identifiers.abaco.hashid.
mock
()[source]¶ Create a Hashid that will not validate
This is useful for testing.
Returns: The new Hashid Return type: str
datacatalog.identifiers.abaco.nonceid module¶
-
datacatalog.identifiers.abaco.nonceid.
validate
(text_string, permissive=False)[source]¶ Validate whether a string is an Abaco nonce
Parameters: Raises: ValueError
– The passed value was not a Nonce and permissive was FalseReturns: Whether the passed value is a Nonce
Return type: Warning
This is better for opt-in classification than formal valdiation as there are several edge cases than can render a false negative.