python-twitchchat 1.0.0__tar.gz → 1.1.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2015-2026 Samantha Hughes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,19 +1,22 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: python-twitchchat
3
- Version: 1.0.0
3
+ Version: 1.1.0
4
4
  Summary: Asyncio client for Twitch chat (IRC): typed events, callbacks and async iteration.
5
5
  Project-URL: Homepage, https://github.com/shughes-uk/python-twitchchat
6
6
  Author: shughes-uk
7
+ License-Expression: MIT
8
+ License-File: LICENSE
7
9
  Keywords: asyncio,chat,irc,twitch
8
10
  Classifier: Development Status :: 4 - Beta
9
11
  Classifier: Framework :: AsyncIO
10
12
  Classifier: Intended Audience :: Developers
11
13
  Classifier: Programming Language :: Python :: 3
12
14
  Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.14
13
16
  Classifier: Programming Language :: Python :: 3.15
14
17
  Classifier: Topic :: Communications :: Chat :: Internet Relay Chat
15
18
  Classifier: Typing :: Typed
16
- Requires-Python: >=3.15
19
+ Requires-Python: >=3.14
17
20
  Description-Content-Type: text/markdown
18
21
 
19
22
  # python-twitchchat
@@ -23,7 +26,7 @@ It has no runtime dependencies and gives you typed events, an async iterator,
23
26
  callback registration, rate-limited sending, automatic PING/PONG and automatic
24
27
  reconnects.
25
28
 
26
- - **Requirements:** Python 3.15 or newer, standard library only.
29
+ - **Requirements:** Python 3.14 or newer, standard library only.
27
30
  - **Install:** `pip install python-twitchchat` or `uv add python-twitchchat`. The import name is `twitchchat`.
28
31
  - Connects to `irc.chat.twitch.tv:6697` over TLS.
29
32
 
@@ -168,8 +171,8 @@ uv run examples/watch_chat.py --seconds 60 somebigchannel anotherone
168
171
 
169
172
  ## Development
170
173
 
171
- The project uses [uv](https://docs.astral.sh/uv/). `.python-version` pins
172
- Python 3.15, which uv downloads automatically.
174
+ The project uses [uv](https://docs.astral.sh/uv/). It supports Python 3.14 and 3.15;
175
+ `.python-version` pins 3.15 for development, which uv downloads automatically.
173
176
 
174
177
  ```sh
175
178
  uv sync # create .venv with dev tools (ruff, ty, pytest, pytest-asyncio)
@@ -213,3 +216,7 @@ number to edit by hand.
213
216
 
214
217
  Note that the distribution name is **`python-twitchchat`**, because `twitchchat`
215
218
  is already taken on PyPI by an unrelated project.
219
+
220
+ ## License
221
+
222
+ MIT, see [LICENSE](LICENSE).
@@ -5,7 +5,7 @@ It has no runtime dependencies and gives you typed events, an async iterator,
5
5
  callback registration, rate-limited sending, automatic PING/PONG and automatic
6
6
  reconnects.
7
7
 
8
- - **Requirements:** Python 3.15 or newer, standard library only.
8
+ - **Requirements:** Python 3.14 or newer, standard library only.
9
9
  - **Install:** `pip install python-twitchchat` or `uv add python-twitchchat`. The import name is `twitchchat`.
10
10
  - Connects to `irc.chat.twitch.tv:6697` over TLS.
11
11
 
@@ -150,8 +150,8 @@ uv run examples/watch_chat.py --seconds 60 somebigchannel anotherone
150
150
 
151
151
  ## Development
152
152
 
153
- The project uses [uv](https://docs.astral.sh/uv/). `.python-version` pins
154
- Python 3.15, which uv downloads automatically.
153
+ The project uses [uv](https://docs.astral.sh/uv/). It supports Python 3.14 and 3.15;
154
+ `.python-version` pins 3.15 for development, which uv downloads automatically.
155
155
 
156
156
  ```sh
157
157
  uv sync # create .venv with dev tools (ruff, ty, pytest, pytest-asyncio)
@@ -195,3 +195,7 @@ number to edit by hand.
195
195
 
196
196
  Note that the distribution name is **`python-twitchchat`**, because `twitchchat`
197
197
  is already taken on PyPI by an unrelated project.
198
+
199
+ ## License
200
+
201
+ MIT, see [LICENSE](LICENSE).
@@ -4,7 +4,9 @@ dynamic = ["version"]
4
4
  description = "Asyncio client for Twitch chat (IRC): typed events, callbacks and async iteration."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "shughes-uk" }]
