formatize 1.0.0__tar.gz → 1.0.2__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.4
2
2
  Name: formatize
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Literp Formatting Lib
5
5
  Home-page: https://github.com/asinerum/formatize
6
6
  Author: Asinerum Conlang Project
@@ -12,6 +12,11 @@ Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.7
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
+ Requires-Dist: bs4>=0.0.2
16
+ Requires-Dist: dnspython>=2.8.0
17
+ Requires-Dist: pillow>=12.0.0
18
+ Requires-Dist: pydantic>=2.12.5
19
+ Requires-Dist: pyyaml>=6.0.3
15
20
  Dynamic: license-file
16
21
 
17
22
  Detailed tips, tricks, and examples, can be found at project's repository
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = formatize
3
- version = 1.0.0
3
+ version = 1.0.2
4
4
  author = Asinerum Conlang Project
5
5
  author_email = asinerum.com@gmail.com
6
6
  description = Literp Formatting Lib
@@ -18,6 +18,12 @@ package_dir =
18
18
  = src
19
19
  packages = find:
20
20
  python_requires = >=3.7
21
+ install_requires =
22
+ bs4 >= 0.0.2
23
+ dnspython >= 2.8.0
24
+ pillow >= 12.0.0
25
+ pydantic >= 2.12.5
26
+ pyyaml >= 6.0.3
21
27
 
22
28
  [options.packages.find]
23
29
  where = src
@@ -0,0 +1,3 @@
1
+ from .form import *
2
+
3
+ __version__ = "1.0.2"
@@ -337,6 +337,13 @@ def parse_doc_date(time: any=None) -> str:
337
337
  if not (time:=parse_time(time)): return None ## For DATE()
338
338
  return time[:10]
339
339
 
340
+ def parse_date (datestr: str, dateform: str='%d/%m/%Y') -> str:
341
+ try:
342
+ date = datetime.datetime.strptime(datestr, dateform)
343
+ except:
344
+ date = datetime.datetime.now()
345
+ return date.strftime('%Y-%m-%d')
346
+
340
347
  def parse_time(time: any=None) -> str:
341
348
  if not time:
342
349
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: formatize
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Literp Formatting Lib
5
5
  Home-page: https://github.com/asinerum/formatize
6
6
  Author: Asinerum Conlang Project
@@ -12,6 +12,11 @@ Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.7
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
+ Requires-Dist: bs4>=0.0.2
16
+ Requires-Dist: dnspython>=2.8.0
17
+ Requires-Dist: pillow>=12.0.0
18
+ Requires-Dist: pydantic>=2.12.5
19
+ Requires-Dist: pyyaml>=6.0.3
15
20
  Dynamic: license-file
16
21
 
17
22
  Detailed tips, tricks, and examples, can be found at project's repository
@@ -7,4 +7,5 @@ src/formatize/form.py
7
7
  src/formatize.egg-info/PKG-INFO
8
8
  src/formatize.egg-info/SOURCES.txt
9
9
  src/formatize.egg-info/dependency_links.txt
10
+ src/formatize.egg-info/requires.txt
10
11
  src/formatize.egg-info/top_level.txt
@@ -0,0 +1,5 @@
1
+ bs4>=0.0.2
2
+ dnspython>=2.8.0
3
+ pillow>=12.0.0
4
+ pydantic>=2.12.5
5
+ pyyaml>=6.0.3
@@ -1,3 +0,0 @@
1
- from .form import *
2
-
3
- __version__ = "1.0.0"
File without changes
File without changes
File without changes