GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ImagineAdapterInterface   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 44
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A check_cached_item() 0 7 1
A get_item() 0 7 1
A create_cached_item() 0 8 1
A get_cached_item() 0 7 1
A remove_cached_item() 0 7 1
1
"""
2
This module implement a storage adapter interface.
3
"""
4
5
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