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.
- {formatize-1.0.0 → formatize-1.0.2}/PKG-INFO +6 -1
- {formatize-1.0.0 → formatize-1.0.2}/setup.cfg +7 -1
- formatize-1.0.2/src/formatize/__init__.py +3 -0
- {formatize-1.0.0 → formatize-1.0.2}/src/formatize/form.py +7 -0
- {formatize-1.0.0 → formatize-1.0.2}/src/formatize.egg-info/PKG-INFO +6 -1
- {formatize-1.0.0 → formatize-1.0.2}/src/formatize.egg-info/SOURCES.txt +1 -0
- formatize-1.0.2/src/formatize.egg-info/requires.txt +5 -0
- formatize-1.0.0/src/formatize/__init__.py +0 -3
- {formatize-1.0.0 → formatize-1.0.2}/LICENSE +0 -0
- {formatize-1.0.0 → formatize-1.0.2}/README.md +0 -0
- {formatize-1.0.0 → formatize-1.0.2}/pyproject.toml +0 -0
- {formatize-1.0.0 → formatize-1.0.2}/src/formatize.egg-info/dependency_links.txt +0 -0
- {formatize-1.0.0 → formatize-1.0.2}/src/formatize.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: formatize
|
|
3
|
-
Version: 1.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.
|
|
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
|
|
@@ -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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|