univk_audio   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 47
dl 0
loc 63
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A exit_init() 0 10 1
1
from typing import Tuple
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
3
__all__: Tuple[str, ...] = (
4
	# Main class
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
5
	"AsyncVKMusic",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
6
	# Auth class
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
7
	"AsyncVKAuth",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
8
	# VK Music class exceptions
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
9
	"InvalidQuery",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
10
	"InvalidPath",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
11
	"SearchSongError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
12
	"ParserError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
13
	"ParseLinkError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
14
	"DownloaderRequestError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
15
	"DownloaderWriteError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
16
	# VK Auth class exceptions
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
17
	"OAuthRequestError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
18
	"VKIDRequestError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
19
	"ConnectAuthRequestError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
20
	"SendCodeRequestError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
21
	"GetCookiesRequestError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
22
	"AuthObjectNotFound",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
23
	"AuthParsingError",
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
24
	"CookieWriterError"
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
25
)
26
27
try:
28
	from .async_auth import (
0 ignored issues
show
Coding Style introduced by
Found indentation with tabs instead of spaces
Loading history...
29
		AsyncVKAuth,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
30
		OAuthRequestError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
31
		VKIDRequestError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
32
		ConnectAuthRequestError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
33
		SendCodeRequestError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
34
		GetCookiesRequestError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
35
		AuthObjectNotFound,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
36
		AuthParsingError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
37
		CookieWriterError
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
38
	)
39
	from .async_client import (
0 ignored issues
show
Coding Style introduced by
Found indentation with tabs instead of spaces
Loading history...
40
		AsyncVKMusic,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
41
		InvalidQuery,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
42
		InvalidPath,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
43
		SearchSongError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
44
		ParserError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
45
		ParseLinkError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
46
		DownloaderRequestError,
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
47
		DownloaderWriteError
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
48
	)
49
except ImportError:
50
51
	def exit_init() -> None:
0 ignored issues
show
Coding Style introduced by
Found indentation with tabs instead of spaces
Loading history...
introduced by
Missing function or method docstring
Loading history...
52
		import sys
0 ignored issues
show
Coding Style introduced by
Found indentation with tabs instead of spaces
Loading history...
introduced by
Import outside toplevel (sys)
Loading history...
53
54
		print(
0 ignored issues
show
Coding Style introduced by
Found indentation with tabs instead of spaces
Loading history...
55
			"VKMusic could not run.\n"
0 ignored issues
show
Coding Style introduced by
Wrong hanging indentation (remove 4 spaces).
Loading history...
56
			"Looks like required dependencies were not installed.\n"
57
			"Please make sure you have installed all required dependencies "
58
			"from requirements.txt file correctly."
59
		)
60
		sys.exit(1)
0 ignored issues
show
Coding Style introduced by
Found indentation with tabs instead of spaces
Loading history...
61
62
	exit_init()
0 ignored issues
show
Coding Style introduced by
Found indentation with tabs instead of spaces
Loading history...
63