MCPcopy Index your code
hub / github.com/blacklanternsecurity/bbot / cycle_api_key

Method cycle_api_key

bbot/modules/base.py:353–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

351 self._api_keys = list(api_keys)
352
353 def cycle_api_key(self):
354 if len(self._api_keys) > 1:
355 self.verbose("Cycling API key")
356 self._api_keys.insert(0, self._api_keys.pop())
357 else:
358 self.debug("No extra API keys to cycle")
359
360 @property
361 def api_retries(self):

Callers 2

api_requestMethod · 0.95
api_downloadMethod · 0.95

Calls 3

verboseMethod · 0.95
debugMethod · 0.95
popMethod · 0.80

Tested by

no test coverage detected