pythonkuma 0.5.0__tar.gz → 0.5.1__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.1
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",
45
+ "ruff==0.15.12",
46
+ "aiohttp==3.13.5",
47
+ "prometheus-client==0.25.0",
48
48
  "mashumaro==3.20",
49
- "mkdocs-material==9.7.2",
50
- "mkdocstrings[python]==1.0.3",
49
+ "mkdocs-material==9.7.6",
50
+ "mkdocstrings[python]==1.0.4",
51
51
  "pytest-asyncio==1.3.0",
52
- "pytest==9.0.2",
53
- "pytest-cov==7.0.0",
52
+ "pytest==9.0.3",
53
+ "pytest-cov==7.1.0",
54
54
  "syrupy==5.1.0",
55
55
  ]
56
56
 
57
57
  [tool.hatch.envs.hatch-static-analysis]
58
58
  dependencies = [
59
- "ruff==0.15.1",
59
+ "ruff==0.15.12",
60
60
  ]
61
61
  config-path = "none"
62
62
 
@@ -69,7 +69,7 @@ pythonpath = ["pythonkuma"]
69
69
 
70
70
  [tool.hatch.envs.hatch-test]
71
71
  extra-dependencies = [
72
- "pytest-cov==7.0.0",
72
+ "pytest-cov==7.1.0",
73
73
  "pytest-asyncio==1.3.0",
74
74
  "syrupy==5.1.0",
75
75
  ]
@@ -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.1"
15
15
 
16
16
  __all__ = [
17
17
  "MonitorStatus",
@@ -21,37 +21,45 @@ 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"
37
32
  REAL_BROWSER = "real-browser"
38
- GAMEDIG = "gamedig"
33
+ # Special
34
+ GROUP = "group"
35
+ # Passive monitor type
36
+ PUSH = "push"
37
+ MANUAL = "manual"
38
+ # Specific monitor type
39
+ GLOBALPING = "globalping"
40
+ GRPC_KEYWORD = "grpc-keyword"
41
+ JSON_QUERY = "json-query"
39
42
  KAFKA_PRODUCER = "kafka-producer"
40
- POSTGRES = "postgres"
41
- MYSQL = "mysql"
42
- MONGODB = "mongodb"
43
- RADIUS = "radius"
44
- REDIS = "redis"
45
- TAILSCALE_PING = "tailscale-ping"
43
+ MQTT = "mqtt"
44
+ RABBIT_MQ = "rabbitmq"
45
+ SIP_OPTIONS = "sip-options"
46
46
  SMTP = "smtp"
47
47
  SNMP = "snmp"
48
- RABBIT_MQ = "rabbitmq"
49
- MANUAL = "manual"
50
- UNKNOWN = "unknown"
48
+ TAILSCALE_PING = "tailscale-ping"
51
49
  WEBSOCKET_UPGRADE = "websocket-upgrade"
52
- SYSTEM_SERVICE = "system-service"
53
- GLOBALPING = "globalping"
54
- SIP_OPTIONS = "sip-options"
50
+ # Database monitor type
51
+ SQLSERVER = "sqlserver"
52
+ MONGODB = "mongodb"
53
+ MYSQL = "mysql"
54
+ ORACLEDB = "oracledb"
55
+ POSTGRES = "postgres"
56
+ REDIS = "redis"
57
+ RADIUS = "radius"
58
+ # Game server
59
+ GAMEDIG = "gamedig"
60
+ STEAM = "steam"
61
+ # other
62
+ UNKNOWN = "unknown"
55
63
 
56
64
  @classmethod
57
65
  def _missing_(cls, _: object) -> Self:
File without changes
File without changes
File without changes