for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
#!/usr/bin/python
# -*- coding: utf-8 -*-
from abc import ABCMeta, abstractmethod
class SalesAdapterBase:
__metaclass__ = ABCMeta
@abstractmethod
def search(self, market_name):
"""Search for a specific item
:param market_name:
:return:
"""
pass
def search_no_delay(self, market_name):
"""Search for a specific item without delay
(some APIs delay responses to prevent bot sniping, use workarounds)
def get_sold_history(self, market_name):
"""Get the last available sell history
def get_sold_history_no_delay(self, market_name):
"""Get the last available sell history without delay