7
- requires-python = ">=3.15"
7
+ requires-python = ">=3.14"
8
+ license = "MIT"
9
+ license-files = ["LICENSE"]
8
10
  dependencies = []
9
11
  keywords = ["twitch", "irc", "chat", "asyncio"]
10
12
  classifiers = [
@@ -13,6 +15,7 @@ classifiers = [
13
15
  "Intended Audience :: Developers",
14
16
  "Programming Language :: Python :: 3",
15
17
  "Programming Language :: Python :: 3 :: Only",
18
+ "Programming Language :: Python :: 3.14",
16
19
  "Programming Language :: Python :: 3.15",
17
20
  "Topic :: Communications :: Chat :: Internet Relay Chat",
18
21
  "Typing :: Typed",
@@ -54,7 +57,7 @@ filterwarnings = ["error"]
54
57
 
55
58
  [tool.ruff]
56
59
  line-length = 100
57
- target-version = "py315"
60
+ target-version = "py314"
58
61
  src = ["src", "tests", "examples"]
59
62
 
60
63
  [tool.ruff.lint]
@@ -80,7 +83,7 @@ convention = "google"
80
83
  docstring-code-format = true
81
84
 
82
85
  [tool.ty.environment]
83
- python-version = "3.15"
86
+ python-version = "3.14"
84
87
 
85
88
  [tool.ty.src]
86
89
  include = ["src", "tests", "examples"]
@@ -8,12 +8,14 @@ import secrets
8
8
  import weakref
9
9
  from collections import deque
10
10
  from collections.abc import AsyncIterator, Awaitable, Callable, Iterable
11
- from typing import Protocol, Self, overload
12
- lazy import ssl
11
+ from typing import TYPE_CHECKING, Protocol, Self, overload
13
12
 
14
13
  from .events import ChatMessage, Connected, Event, Notice, Reconnect, event_from_irc
15
14
  from .irc import format_line, parse_line
16
15
 
16
+ if TYPE_CHECKING:
17
+ import ssl
18
+
17
19
  __all__ = [
18
20
  "DEFAULT_HOST",
19
21
  "DEFAULT_PORT",
@@ -2,8 +2,10 @@
2
2
 
3
3
  from dataclasses import dataclass, field
4
4
  from datetime import UTC, datetime
5
+ from typing import TYPE_CHECKING
5
6
 
6
- lazy from .irc import IrcMessage
7
+ if TYPE_CHECKING:
8
+ from .irc import IrcMessage
7
9
 
8
10
  __all__ = [
9
11
  "ChatMessage",
@@ -3,7 +3,7 @@
3
3
  import asyncio
4
4
  import gc
5
5
  import logging
6
- lazy from collections.abc import AsyncIterator
6
+ from typing import TYPE_CHECKING
7
7
 
8
8
  import pytest
9
9
 
@@ -20,6 +20,9 @@ from twitchchat import (
20
20
  UserNotice,
21
21
  )
22
22
 
23
+ if TYPE_CHECKING:
24
+ from collections.abc import AsyncIterator
25
+
23
26
  PRIVMSG = (
24
27
  "@badges=subscriber/1;display-name=Foo;id=m1;tmi-sent-ts=1700000000000"
25
28
  " :foo!foo@foo.tmi.twitch.tv PRIVMSG #{chan} :{text}"