for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from pocketutils.core.query_utils import QueryExecutor
from mandos.model.utils import logger
class _QueryMixin:
@property
def executor(self) -> QueryExecutor:
raise NotImplementedError()
def _query(self, url: str) -> str:
data = self.executor(url)
tt = self.executor.last_time_taken
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
wt, qt = tt.wait.total_seconds(), tt.query.total_seconds()
bts = int(len(data) * 8 / 1024)
logger.trace(f"Queried {bts} kb from {url} in {qt:.1} s with {wt:.1} s of wait")
return data
__all__ = ["QueryExecutor"]