unique_toolkit 2026.22.0.dev9__py3-none-any.whl → 2026.22.0.dev10__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.
@@ -8,6 +8,7 @@ from pathlib import Path
8
8
  class FileMimeType(StrEnum):
9
9
  PDF = "application/pdf"
10
10
  DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
11
+ DOTX = "application/vnd.openxmlformats-officedocument.wordprocessingml.template"
11
12
  DOC = "application/msword"
12
13
  # TODO: clean up duplicates and make the monolith compatible with this.
13
14
  XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@@ -41,7 +42,7 @@ class FileMimeType(StrEnum):
41
42
  @property
42
43
  def is_docx(self) -> bool:
43
44
  cls = self.__class__
44
- return self in {cls.DOCX, cls.DOC}
45
+ return self in {cls.DOCX, cls.DOTX, cls.DOC}
45
46
 
46
47
  @property
47
48
  def is_pdf(self) -> bool:
@@ -98,7 +99,7 @@ class FileMimeType(StrEnum):
98
99
 
99
100
  def get_common_name(extension: FileMimeType) -> str:
100
101
  match extension:
101
- case FileMimeType.DOCX | FileMimeType.DOC:
102
+ case FileMimeType.DOCX | FileMimeType.DOTX | FileMimeType.DOC:
102
103
  return "docx"
103
104
  case (
104
105
  FileMimeType.XLSX
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: unique-toolkit
3
- Version: 2026.22.0.dev9
3
+ Version: 2026.22.0.dev10
4
4
  Summary:
5
5
  Author: Cedric Klinkert, Martin Fadler, Sadique Sheik, Fabian Schläpfer, Pascal Hauri, Ejiroghene Oki-Peter, Rami Azouz, Ricardo Visini, Sanzio Monti
6
6
  Author-email: Cedric Klinkert <cedric.klinkert@unique.ch>, Martin Fadler <martin.fadler@unique.ch>, Sadique Sheik <sadique@unique.ch>, Fabian Schläpfer <fabian@unique.ch>, Pascal Hauri <pascal@unique.ch>, Ejiroghene Oki-Peter <oki-peter.ejiroghene@unique.ai>, Rami Azouz <rami.ext@unique.ch>, Ricardo Visini <ricardo.visini@unique.ch>, Sanzio Monti <sanzio.monti@unique.ai>
@@ -71,7 +71,7 @@ unique_toolkit/_common/token/token_counting.py,sha256=OQw_PdwNd1OwqJZ85j3Y9ELr3n
71
71
  unique_toolkit/_common/token/tokenizers/deepseek/tokenizer.json,sha256=YhrC4y0NumWEBEEjGIGKqozozaSS5ZgwEJ2NprUX-0E,7847652
72
72
  unique_toolkit/_common/token/tokenizers/qwen/tokenizer.json,sha256=wDghF-oynN8JcEETL21zWSS2l5JNb2_DlFcT6WzodTk,7031645
73
73
  unique_toolkit/_common/utils/__init__.py,sha256=qHrEy-3zkbFPdGFriRscPbGKuQfOuPi3O7tE5Zw5VHY,37
74
- unique_toolkit/_common/utils/files.py,sha256=TuEgRgGxg3XP7kZ5NyvyHc7kS6dpjeosgfdHuxapFn4,4813
74
+ unique_toolkit/_common/utils/files.py,sha256=8gK4bIfRJnzBLsGOVqB3xXnKH9QKJE2onAkObs7bnVw,4928
75
75
  unique_toolkit/_common/utils/image/encode.py,sha256=IJhtTcIT_azhiDsPp15oYs2LPze2l-sGlZrJASHrDVI,658
76
76
  unique_toolkit/_common/utils/jinja/helpers.py,sha256=UQWj0hFMtnuUFYDJ8NKbEblvYE8DrWX1o7fKQU3H9IQ,262
77
77
  unique_toolkit/_common/utils/jinja/render.py,sha256=J5UBIWoljl-Us7SjZIap9wewcLTzpXjQpOgas_YTf3Y,482
@@ -391,6 +391,6 @@ unique_toolkit/short_term_memory/service.py,sha256=Ncw0_0CNM6kmzJSLVJGG5GcKpBduI
391
391
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
392
392
  unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
393
393
  unique_toolkit/test_utilities/events.py,sha256=FLrhMh0A_mQutAUjoD0FdMcVQ4Gq31r35OVGzRjvLro,6760
394
- unique_toolkit-2026.22.0.dev9.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
395
- unique_toolkit-2026.22.0.dev9.dist-info/METADATA,sha256=ShiSlMfxe7Ibor4WRI3ntzKdKhbF3gPbIoAQN7pMrhI,7392
396
- unique_toolkit-2026.22.0.dev9.dist-info/RECORD,,
394
+ unique_toolkit-2026.22.0.dev10.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
395
+ unique_toolkit-2026.22.0.dev10.dist-info/METADATA,sha256=-KSmz24EthKwajFWdZZkfC681UMqZIrFRbx3lmOnU-8,7393
396
+ unique_toolkit-2026.22.0.dev10.dist-info/RECORD,,