balatrobot 0.7.1__py3-none-any.whl → 0.7.3__py3-none-any.whl

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.
balatrobot/__init__.py CHANGED
@@ -5,7 +5,7 @@ from .enums import Actions, Decks, Stakes, State
5
5
  from .exceptions import BalatroError
6
6
  from .models import G
7
7
 
8
- __version__ = "0.7.1"
8
+ __version__ = "0.7.3"
9
9
  __all__ = [
10
10
  # Main client
11
11
  "BalatroClient",
balatrobot/client.py CHANGED
@@ -35,16 +35,18 @@ class BalatroClient:
35
35
  """
36
36
 
37
37
  host = "127.0.0.1"
38
- timeout = 60.0
38
+ timeout = 300.0
39
39
  buffer_size = 65536
40
40
 
41
- def __init__(self, port: int = 12346):
41
+ def __init__(self, port: int = 12346, timeout: float | None = None):
42
42
  """Initialize BalatroBot client
43
43
 
44
44
  Args:
45
45
  port: Port number to connect to (default: 12346)
46
+ timeout: Socket timeout in seconds (default: 300.0)
46
47
  """
47
48
  self.port = port
49
+ self.timeout = timeout if timeout is not None else self.timeout
48
50
  self._socket: socket.socket | None = None
49
51
  self._connected = False
50
52
  self._message_buffer = b"" # Buffer for incomplete messages
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: balatrobot
3
- Version: 0.7.1
3
+ Version: 0.7.3
4
4
  Summary: A framework for Balatro bot development
5
5
  Project-URL: Homepage, https://github.com/coder/balatrobot
6
6
  Project-URL: Issues, https://github.com/coder/balatrobot/issues
@@ -0,0 +1,10 @@
1
+ balatrobot/__init__.py,sha256=VUudB2uHb5OSd1vqnKW17Ir6iU0ecIWe20LtXHLQDqw,406
2
+ balatrobot/client.py,sha256=qx9EMkZEbZahd6wirontmxslmwejgdMTUW87GCzcYh8,17993
3
+ balatrobot/enums.py,sha256=UzlrljX1x_UlbuqR87c-KrCQjS74DGpG8A0zH0G-h98,22463
4
+ balatrobot/exceptions.py,sha256=fRupkYMw4PuMCJd8SFjfBDlla8wiKwhVzLj8AxmVL9I,4046
5
+ balatrobot/models.py,sha256=me9-qN1LQtnWfReC8tF8DFR38d5hBBSJD1SfUF3d2b4,14996
6
+ balatrobot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ balatrobot-0.7.3.dist-info/METADATA,sha256=k791DV7ZmTe_qpj5k62bSqLD2G7dfdLI4db3k8B1Uwg,2801
8
+ balatrobot-0.7.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ balatrobot-0.7.3.dist-info/licenses/LICENSE,sha256=71EXhU7CSe-Cihhj_VVxLtgVnSOaavHqVoixPKtE7Bk,1064
10
+ balatrobot-0.7.3.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- balatrobot/__init__.py,sha256=ZKgn08k8bQirWXVHXPtIgShhHuyElb4MtwPA3CciAKc,406
2
- balatrobot/client.py,sha256=TNl7KAELuyAmsCNuZ2dsQHY-1I2a6GJBPjjrgbDMZEU,17826
3
- balatrobot/enums.py,sha256=UzlrljX1x_UlbuqR87c-KrCQjS74DGpG8A0zH0G-h98,22463
4
- balatrobot/exceptions.py,sha256=fRupkYMw4PuMCJd8SFjfBDlla8wiKwhVzLj8AxmVL9I,4046
5
- balatrobot/models.py,sha256=me9-qN1LQtnWfReC8tF8DFR38d5hBBSJD1SfUF3d2b4,14996
6
- balatrobot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- balatrobot-0.7.1.dist-info/METADATA,sha256=ksAIvlIi60Hk5lpZFJXyukoGV9EwsS85W8PvMibdUys,2801
8
- balatrobot-0.7.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- balatrobot-0.7.1.dist-info/licenses/LICENSE,sha256=71EXhU7CSe-Cihhj_VVxLtgVnSOaavHqVoixPKtE7Bk,1064
10
- balatrobot-0.7.1.dist-info/RECORD,,