repeaterbook 0.1.0__py3-none-any.whl → 0.1.1__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.
repeaterbook/models.py CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  from __future__ import annotations
5
5
 
6
- __all__: list[str] = [
6
+ __all__: tuple[str, ...] = (
7
7
  "Emergency",
8
8
  "EmergencyJSON",
9
9
  "ErrorJSON",
@@ -25,7 +25,7 @@ __all__: list[str] = [
25
25
  "UseJSON",
26
26
  "YesNoJSON",
27
27
  "ZeroOneJSON",
28
- ]
28
+ )
29
29
 
30
30
  from datetime import date
31
31
  from decimal import Decimal
repeaterbook/services.py CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- __all__: list[str] = [
5
+ __all__: tuple[str, ...] = (
6
6
  "BOOL_MAP",
7
7
  "STATUS_MAP",
8
8
  "USE_MAP",
9
9
  "RepeaterBook",
10
10
  "fetch_json",
11
11
  "json_to_model",
12
- ]
12
+ )
13
13
 
14
14
  import asyncio
15
15
  import hashlib
@@ -185,7 +185,7 @@ class RepeaterBook:
185
185
  app_name: str = "RepeaterBook Python SDK"
186
186
  app_email: str = "micael@jarniac.dev"
187
187
 
188
- working_dir: Path = attrs.Factory(lambda: Path())
188
+ working_dir: Path = attrs.Factory(Path)
189
189
  database: str = "repeaterbook.db"
190
190
 
191
191
  MAX_COUNT: ClassVar[int] = 3500
@@ -340,7 +340,7 @@ class RepeaterBook:
340
340
  with Session(self.engine) as session:
341
341
  for result in results:
342
342
  repeater = json_to_model(result)
343
- session.add(repeater)
343
+ session.merge(repeater)
344
344
  repeaters.append(repeater)
345
345
  session.commit()
346
346
 
repeaterbook/utils.py CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- __all__: list[str] = [
5
+ __all__: tuple[str, ...] = (
6
6
  "LatLon",
7
7
  "SquareBounds",
8
8
  "square_bounds",
9
- ]
9
+ )
10
10
 
11
11
  from typing import NamedTuple
12
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: repeaterbook
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python utility to work with data from RepeaterBook.
5
5
  Project-URL: homepage, https://github.com/MicaelJarniac/repeaterbook
6
6
  Project-URL: source, https://github.com/MicaelJarniac/repeaterbook
@@ -0,0 +1,9 @@
1
+ repeaterbook/__init__.py,sha256=S_Y8t081UnaTlJu4bqSLPb-Zpo4NpwfSOlftqlrR6Bg,58
2
+ repeaterbook/models.py,sha256=j0gQ6eTUN0tCJ2xsb0JefwEeYUC2_eycdAVh_bwLHno,6122
3
+ repeaterbook/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ repeaterbook/services.py,sha256=hAjvZiKI3cl2sb7VIm-VtwWAZWVEA1kkfUQOdxbp1t0,12993
5
+ repeaterbook/utils.py,sha256=myQ8Sz2T6kN8_tVN6Co29R8UYaYm0q9kquPjmNHGeTg,1233
6
+ repeaterbook-0.1.1.dist-info/METADATA,sha256=t-pITQehqhDXL7C6n1oPE6ZXcbrDlC7Npq0HUSad9FY,7824
7
+ repeaterbook-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ repeaterbook-0.1.1.dist-info/licenses/LICENSE,sha256=TtbMt69RbQyifR_It2bTHKdlLR1Dj6x2A5y_oLOyoVk,1071
9
+ repeaterbook-0.1.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- repeaterbook/__init__.py,sha256=S_Y8t081UnaTlJu4bqSLPb-Zpo4NpwfSOlftqlrR6Bg,58
2
- repeaterbook/models.py,sha256=XZhpAyWuIIrYLy4i8DEp5R_KTwoGqtUiCVkH3A6L5eY,6116
3
- repeaterbook/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- repeaterbook/services.py,sha256=Oam2rxTAg8Te_FLy7u0FugiYmQZhrbGLnLQAXfmU6xQ,12995
5
- repeaterbook/utils.py,sha256=6I0NQdxPdNlBP_AKYidhRbM1XOZOHdPJpN8gQ-jNd2I,1227
6
- repeaterbook-0.1.0.dist-info/METADATA,sha256=vXldXpUbTdCsqZboeyQku3yS3LVpyHrz6Q0GaLUuuP8,7824
7
- repeaterbook-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- repeaterbook-0.1.0.dist-info/licenses/LICENSE,sha256=TtbMt69RbQyifR_It2bTHKdlLR1Dj6x2A5y_oLOyoVk,1071
9
- repeaterbook-0.1.0.dist-info/RECORD,,