| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 6 | class ImagineAdapterInterface(object): |
||
| 7 | """ |
||
| 8 | Storage adapter interface |
||
| 9 | """ |
||
| 10 | def get_item(self, path): |
||
| 11 | """ |
||
| 12 | Get resource item |
||
| 13 | :param path: string |
||
| 14 | :return: PIL.Image |
||
| 15 | """ |
||
| 16 | raise NotImplementedError() |
||
| 17 | |||
| 18 | def create_cached_item(self, path, content): |
||
| 19 | """ |
||
| 20 | Create cached resource item |
||
| 21 | :param path: string |
||
| 22 | :param content: Image |
||
| 23 | :return: str |
||
| 24 | """ |
||
| 25 | raise NotImplementedError() |
||
| 26 | |||
| 27 | def get_cached_item(self, path): |
||
| 28 | """ |
||
| 29 | Get cached resource item |
||
| 30 | :param path: string |
||
| 31 | :return: PIL.Image |
||
| 32 | """ |
||
| 33 | raise NotImplementedError() |
||
| 34 | |||
| 35 | def check_cached_item(self, path): |
||
| 36 | """ |
||
| 37 | Check for cached resource item exists |
||
| 38 | :param path: string |
||
| 39 | :return: bool |
||
| 40 | """ |
||
| 41 | raise NotImplementedError() |
||
| 42 | |||
| 43 | def remove_cached_item(self, path): |
||
| 44 | """ |
||
| 45 | Remove cached resource item |
||
| 46 | :param path: string |
||
| 47 | :return: bool |
||
| 48 | """ |
||
| 49 | raise NotImplementedError() |
||
| 50 |