mmar-mapi 1.0.12__tar.gz → 1.0.14__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.

Potentially problematic release.


This version of mmar-mapi might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mmar-mapi
3
- Version: 1.0.12
3
+ Version: 1.0.14
4
4
  Summary: Common pure/IO utilities for multi-modal architectures team
5
5
  Keywords:
6
6
  Author: Eugene Tagin
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "mmar-mapi"
3
3
  # dynamic version is not supported yet on uv_build
4
- version = "1.0.12"
4
+ version = "1.0.14"
5
5
  description = "Common pure/IO utilities for multi-modal architectures team"
6
6
  authors = [{name = "Eugene Tagin", email = "tagin@airi.net"}]
7
7
  license = "MIT"
@@ -6,7 +6,7 @@ from pathlib import Path
6
6
  from zipfile import ZipFile, is_zipfile
7
7
 
8
8
  ResourceId = str
9
- ASCII_DIGITS = set(string.ascii_lowercase + string.digits)
9
+ ASCII_DIGITS = set(string.ascii_lowercase + string.digits + '-')
10
10
  SUFFIX_DIR = ".dir"
11
11
  SUFFIX_METADATA = ".metadata"
12
12
 
@@ -3,8 +3,10 @@ from collections.abc import Iterable
3
3
  from datetime import datetime
4
4
 
5
5
 
6
- def make_session_id() -> str:
7
- return f"{datetime.now():%Y-%m-%d--%H-%M-%S}"
6
+ def make_session_id(with_millis=False) -> str:
7
+ dt = datetime.now()
8
+ fmt = "%Y-%m-%d--%H-%M-%S-%f" if with_millis else "%Y-%m-%d--%H-%M-%S"
9
+ return datetime.now().strftime(fmt)
8
10
 
9
11
 
10
12
  def chunked(items: Iterable, n) -> list:
File without changes
File without changes