documente_shared 0.1.59__tar.gz → 0.1.61__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 documente_shared might be problematic. Click here for more details.
- {documente_shared-0.1.59 → documente_shared-0.1.61}/PKG-INFO +1 -1
- documente_shared-0.1.61/documente_shared/application/time_utils.py +13 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/pyproject.toml +1 -1
- documente_shared-0.1.59/documente_shared/application/time_utils.py +0 -10
- {documente_shared-0.1.59 → documente_shared-0.1.61}/README.md +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/application/timezone.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/constants.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/entities/document.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/entities/document_metadata.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/enums.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/repositories.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/dynamo_repositories.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/sqs_queue.py +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
from typing import Union, Optional
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def get_datetime_from_data(input_datetime: Union[datetime, str]) -> Optional[datetime]:
|
|
6
|
+
if isinstance(input_datetime, datetime):
|
|
7
|
+
return input_datetime
|
|
8
|
+
elif isinstance(input_datetime, str) and bool(input_datetime):
|
|
9
|
+
try:
|
|
10
|
+
return datetime.fromisoformat(input_datetime)
|
|
11
|
+
except ValueError:
|
|
12
|
+
return None
|
|
13
|
+
return None
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
from datetime import datetime
|
|
2
|
-
from typing import Union
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def get_datetime_from_data(input_datetime: Union[datetime, str]):
|
|
6
|
-
if isinstance(input_datetime, datetime):
|
|
7
|
-
return input_datetime
|
|
8
|
-
elif isinstance(input_datetime, str):
|
|
9
|
-
return datetime.fromisoformat(input_datetime)
|
|
10
|
-
return None
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/application/timezone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/domain/entities/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/dynamo_table.py
RENAMED
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
{documente_shared-0.1.59 → documente_shared-0.1.61}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|