opteryx-catalog 0.4.4__py3-none-any.whl
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.
- opteryx_catalog/__init__.py +31 -0
- opteryx_catalog/catalog/__init__.py +3 -0
- opteryx_catalog/catalog/dataset.py +1221 -0
- opteryx_catalog/catalog/manifest.py +23 -0
- opteryx_catalog/catalog/metadata.py +81 -0
- opteryx_catalog/catalog/metastore.py +68 -0
- opteryx_catalog/catalog/view.py +12 -0
- opteryx_catalog/exceptions.py +38 -0
- opteryx_catalog/iops/__init__.py +6 -0
- opteryx_catalog/iops/base.py +42 -0
- opteryx_catalog/iops/fileio.py +125 -0
- opteryx_catalog/iops/gcs.py +225 -0
- opteryx_catalog/opteryx_catalog.py +923 -0
- opteryx_catalog-0.4.4.dist-info/METADATA +464 -0
- opteryx_catalog-0.4.4.dist-info/RECORD +23 -0
- opteryx_catalog-0.4.4.dist-info/WHEEL +5 -0
- opteryx_catalog-0.4.4.dist-info/licenses/LICENSE +201 -0
- opteryx_catalog-0.4.4.dist-info/top_level.txt +3 -0
- scripts/create_dataset.py +201 -0
- scripts/read_dataset.py +268 -0
- tests/test_dataset_metadata.py +15 -0
- tests/test_import.py +5 -0
- tests/test_pyproject.py +8 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from opteryx_catalog.catalog.metadata import DatasetMetadata
|
|
2
|
+
from opteryx_catalog.catalog.dataset import SimpleDataset
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def test_dataset_metadata_and_simpledataset():
|
|
6
|
+
meta = DatasetMetadata(
|
|
7
|
+
dataset_identifier="tests_temp.test",
|
|
8
|
+
location="gs://bucket/ws/tests_temp/test",
|
|
9
|
+
schema=None,
|
|
10
|
+
properties={},
|
|
11
|
+
)
|
|
12
|
+
ds = SimpleDataset(identifier="tests_temp.test", _metadata=meta)
|
|
13
|
+
assert ds.metadata.dataset_identifier == "tests_temp.test"
|
|
14
|
+
assert ds.snapshot() is None
|
|
15
|
+
assert list(ds.snapshots()) == []
|
tests/test_import.py
ADDED