datashare-python 0.7.1__py3-none-any.whl → 0.7.2__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.
@@ -1,9 +1,9 @@
1
1
  from pathlib import Path
2
- from typing import Annotated, Literal
2
+ from typing import Literal
3
3
 
4
4
  from icij_common.es import ESClient
5
5
  from icij_common.pydantic_utils import ICIJSettings
6
- from pydantic import Field, PrivateAttr
6
+ from pydantic import PrivateAttr
7
7
  from pydantic_settings import SettingsConfigDict
8
8
  from temporalio.contrib.pydantic import PydanticJSONPlainPayloadConverter, ToJsonOptions
9
9
  from temporalio.converter import (
@@ -83,12 +83,14 @@ class LoggingConfig(BaseModel):
83
83
  loggers: dict[str, LogLevel]
84
84
 
85
85
 
86
+ _DEFAULT_LOGGERS = {datashare_python.__name__: "INFO"}
87
+ _DEFAULT_LOGGING_CONFIG = LoggingConfig(log_in_json=True, loggers=_DEFAULT_LOGGERS)
88
+
89
+
86
90
  class WorkerConfig(ICIJSettings, BaseModel):
87
91
  model_config = DS_WORKER_SETTINGS_CONFIG
88
92
 
89
- logging: Annotated[LoggingConfig, Field(frozen=True)] = {
90
- datashare_python.__name__: "INFO"
91
- }
93
+ logging: LoggingConfig = _DEFAULT_LOGGING_CONFIG
92
94
 
93
95
  datashare: DatashareClientConfig = DatashareClientConfig()
94
96
  elasticsearch: ESClientConfig = ESClientConfig()
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datashare-python
3
- Version: 0.7.1
3
+ Version: 0.7.2
4
4
  Summary: Manage Pythoœn tasks and local resources in Datashare
5
5
  Project-URL: Homepage, https://icij.github.io/datashare-python/
6
6
  Project-URL: Documentation, https://icij.github.io/datashare-python/
@@ -1,7 +1,7 @@
1
1
  datashare_python/.gitignore,sha256=e-SRgnvGGdsjRrqgKsTzALz6Obx8IYiOjr0yaAxT6v8,22
2
2
  datashare_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  datashare_python/__main__.py,sha256=g-fvS46zl9umKmGrSpl-OG-8PSuZgjqvTCqjpsZtSps,101
4
- datashare_python/config.py,sha256=Q4iu3ZGaQB7npaHJWclxPIfgzZTf_-8VxxhXrB9nlpE,3928
4
+ datashare_python/config.py,sha256=_Cx4EB1yHXXcLUtw1OBlMk2SKcJRwxqJwgRu6klbxNg,3994
5
5
  datashare_python/conftest.py,sha256=MrmQKFcUipm_qn-cHsLovZMwMMtVxyK0s1lmKEx54bc,8651
6
6
  datashare_python/constants.py,sha256=a8-ceZKBVMXydcoNQ35fSjFjxeJ7dt-N6eAvqtPpf9g,320
7
7
  datashare_python/dependencies.py,sha256=KJuAp6Dmv8DQuFnGjbWiHu7StzZj97eBPDyZ_RfCQRc,4141
@@ -14,14 +14,14 @@ datashare_python/task_client.py,sha256=oTmP8bvZW0UyhLNMi1AV3XIAx7hrdbxNRss2Mw2az
14
14
  datashare_python/template.py,sha256=RxKTYLXoS_EQ8Jc41JkBXppPdbCFqDWfP3BmC0gvB5o,4024
15
15
  datashare_python/types_.py,sha256=9Hk1XqpdXbM1TnEzwvJ5G9ABbaCZW9KgBTtiPBVn_7k,649
16
16
  datashare_python/utils.py,sha256=inVjtlBbgL88mN0UM73SSzW76koTW5MGC0NlyopqRW4,17412
17
- datashare_python/worker-template.tar.gz,sha256=gNSDvn4Lh8iFpFk6j8nlu7pJoIDLh7SVa6EHcjXrj54,286805
17
+ datashare_python/worker-template.tar.gz,sha256=4AmwMeltOcUWe2bv4tslriE-q8T3CV2fOs_1o96YUNM,286533
18
18
  datashare_python/worker.py,sha256=1FdmwYKWKYUKteTM3RC6kFQHR02q8NUDe91hv68QPEo,7207
19
19
  datashare_python/cli/__init__.py,sha256=9BPWtssDgsVfWMsZ1TtZCla0EC_kai4RHttr8oNLYOE,1401
20
20
  datashare_python/cli/project.py,sha256=w32Gy9AOL5B00uDT4in7YUCt2g68FnNbvwg2M3a8G6o,946
21
21
  datashare_python/cli/task.py,sha256=8mvKGS21bZ14BgZ0Uo-dfameljkaI2ZBha80ywCy-E8,5822
22
22
  datashare_python/cli/utils.py,sha256=p69CQb0zfixuyBkiZprhdMCc_NuYwXyAn6vC9H1UzAw,911
23
23
  datashare_python/cli/worker.py,sha256=I4KTpFIpXFowioFn72Rm6LBCYlY-Dhp4NBIPvtRgUXE,5283
24
- datashare_python-0.7.1.dist-info/METADATA,sha256=FF5E62UhxGi0zBseyb4b_6TQRl2JtDZlA1wLECoTblg,923
25
- datashare_python-0.7.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
26
- datashare_python-0.7.1.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
- datashare_python-0.7.1.dist-info/RECORD,,
24
+ datashare_python-0.7.2.dist-info/METADATA,sha256=we0tcO0B0fM92BDbLZT0xrV1sRlmN7gElv0i6dTfZmo,923
25
+ datashare_python-0.7.2.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
26
+ datashare_python-0.7.2.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
+ datashare_python-0.7.2.dist-info/RECORD,,