caoscrawler.utils module
- caoscrawler.utils.has_parent(entity: Entity, name: str)
A simple check, whether a parent with the given name exists.
There is a similar, however more complex function in package caosdb.
- caoscrawler.utils.MissingImport(name: str, hint: str = '', err: Exception | None = None) type
Factory with dummy classes, which may be assigned to variables but never used.
Return a link adress which is basically {host_url}/Shared/{filename}.
Use urllib.parse.join and os.path.join to prevent missing or extra
/
and the like.