entitysdk 0.3.0__tar.gz → 0.3.1__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.
- {entitysdk-0.3.0/src/entitysdk.egg-info → entitysdk-0.3.1}/PKG-INFO +5 -7
- {entitysdk-0.3.0 → entitysdk-0.3.1}/README.md +4 -6
- entitysdk-0.3.1/src/entitysdk/__init__.py +6 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1/src/entitysdk.egg-info}/PKG-INFO +5 -7
- entitysdk-0.3.0/src/entitysdk/__init__.py +0 -1
- {entitysdk-0.3.0 → entitysdk-0.3.1}/.github/workflows/sdist.yml +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/.github/workflows/tox.yml +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/.gitignore +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/CHANGELOG.rst +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/CONTRIBUTING.md +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/LICENSE.txt +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/examples/01_searching.ipynb +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/examples/02_morphology.ipynb +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/examples/03_contribution.ipynb +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/pyproject.toml +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/setup.cfg +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/client.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/common.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/config.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/core.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/exception.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/mixin.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/__init__.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/agent.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/asset.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/base.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/brain_location.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/brain_region.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/contribution.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/core.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/electrical_cell_recording.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/emodel.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/entity.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/etype.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/ion_channel_model.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/license.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/memodel.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/memodelcalibrationresult.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/morphology.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/mtype.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/response.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/subject.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/taxonomy.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/models/validation_result.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/result.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/route.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/serdes.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/token_manager.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/types.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk/util.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk.egg-info/SOURCES.txt +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk.egg-info/dependency_links.txt +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk.egg-info/requires.txt +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/src/entitysdk.egg-info/top_level.txt +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/__init__.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/integration/__init__.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/integration/conftest.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/integration/test_searching.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/__init__.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/conftest.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/__init__.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/data/.gitignore +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/data/electrical_cell_recording.json +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/data/ion_channel_model.json +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/data/memodel_calibration_result.json +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/data/reconstruction_morphology.json +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/data/validation_result.json +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_agent.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_asset.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_brain_region.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_contribution.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_electrical_cell_recording.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_init.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_ion_channel_model.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_memodel_calibration_result.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_morphology.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/models/test_validation_result.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_base.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_client.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_common.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_config.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_result.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_route.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_serdes.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_token_manager.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/test_util.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tests/unit/util.py +0 -0
- {entitysdk-0.3.0 → entitysdk-0.3.1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: entitysdk
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.1
|
4
4
|
Summary: Python library for interacting with the entitycore service
|
5
5
|
Author-email: Open Brain Institute <info@openbraininstitute.org>
|
6
6
|
Maintainer-email: Open Brain Institute <info@openbraininstitute.org>
|
@@ -58,9 +58,7 @@ token = get_token(environment="staging")
|
|
58
58
|
|
59
59
|
```python
|
60
60
|
from uuid import UUID
|
61
|
-
from entitysdk
|
62
|
-
from entitysdk.common import ProjectContext
|
63
|
-
from entitysdk.models.morphology import ReconstructionMorphology
|
61
|
+
from entitysdk import Client, ProjectContext, models
|
64
62
|
|
65
63
|
# Initialize client
|
66
64
|
client = Client(
|
@@ -73,7 +71,7 @@ client = Client(
|
|
73
71
|
|
74
72
|
# Search for morphologies
|
75
73
|
iterator = client.search_entity(
|
76
|
-
entity_type=ReconstructionMorphology,
|
74
|
+
entity_type=models.ReconstructionMorphology,
|
77
75
|
query={"mtype__pref_label": "L5_TPC:A"},
|
78
76
|
token=token,
|
79
77
|
limit=1,
|
@@ -83,7 +81,7 @@ morphology = next(iterator)
|
|
83
81
|
# Upload an asset
|
84
82
|
client.upload_file(
|
85
83
|
entity_id=morphology.id,
|
86
|
-
entity_type=ReconstructionMorphology,
|
84
|
+
entity_type=models.ReconstructionMorphology,
|
87
85
|
file_path="path/to/file.swc",
|
88
86
|
file_content_type="application/swc",
|
89
87
|
token="your-token"
|
@@ -99,7 +97,7 @@ client.upload_file(
|
|
99
97
|
Example configuration:
|
100
98
|
```python
|
101
99
|
from uuid import UUID
|
102
|
-
from entitysdk
|
100
|
+
from entitysdk import ProjectContext
|
103
101
|
|
104
102
|
project_context = ProjectContext(
|
105
103
|
project_id=UUID("12345678-1234-1234-1234-123456789012"),
|
@@ -37,9 +37,7 @@ token = get_token(environment="staging")
|
|
37
37
|
|
38
38
|
```python
|
39
39
|
from uuid import UUID
|
40
|
-
from entitysdk
|
41
|
-
from entitysdk.common import ProjectContext
|
42
|
-
from entitysdk.models.morphology import ReconstructionMorphology
|
40
|
+
from entitysdk import Client, ProjectContext, models
|
43
41
|
|
44
42
|
# Initialize client
|
45
43
|
client = Client(
|
@@ -52,7 +50,7 @@ client = Client(
|
|
52
50
|
|
53
51
|
# Search for morphologies
|
54
52
|
iterator = client.search_entity(
|
55
|
-
entity_type=ReconstructionMorphology,
|
53
|
+
entity_type=models.ReconstructionMorphology,
|
56
54
|
query={"mtype__pref_label": "L5_TPC:A"},
|
57
55
|
token=token,
|
58
56
|
limit=1,
|
@@ -62,7 +60,7 @@ morphology = next(iterator)
|
|
62
60
|
# Upload an asset
|
63
61
|
client.upload_file(
|
64
62
|
entity_id=morphology.id,
|
65
|
-
entity_type=ReconstructionMorphology,
|
63
|
+
entity_type=models.ReconstructionMorphology,
|
66
64
|
file_path="path/to/file.swc",
|
67
65
|
file_content_type="application/swc",
|
68
66
|
token="your-token"
|
@@ -78,7 +76,7 @@ client.upload_file(
|
|
78
76
|
Example configuration:
|
79
77
|
```python
|
80
78
|
from uuid import UUID
|
81
|
-
from entitysdk
|
79
|
+
from entitysdk import ProjectContext
|
82
80
|
|
83
81
|
project_context = ProjectContext(
|
84
82
|
project_id=UUID("12345678-1234-1234-1234-123456789012"),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: entitysdk
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.1
|
4
4
|
Summary: Python library for interacting with the entitycore service
|
5
5
|
Author-email: Open Brain Institute <info@openbraininstitute.org>
|
6
6
|
Maintainer-email: Open Brain Institute <info@openbraininstitute.org>
|
@@ -58,9 +58,7 @@ token = get_token(environment="staging")
|
|
58
58
|
|
59
59
|
```python
|
60
60
|
from uuid import UUID
|
61
|
-
from entitysdk
|
62
|
-
from entitysdk.common import ProjectContext
|
63
|
-
from entitysdk.models.morphology import ReconstructionMorphology
|
61
|
+
from entitysdk import Client, ProjectContext, models
|
64
62
|
|
65
63
|
# Initialize client
|
66
64
|
client = Client(
|
@@ -73,7 +71,7 @@ client = Client(
|
|
73
71
|
|
74
72
|
# Search for morphologies
|
75
73
|
iterator = client.search_entity(
|
76
|
-
entity_type=ReconstructionMorphology,
|
74
|
+
entity_type=models.ReconstructionMorphology,
|
77
75
|
query={"mtype__pref_label": "L5_TPC:A"},
|
78
76
|
token=token,
|
79
77
|
limit=1,
|
@@ -83,7 +81,7 @@ morphology = next(iterator)
|
|
83
81
|
# Upload an asset
|
84
82
|
client.upload_file(
|
85
83
|
entity_id=morphology.id,
|
86
|
-
entity_type=ReconstructionMorphology,
|
84
|
+
entity_type=models.ReconstructionMorphology,
|
87
85
|
file_path="path/to/file.swc",
|
88
86
|
file_content_type="application/swc",
|
89
87
|
token="your-token"
|
@@ -99,7 +97,7 @@ client.upload_file(
|
|
99
97
|
Example configuration:
|
100
98
|
```python
|
101
99
|
from uuid import UUID
|
102
|
-
from entitysdk
|
100
|
+
from entitysdk import ProjectContext
|
103
101
|
|
104
102
|
project_context = ProjectContext(
|
105
103
|
project_id=UUID("12345678-1234-1234-1234-123456789012"),
|
@@ -1 +0,0 @@
|
|
1
|
-
"""entitysdk."""
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|