-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessor.py
More file actions
23 lines (18 loc) · 775 Bytes
/
Copy pathprocessor.py
File metadata and controls
23 lines (18 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Processor():
"""
The base class for the processors.
The variable path_url containing the path or the URL of the database,
initially set as an empty string, that will be updated with the method setDbPathOrUrl.
"""
dbPathOrUrl = ""
def getDbPathOrUrl(self) -> str:
"""it returns the path or URL of the database."""
return self.dbPathOrUrl
def setDbPathOrUrl(self, path_url: str):
"""it enables to set a new path or URL for the database to handle."""
self.dbPathOrUrl = path_url
return True
class QueryProcessor(Processor):
def getEntityById():
"""it returns a data frame with all the entities matching the input identifier (i.e. maximum one entity)."""
pass