pythonkuma 0.5.0__tar.gz → 0.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythonkuma
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Simple Python wrapper for Uptime Kuma
5
5
  Project-URL: Source, https://github.com/tr4nt0r/pythonkuma
6
6
  Project-URL: Documentation, https://tr4nt0r.github.io/pythonkuma
@@ -42,21 +42,21 @@ python = ["3.14", "3.13", "3.12"]
42
42
 
43
43
  [tool.hatch.envs.default]
44
44
  dependencies = [
45
- "ruff==0.15.1",
46
- "aiohttp==3.13.3",
47
- "prometheus-client==0.24.1",
48
- "mashumaro==3.20",
49
- "mkdocs-material==9.7.2",
50
- "mkdocstrings[python]==1.0.3",
51
- "pytest-asyncio==1.3.0",
52
- "pytest==9.0.2",
53
- "pytest-cov==7.0.0",
54
- "syrupy==5.1.0",
45
+ "ruff==0.16.1",
46
+ "aiohttp==3.14.3",
47
+ "prometheus-client==0.26.0",
48
+ "mashumaro==3.22",
49
+ "mkdocs-material==9.7.7",
50
+ "mkdocstrings[python]==1.0.6",
51
+ "pytest-asyncio==1.4.0",
52
+ "pytest==9.1.1",
53
+ "pytest-cov==7.1.0",
54
+ "syrupy==5.5.3",
55
55
  ]
56
56
 
57
57
  [tool.hatch.envs.hatch-static-analysis]
58
58
  dependencies = [
59
- "ruff==0.15.1",
59
+ "ruff==0.16.1",
60
60
  ]
61
61
  config-path = "none"
62
62
 
@@ -69,9 +69,9 @@ pythonpath = ["pythonkuma"]
69
69
 
70
70
  [tool.hatch.envs.hatch-test]
71
71
  extra-dependencies = [
72
- "pytest-cov==7.0.0",
73
- "pytest-asyncio==1.3.0",
74
- "syrupy==5.1.0",
72
+ "pytest-cov==7.1.0",
73
+ "pytest-asyncio==1.4.0",
74
+ "syrupy==5.5.3",
75
75
  ]
76
76
  extra-args = ["--cov-report=xml", "-vv"]
77
77
 
@@ -91,7 +91,7 @@ indent-style = "space"
91
91
 
92
92
  [tool.ruff.lint]
93
93
  select = ["ALL"]
94
- ignore = ["TRY003", "COM812", "N818", "C901"]
94
+ ignore = ["TRY003", "COM812", "N818", "C901", "CPY001"]
95
95
 
96
96
  [tool.ruff.lint.per-file-ignores]
97
97
  "tests/*" = ["S101", "TC002", "TC003"]
@@ -11,7 +11,7 @@ from .models import MonitorStatus, MonitorType, UptimeKumaMonitor, UptimeKumaVer
11
11
  from .update import UpdateChecker
12
12
  from .uptimekuma import UptimeKuma
13
13
 
14
- __version__ = "0.5.0"
14
+ __version__ = "0.5.2"
15
15
 
16
16
  __all__ = [
17
17
  "MonitorStatus",
@@ -21,37 +21,47 @@ class MonitorStatus(IntEnum):
21
21
  class MonitorType(StrEnum):
22
22
  """Monitors type."""
23
23
 
24
+ # General monitor type
24
25
  HTTP = "http"
26
+ KEYWORD = "keyword"
25
27
  PORT = "port"
26
28
  PING = "ping"
27
- KEYWORD = "keyword"
28
29
  DNS = "dns"
29
- PUSH = "push"
30
- STEAM = "steam"
31
- MQTT = "mqtt"
32
- SQLSERVER = "sqlserver"
33
- JSON_QUERY = "json-query"
34
- GROUP = "group"
35
30
  DOCKER = "docker"
36
- GRPC_KEYWORD = "grpc-keyword"
31
+ SYSTEM_SERVICE = "system-service"
32
+ PM2 = "pm2"
37
33
  REAL_BROWSER = "real-browser"
38
- GAMEDIG = "gamedig"
34
+ # Special
35
+ GROUP = "group"
36
+ # Passive monitor type
37
+ PUSH = "push"
38
+ MANUAL = "manual"
39
+ # Specific monitor type
40
+ GLOBALPING = "globalping"
41
+ GRPC_KEYWORD = "grpc-keyword"
42
+ JSON_QUERY = "json-query"
39
43
  KAFKA_PRODUCER = "kafka-producer"
40
- POSTGRES = "postgres"
41
- MYSQL = "mysql"
42
- MONGODB = "mongodb"
43
- RADIUS = "radius"
44
- REDIS = "redis"
45
- TAILSCALE_PING = "tailscale-ping"
44
+ MQTT = "mqtt"
45
+ NTP = "ntp"
46
+ RABBIT_MQ = "rabbitmq"
47
+ SIP_OPTIONS = "sip-options"
46
48
  SMTP = "smtp"
47
49
  SNMP = "snmp"
48
- RABBIT_MQ = "rabbitmq"
49
- MANUAL = "manual"
50
- UNKNOWN = "unknown"
50
+ TAILSCALE_PING = "tailscale-ping"
51
51
  WEBSOCKET_UPGRADE = "websocket-upgrade"
52
- SYSTEM_SERVICE = "system-service"
53
- GLOBALPING = "globalping"
54
- SIP_OPTIONS = "sip-options"
52
+ # Database monitor type
53
+ SQLSERVER = "sqlserver"
54
+ MONGODB = "mongodb"
55
+ MYSQL = "mysql"
56
+ ORACLEDB = "oracledb"
57
+ POSTGRES = "postgres"
58
+ REDIS = "redis"
59
+ RADIUS = "radius"
60
+ # Game server
61
+ GAMEDIG = "gamedig"
62
+ STEAM = "steam"
63
+ # other
64
+ UNKNOWN = "unknown"
55
65
 
56
66
  @classmethod
57
67
  def _missing_(cls, _: object) -> Self:
File without changes
File without changes
File without changes