hopeit.dataframes 0.26.3__tar.gz → 0.26.4__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.
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/PKG-INFO +3 -3
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/pyproject.toml +3 -3
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/__init__.py +9 -2
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/datablocks.py +5 -1
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/dataframe.py +7 -2
- hopeit_dataframes-0.26.4/src/hopeit/dataframes/pandas/numpy_mock.py +3 -0
- hopeit_dataframes-0.26.4/src/hopeit/dataframes/pandas/pandas_mock.py +13 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/serialization/dataset.py +6 -1
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/serialization/files.py +3 -4
- hopeit_dataframes-0.26.4/src/hopeit/dataframes/setup/__init__.py +0 -0
- hopeit_dataframes-0.26.4/src/hopeit/dataframes/setup/py.typed +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit.dataframes.egg-info/PKG-INFO +3 -3
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit.dataframes.egg-info/SOURCES.txt +4 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit.dataframes.egg-info/requires.txt +2 -2
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/README.md +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/setup.cfg +0 -0
- {hopeit_dataframes-0.26.3/src/hopeit/dataframes/serialization → hopeit_dataframes-0.26.4/src/hopeit/dataframes/pandas}/__init__.py +0 -0
- {hopeit_dataframes-0.26.3/src/hopeit/dataframes → hopeit_dataframes-0.26.4/src/hopeit/dataframes/pandas}/py.typed +0 -0
- {hopeit_dataframes-0.26.3/src/hopeit/dataframes/serialization → hopeit_dataframes-0.26.4/src/hopeit/dataframes}/py.typed +0 -0
- {hopeit_dataframes-0.26.3/src/hopeit/dataframes/setup → hopeit_dataframes-0.26.4/src/hopeit/dataframes/serialization}/__init__.py +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/serialization/protocol.py +0 -0
- {hopeit_dataframes-0.26.3/src/hopeit/dataframes/setup → hopeit_dataframes-0.26.4/src/hopeit/dataframes/serialization}/py.typed +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/serialization/settings.py +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/setup/dataframes.py +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/setup/register_database.py +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/setup/registry.py +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit.dataframes.egg-info/dependency_links.txt +0 -0
- {hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit.dataframes.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hopeit.dataframes
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.4
|
|
4
4
|
Summary: Hopeit Engine Dataframes for Pandas
|
|
5
5
|
Author-email: Leo Smerling & Pablo Canto <contact@hopeit.com.ar>, Leo Smerling <contact@hopeit.com.ar>, Pablo Canto <contact@hopeit.com.ar>
|
|
6
6
|
License: Apache 2
|
|
@@ -24,8 +24,8 @@ Classifier: Topic :: Internet :: WWW/HTTP
|
|
|
24
24
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
25
|
Classifier: Framework :: AsyncIO
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
|
-
Requires-Dist: hopeit.engine>=0.26.
|
|
28
|
-
Requires-Dist: hopeit.fs-storage>=0.26.
|
|
27
|
+
Requires-Dist: hopeit.engine>=0.26.4
|
|
28
|
+
Requires-Dist: hopeit.fs-storage>=0.26.4
|
|
29
29
|
Provides-Extra: pandas
|
|
30
30
|
Requires-Dist: pandas>=2.2.3; extra == "pandas"
|
|
31
31
|
Requires-Dist: pyarrow>=19.0.1; extra == "pandas"
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hopeit.dataframes"
|
|
7
|
-
version = "0.26.
|
|
7
|
+
version = "0.26.4"
|
|
8
8
|
|
|
9
9
|
description = "Hopeit Engine Dataframes for Pandas"
|
|
10
10
|
dynamic = ["readme"]
|
|
@@ -33,8 +33,8 @@ classifiers = [
|
|
|
33
33
|
]
|
|
34
34
|
|
|
35
35
|
dependencies = [
|
|
36
|
-
"hopeit.engine>=0.26.
|
|
37
|
-
"hopeit.fs-storage>=0.26.
|
|
36
|
+
"hopeit.engine>=0.26.4",
|
|
37
|
+
"hopeit.fs-storage>=0.26.4"
|
|
38
38
|
]
|
|
39
39
|
|
|
40
40
|
[project.optional-dependencies]
|
|
@@ -72,8 +72,15 @@ print(Payload.to_json(my_json_response))
|
|
|
72
72
|
|
|
73
73
|
from typing import Dict, Generic, Iterator, List, Type
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
import
|
|
75
|
+
try:
|
|
76
|
+
import numpy as np
|
|
77
|
+
import pandas as pd
|
|
78
|
+
except ImportError:
|
|
79
|
+
# Supports using `@dataframe` annotation for dataobjects definitions
|
|
80
|
+
# without installing pandas and numpy. Useful for API-only projects.
|
|
81
|
+
import hopeit.dataframes.pandas.numpy_mock as np # type: ignore[no-redef]
|
|
82
|
+
import hopeit.dataframes.pandas.pandas_mock as pd # type: ignore[no-redef]
|
|
83
|
+
|
|
77
84
|
from hopeit.dataframes.dataframe import DataFrameT, dataframe
|
|
78
85
|
from hopeit.dataframes.serialization.dataset import Dataset
|
|
79
86
|
from hopeit.dataframes.datablocks import DataBlocks
|
|
@@ -7,7 +7,11 @@ and saved as a single flat pandas DataFrame.
|
|
|
7
7
|
from datetime import datetime
|
|
8
8
|
from typing import AsyncGenerator, Generic, Optional, Type, TypeVar, get_args, get_origin
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
try:
|
|
11
|
+
import pandas as pd
|
|
12
|
+
except ImportError:
|
|
13
|
+
import hopeit.dataframes.pandas.pandas_mock as pd # type: ignore[no-redef]
|
|
14
|
+
|
|
11
15
|
from hopeit.dataobjects import dataobject, dataclass, fields
|
|
12
16
|
|
|
13
17
|
from hopeit.dataframes.serialization.dataset import Dataset, DatasetLoadError
|
|
@@ -6,8 +6,13 @@ import dataclasses
|
|
|
6
6
|
from datetime import date, datetime, timezone
|
|
7
7
|
from typing import Any, Callable, Dict, Generic, Iterator, List, Type, TypeVar, Union
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
import
|
|
9
|
+
try:
|
|
10
|
+
import numpy as np
|
|
11
|
+
import pandas as pd
|
|
12
|
+
except ImportError:
|
|
13
|
+
import hopeit.dataframes.pandas.numpy_mock as np # type: ignore[no-redef]
|
|
14
|
+
import hopeit.dataframes.pandas.pandas_mock as pd # type: ignore[no-redef]
|
|
15
|
+
|
|
11
16
|
from pydantic import create_model
|
|
12
17
|
from pydantic.fields import FieldInfo
|
|
13
18
|
|
{hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/serialization/dataset.py
RENAMED
|
@@ -4,7 +4,12 @@ from datetime import datetime
|
|
|
4
4
|
from typing import Any, Dict, Generic, Optional, Type, TypeVar
|
|
5
5
|
|
|
6
6
|
from hopeit.dataobjects import dataclass, dataobject
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
import pandas as pd
|
|
10
|
+
except ImportError:
|
|
11
|
+
import hopeit.dataframes.pandas.pandas_mock as pd # type: ignore[no-redef]
|
|
12
|
+
|
|
8
13
|
from pydantic import TypeAdapter
|
|
9
14
|
|
|
10
15
|
from hopeit.dataframes.setup.registry import get_dataset_storage
|
{hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/serialization/files.py
RENAMED
|
@@ -8,16 +8,15 @@ from uuid import uuid4
|
|
|
8
8
|
from pathlib import Path
|
|
9
9
|
|
|
10
10
|
import aiofiles
|
|
11
|
-
import pandas as pd
|
|
12
|
-
import pyarrow
|
|
13
11
|
from pydantic import TypeAdapter
|
|
14
12
|
|
|
15
13
|
try:
|
|
14
|
+
import pandas as pd
|
|
16
15
|
import pyarrow # type: ignore # noqa # pylint: disable=unused-import
|
|
17
16
|
except ImportError as e:
|
|
18
17
|
raise ImportError(
|
|
19
|
-
"`pyarrow` needs to be installed to use `DatasetFileStorage`",
|
|
20
|
-
"Run `pip install hopeit.dataframes[
|
|
18
|
+
"`pandas` and `pyarrow` needs to be installed to use `DatasetFileStorage`",
|
|
19
|
+
"Run `pip install hopeit.dataframes[pandas]`",
|
|
21
20
|
) from e
|
|
22
21
|
|
|
23
22
|
from hopeit.dataframes.dataframe import DataFrameMixin
|
|
File without changes
|
|
File without changes
|
{hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit.dataframes.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hopeit.dataframes
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.4
|
|
4
4
|
Summary: Hopeit Engine Dataframes for Pandas
|
|
5
5
|
Author-email: Leo Smerling & Pablo Canto <contact@hopeit.com.ar>, Leo Smerling <contact@hopeit.com.ar>, Pablo Canto <contact@hopeit.com.ar>
|
|
6
6
|
License: Apache 2
|
|
@@ -24,8 +24,8 @@ Classifier: Topic :: Internet :: WWW/HTTP
|
|
|
24
24
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
25
|
Classifier: Framework :: AsyncIO
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
|
-
Requires-Dist: hopeit.engine>=0.26.
|
|
28
|
-
Requires-Dist: hopeit.fs-storage>=0.26.
|
|
27
|
+
Requires-Dist: hopeit.engine>=0.26.4
|
|
28
|
+
Requires-Dist: hopeit.fs-storage>=0.26.4
|
|
29
29
|
Provides-Extra: pandas
|
|
30
30
|
Requires-Dist: pandas>=2.2.3; extra == "pandas"
|
|
31
31
|
Requires-Dist: pyarrow>=19.0.1; extra == "pandas"
|
{hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit.dataframes.egg-info/SOURCES.txt
RENAMED
|
@@ -9,6 +9,10 @@ src/hopeit/dataframes/__init__.py
|
|
|
9
9
|
src/hopeit/dataframes/datablocks.py
|
|
10
10
|
src/hopeit/dataframes/dataframe.py
|
|
11
11
|
src/hopeit/dataframes/py.typed
|
|
12
|
+
src/hopeit/dataframes/pandas/__init__.py
|
|
13
|
+
src/hopeit/dataframes/pandas/numpy_mock.py
|
|
14
|
+
src/hopeit/dataframes/pandas/pandas_mock.py
|
|
15
|
+
src/hopeit/dataframes/pandas/py.typed
|
|
12
16
|
src/hopeit/dataframes/serialization/__init__.py
|
|
13
17
|
src/hopeit/dataframes/serialization/dataset.py
|
|
14
18
|
src/hopeit/dataframes/serialization/files.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/setup/dataframes.py
RENAMED
|
File without changes
|
|
File without changes
|
{hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit/dataframes/setup/registry.py
RENAMED
|
File without changes
|
|
File without changes
|
{hopeit_dataframes-0.26.3 → hopeit_dataframes-0.26.4}/src/hopeit.dataframes.egg-info/top_level.txt
RENAMED
|
File without changes
|