mango-lib 0.2.0__tar.gz → 0.3.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mango-lib
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Library of utility functions used across ManGO Portal, ManGO Flow and ManGO Ingest amongst others
5
5
  Author: Paul Borgermans, Mariana Montes
6
6
  Author-email: Paul Borgermans <paul.borgermans@kuleuven.be>, Mariana Montes <mariana.montes@kuleuven.be>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mango-lib"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = "Library of utility functions used across ManGO Portal, ManGO Flow and ManGO Ingest amongst others"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -1,7 +1,7 @@
1
1
 
2
2
  [project]
3
3
  name = "mango-lib"
4
- version = "0.2.0"
4
+ version = "0.3.0"
5
5
  description = "Library of utility functions used across ManGO Portal, ManGO Flow and ManGO Ingest amongst others"
6
6
  readme = "README.md"
7
7
  authors = [
@@ -226,7 +226,7 @@ def convert_timestamp_datetime(ts: int | float) -> datetime.datetime:
226
226
 
227
227
 
228
228
  @MangoJinjaExtension.template_filter()
229
- def format_timestamp(ts: int | float, format: str = "%Y-%m-%d %H:%M:%S") -> str:
229
+ def format_timestamp_from_float(ts: float, format: str = "%Y-%m-%d %H:%M:%S") -> str:
230
230
  if format.lower() == "iso":
231
231
  return datetime.datetime.fromtimestamp(ts).isoformat()
232
232
  elif format.lower() == "iso-seconds":
File without changes