devalerts 0.1.0__tar.gz → 0.1.3__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.
- {devalerts-0.1.0 → devalerts-0.1.3}/PKG-INFO +4 -4
- {devalerts-0.1.0 → devalerts-0.1.3}/README.md +2 -2
- {devalerts-0.1.0 → devalerts-0.1.3}/pyproject.toml +2 -2
- {devalerts-0.1.0 → devalerts-0.1.3}/src/devalerts/cli.py +0 -7
- {devalerts-0.1.0 → devalerts-0.1.3}/src/devalerts/__init__.py +0 -0
- {devalerts-0.1.0 → devalerts-0.1.3}/src/devalerts/py.typed +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: devalerts
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: Send unhandled Python exceptions straight to a Telegram chat. No backend, no account, no database — just your own bot token.
|
|
5
5
|
Author: sslinNn
|
|
6
6
|
Author-email: sslinNn <morison1991@mail.ru>
|
|
7
7
|
Requires-Python: >=3.9
|
|
@@ -16,9 +16,9 @@ no account, no database — just your own bot token.
|
|
|
16
16
|
|
|
17
17
|
## Install
|
|
18
18
|
|
|
19
|
-
uv add
|
|
19
|
+
uv add devalerts
|
|
20
20
|
|
|
21
|
-
(or `pip install
|
|
21
|
+
(or `pip install devalerts` if you're not using uv)
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
@@ -7,9 +7,9 @@ no account, no database — just your own bot token.
|
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
|
-
uv add
|
|
10
|
+
uv add devalerts
|
|
11
11
|
|
|
12
|
-
(or `pip install
|
|
12
|
+
(or `pip install devalerts` if you're not using uv)
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "devalerts"
|
|
3
|
-
version = "0.1.
|
|
4
|
-
description = "
|
|
3
|
+
version = "0.1.3"
|
|
4
|
+
description = "Send unhandled Python exceptions straight to a Telegram chat. No backend, no account, no database — just your own bot token."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
7
7
|
{ name = "sslinNn", email = "morison1991@mail.ru" }
|
|
@@ -10,13 +10,6 @@ from datetime import datetime
|
|
|
10
10
|
|
|
11
11
|
from . import _DB_PATH, _DEFAULT_RATE_LIMIT_SECONDS
|
|
12
12
|
|
|
13
|
-
_LOCATION_WIDTH = 30
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def _truncate(text: str, width: int) -> str:
|
|
17
|
-
"""Keep the tail (file:line matters more than leading directories)."""
|
|
18
|
-
return text if len(text) <= width else "…" + text[-(width - 1):]
|
|
19
|
-
|
|
20
13
|
|
|
21
14
|
def _dashboard() -> int:
|
|
22
15
|
if not _DB_PATH.exists():
|
|
File without changes
|
|
File without changes
|