simile 0.3.2__tar.gz → 0.3.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.
Potentially problematic release.
This version of simile might be problematic. Click here for more details.
- {simile-0.3.2 → simile-0.3.4}/PKG-INFO +1 -1
- {simile-0.3.2 → simile-0.3.4}/pyproject.toml +1 -1
- simile-0.3.4/simile/__init__.py +47 -0
- {simile-0.3.2 → simile-0.3.4}/simile/client.py +8 -0
- {simile-0.3.2 → simile-0.3.4}/simile/models.py +7 -0
- {simile-0.3.2 → simile-0.3.4}/simile.egg-info/PKG-INFO +1 -1
- simile-0.3.2/simile/__init__.py +0 -30
- {simile-0.3.2 → simile-0.3.4}/LICENSE +0 -0
- {simile-0.3.2 → simile-0.3.4}/README.md +0 -0
- {simile-0.3.2 → simile-0.3.4}/setup.cfg +0 -0
- {simile-0.3.2 → simile-0.3.4}/setup.py +0 -0
- {simile-0.3.2 → simile-0.3.4}/simile/auth_client.py +0 -0
- {simile-0.3.2 → simile-0.3.4}/simile/exceptions.py +0 -0
- {simile-0.3.2 → simile-0.3.4}/simile/resources.py +0 -0
- {simile-0.3.2 → simile-0.3.4}/simile.egg-info/SOURCES.txt +0 -0
- {simile-0.3.2 → simile-0.3.4}/simile.egg-info/dependency_links.txt +0 -0
- {simile-0.3.2 → simile-0.3.4}/simile.egg-info/requires.txt +0 -0
- {simile-0.3.2 → simile-0.3.4}/simile.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from .client import Simile
|
|
2
|
+
from .auth_client import SimileAuth
|
|
3
|
+
from .models import (
|
|
4
|
+
Population,
|
|
5
|
+
Agent,
|
|
6
|
+
DataItem,
|
|
7
|
+
PopulationInfo,
|
|
8
|
+
CreatePopulationPayload,
|
|
9
|
+
CreateAgentPayload,
|
|
10
|
+
CreateDataItemPayload,
|
|
11
|
+
UpdateDataItemPayload,
|
|
12
|
+
DeletionResponse,
|
|
13
|
+
OpenGenerationRequest,
|
|
14
|
+
OpenGenerationResponse,
|
|
15
|
+
ClosedGenerationRequest,
|
|
16
|
+
ClosedGenerationResponse,
|
|
17
|
+
)
|
|
18
|
+
from .exceptions import (
|
|
19
|
+
SimileAPIError,
|
|
20
|
+
SimileAuthenticationError,
|
|
21
|
+
SimileNotFoundError,
|
|
22
|
+
SimileBadRequestError
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
__all__ = [
|
|
26
|
+
"Simile",
|
|
27
|
+
"SimileAuth",
|
|
28
|
+
"Population",
|
|
29
|
+
"PopulationInfo",
|
|
30
|
+
"Agent",
|
|
31
|
+
"DataItem",
|
|
32
|
+
"CreatePopulationPayload",
|
|
33
|
+
"CreateAgentPayload",
|
|
34
|
+
"CreateDataItemPayload",
|
|
35
|
+
"UpdateDataItemPayload",
|
|
36
|
+
"DeletionResponse",
|
|
37
|
+
"OpenGenerationRequest",
|
|
38
|
+
"OpenGenerationResponse",
|
|
39
|
+
"ClosedGenerationRequest",
|
|
40
|
+
"ClosedGenerationResponse",
|
|
41
|
+
"SimileAPIError",
|
|
42
|
+
"SimileAuthenticationError",
|
|
43
|
+
"SimileNotFoundError",
|
|
44
|
+
"SimileBadRequestError",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
__version__ = "0.2.15"
|
|
@@ -6,6 +6,7 @@ from pydantic import BaseModel
|
|
|
6
6
|
|
|
7
7
|
from .models import (
|
|
8
8
|
Population,
|
|
9
|
+
PopulationInfo,
|
|
9
10
|
Agent as AgentModel,
|
|
10
11
|
DataItem,
|
|
11
12
|
DeletionResponse,
|
|
@@ -168,6 +169,13 @@ class Simile:
|
|
|
168
169
|
)
|
|
169
170
|
return response_data
|
|
170
171
|
|
|
172
|
+
async def get_population_info(self, population_id: Union[str, uuid.UUID]) -> PopulationInfo:
|
|
173
|
+
"""Gets basic population info (name and agent count) without full population data."""
|
|
174
|
+
response_data = await self._request(
|
|
175
|
+
"GET", f"populations/info/{str(population_id)}", response_model=PopulationInfo
|
|
176
|
+
)
|
|
177
|
+
return response_data
|
|
178
|
+
|
|
171
179
|
async def delete_population(
|
|
172
180
|
self, population_id: Union[str, uuid.UUID]
|
|
173
181
|
) -> DeletionResponse:
|
|
@@ -13,6 +13,13 @@ class Population(BaseModel):
|
|
|
13
13
|
updated_at: datetime
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
class PopulationInfo(BaseModel):
|
|
17
|
+
population_id: uuid.UUID
|
|
18
|
+
name: str
|
|
19
|
+
description: Optional[str] = None
|
|
20
|
+
agent_count: int
|
|
21
|
+
|
|
22
|
+
|
|
16
23
|
class DataItem(BaseModel):
|
|
17
24
|
id: uuid.UUID
|
|
18
25
|
agent_id: uuid.UUID
|
simile-0.3.2/simile/__init__.py
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
from .client import Simile
|
|
2
|
-
from .auth_client import SimileAuth
|
|
3
|
-
from .models import (
|
|
4
|
-
Population, Agent, DataItem,
|
|
5
|
-
CreatePopulationPayload, CreateAgentPayload, CreateDataItemPayload, UpdateDataItemPayload,
|
|
6
|
-
DeletionResponse,
|
|
7
|
-
OpenGenerationRequest,
|
|
8
|
-
OpenGenerationResponse,
|
|
9
|
-
ClosedGenerationRequest,
|
|
10
|
-
ClosedGenerationResponse
|
|
11
|
-
)
|
|
12
|
-
from .exceptions import (
|
|
13
|
-
SimileAPIError,
|
|
14
|
-
SimileAuthenticationError,
|
|
15
|
-
SimileNotFoundError,
|
|
16
|
-
SimileBadRequestError
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
__all__ = [
|
|
20
|
-
"Simile",
|
|
21
|
-
"SimileAuth",
|
|
22
|
-
"Population", "Agent", "DataItem",
|
|
23
|
-
"CreatePopulationPayload", "CreateAgentPayload", "CreateDataItemPayload", "UpdateDataItemPayload",
|
|
24
|
-
"DeletionResponse",
|
|
25
|
-
"OpenGenerationRequest", "OpenGenerationResponse",
|
|
26
|
-
"ClosedGenerationRequest", "ClosedGenerationResponse",
|
|
27
|
-
"SimileAPIError", "SimileAuthenticationError", "SimileNotFoundError", "SimileBadRequestError"
|
|
28
|
-
]
|
|
29
|
-
|
|
30
|
-
__version__ = "0.2.15"
|
|
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
|