entitysdk 0.2.3__tar.gz → 0.2.5__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.2.3/src/entitysdk.egg-info → entitysdk-0.2.5}/PKG-INFO +4 -4
- {entitysdk-0.2.3 → entitysdk-0.2.5}/README.md +3 -3
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/agent.py +6 -6
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/entity.py +2 -2
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/serdes.py +1 -1
- {entitysdk-0.2.3 → entitysdk-0.2.5/src/entitysdk.egg-info}/PKG-INFO +4 -4
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/data/ion_channel_model.json +2 -2
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/data/reconstruction_morphology.json +4 -4
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/test_agent.py +6 -6
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/test_contribution.py +1 -1
- {entitysdk-0.2.3 → entitysdk-0.2.5}/.github/workflows/sdist.yml +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/.github/workflows/tox.yml +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/.gitignore +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/CHANGELOG.rst +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/CONTRIBUTING.md +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/LICENSE.txt +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/examples/01_searching.ipynb +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/examples/02_morphology.ipynb +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/examples/03_contribution.ipynb +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/pyproject.toml +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/setup.cfg +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/__init__.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/client.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/common.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/config.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/core.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/exception.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/mixin.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/__init__.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/asset.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/base.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/brain_location.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/brain_region.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/contribution.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/core.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/electrical_cell_recording.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/emodel.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/etype.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/ion_channel_model.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/license.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/memodel.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/morphology.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/mtype.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/response.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/subject.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/models/taxonomy.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/result.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/route.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/token_manager.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/types.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk/util.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk.egg-info/SOURCES.txt +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk.egg-info/dependency_links.txt +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk.egg-info/requires.txt +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/src/entitysdk.egg-info/top_level.txt +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/__init__.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/integration/__init__.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/integration/conftest.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/integration/test_searching.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/__init__.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/conftest.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/__init__.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/data/.gitignore +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/data/electrical_cell_recording.json +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/test_asset.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/test_brain_region.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/test_electrical_cell_recording.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/test_init.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/test_ion_channel_model.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/models/test_morphology.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_base.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_client.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_common.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_config.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_result.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_route.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_serdes.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_token_manager.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/test_util.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tests/unit/util.py +0 -0
- {entitysdk-0.2.3 → entitysdk-0.2.5}/tox.ini +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: entitysdk
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.5
|
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>
|
@@ -51,7 +51,7 @@ pip install obi-auth
|
|
51
51
|
```python
|
52
52
|
from obi_auth import get_token
|
53
53
|
|
54
|
-
|
54
|
+
token = get_token(environment="staging")
|
55
55
|
```
|
56
56
|
|
57
57
|
## Quick Start
|
@@ -67,12 +67,12 @@ client = Client(
|
|
67
67
|
project_context=ProjectContext(
|
68
68
|
project_id=UUID("your-project-id"),
|
69
69
|
virtual_lab_id=UUID("your-lab-id")
|
70
|
-
)
|
70
|
+
),
|
71
71
|
environment="staging"
|
72
72
|
)
|
73
73
|
|
74
74
|
# Search for morphologies
|
75
|
-
iterator = client.
|
75
|
+
iterator = client.search_entity(
|
76
76
|
entity_type=ReconstructionMorphology,
|
77
77
|
query={"mtype__pref_label": "L5_TPC:A"},
|
78
78
|
token=token,
|
@@ -30,7 +30,7 @@ pip install obi-auth
|
|
30
30
|
```python
|
31
31
|
from obi_auth import get_token
|
32
32
|
|
33
|
-
|
33
|
+
token = get_token(environment="staging")
|
34
34
|
```
|
35
35
|
|
36
36
|
## Quick Start
|
@@ -46,12 +46,12 @@ client = Client(
|
|
46
46
|
project_context=ProjectContext(
|
47
47
|
project_id=UUID("your-project-id"),
|
48
48
|
virtual_lab_id=UUID("your-lab-id")
|
49
|
-
)
|
49
|
+
),
|
50
50
|
environment="staging"
|
51
51
|
)
|
52
52
|
|
53
53
|
# Search for morphologies
|
54
|
-
iterator = client.
|
54
|
+
iterator = client.search_entity(
|
55
55
|
entity_type=ReconstructionMorphology,
|
56
56
|
query={"mtype__pref_label": "L5_TPC:A"},
|
57
57
|
token=token,
|
@@ -33,20 +33,20 @@ class Person(Agent):
|
|
33
33
|
description="The type of this agent. Should be 'agent'",
|
34
34
|
),
|
35
35
|
] = "person"
|
36
|
-
|
37
|
-
str,
|
36
|
+
given_name: Annotated[
|
37
|
+
str | None,
|
38
38
|
Field(
|
39
39
|
examples=["John", "Jane"],
|
40
40
|
description="The given name of the person.",
|
41
41
|
),
|
42
|
-
]
|
43
|
-
|
44
|
-
str,
|
42
|
+
] = None
|
43
|
+
family_name: Annotated[
|
44
|
+
str | None,
|
45
45
|
Field(
|
46
46
|
examples=["Doe", "Smith"],
|
47
47
|
description="The family name of the person.",
|
48
48
|
),
|
49
|
-
]
|
49
|
+
] = None
|
50
50
|
|
51
51
|
|
52
52
|
class Organization(Agent):
|
@@ -35,11 +35,11 @@ class Entity(Identifiable, HasAssets):
|
|
35
35
|
description="The type of this Entity.",
|
36
36
|
),
|
37
37
|
] = None
|
38
|
-
|
38
|
+
created_by: Annotated[
|
39
39
|
AgentUnion | None,
|
40
40
|
Field(description="The agent that created this entity."),
|
41
41
|
] = None
|
42
|
-
|
42
|
+
updated_by: Annotated[
|
43
43
|
AgentUnion | None,
|
44
44
|
Field(
|
45
45
|
description="The agent that updated this entity.",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: entitysdk
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.5
|
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>
|
@@ -51,7 +51,7 @@ pip install obi-auth
|
|
51
51
|
```python
|
52
52
|
from obi_auth import get_token
|
53
53
|
|
54
|
-
|
54
|
+
token = get_token(environment="staging")
|
55
55
|
```
|
56
56
|
|
57
57
|
## Quick Start
|
@@ -67,12 +67,12 @@ client = Client(
|
|
67
67
|
project_context=ProjectContext(
|
68
68
|
project_id=UUID("your-project-id"),
|
69
69
|
virtual_lab_id=UUID("your-lab-id")
|
70
|
-
)
|
70
|
+
),
|
71
71
|
environment="staging"
|
72
72
|
)
|
73
73
|
|
74
74
|
# Search for morphologies
|
75
|
-
iterator = client.
|
75
|
+
iterator = client.search_entity(
|
76
76
|
entity_type=ReconstructionMorphology,
|
77
77
|
query={"mtype__pref_label": "L5_TPC:A"},
|
78
78
|
token=token,
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"type": "ion_channel_model",
|
4
4
|
"update_date": "2024-10-29T13:36:30.827776Z",
|
5
5
|
"creation_date": "2024-09-10T14:25:03.707956Z",
|
6
|
-
"
|
7
|
-
"
|
6
|
+
"created_by": null,
|
7
|
+
"updated_by": null,
|
8
8
|
"authorized_public": true,
|
9
9
|
"authorized_project_id": "c73ac3a5-3b7d-41bc-92e7-9f9309a49300",
|
10
10
|
"name": "Ca_HVA",
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"type": "reconstruction_morphology",
|
4
4
|
"update_date": "2024-10-29T13:36:30.827776Z",
|
5
5
|
"creation_date": "2024-09-10T14:25:03.707956Z",
|
6
|
-
"
|
7
|
-
"
|
6
|
+
"created_by": null,
|
7
|
+
"updated_by": null,
|
8
8
|
"authorized_public": true,
|
9
9
|
"authorized_project_id": "0dbced5f-cc3d-488a-8c7f-cfb8ea039dc6",
|
10
10
|
"assets": [
|
@@ -117,8 +117,8 @@
|
|
117
117
|
"creation_date": "2021-03-17T16:59:51.555000Z",
|
118
118
|
"type": "person",
|
119
119
|
"pref_label": "Maurizio Pezzoli Gonzalez",
|
120
|
-
"
|
121
|
-
"
|
120
|
+
"given_name": "Maurizio",
|
121
|
+
"family_name": "Pezzoli Gonzalez"
|
122
122
|
},
|
123
123
|
"role": {
|
124
124
|
"id": "8b06e557-277b-4b0c-a439-bfb02d41927c",
|
@@ -6,13 +6,13 @@ from ..util import MOCK_UUID
|
|
6
6
|
|
7
7
|
def test_person_entity():
|
8
8
|
agent = test_module.Person(
|
9
|
-
|
10
|
-
|
9
|
+
given_name="foo",
|
10
|
+
family_name="bar",
|
11
11
|
pref_label="test",
|
12
12
|
type="person",
|
13
13
|
)
|
14
|
-
assert agent.
|
15
|
-
assert agent.
|
14
|
+
assert agent.given_name == "foo"
|
15
|
+
assert agent.family_name == "bar"
|
16
16
|
assert agent.pref_label == "test"
|
17
17
|
assert agent.type == "person"
|
18
18
|
|
@@ -57,8 +57,8 @@ def test_agent_discriminated_union():
|
|
57
57
|
"agent": {
|
58
58
|
"type": "person",
|
59
59
|
"pref_label": "foo",
|
60
|
-
"
|
61
|
-
"
|
60
|
+
"given_name": "John",
|
61
|
+
"family_name": "Smith",
|
62
62
|
},
|
63
63
|
}
|
64
64
|
)
|
@@ -15,7 +15,7 @@ def test_role(role):
|
|
15
15
|
|
16
16
|
|
17
17
|
def test_contribution(role):
|
18
|
-
person = agent.Person(type="person",
|
18
|
+
person = agent.Person(type="person", given_name="foo", family_name="bar", pref_label="test")
|
19
19
|
|
20
20
|
res = test_module.Contribution(
|
21
21
|
agent=person,
|
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
|