apify 2.0.0b7__tar.gz → 2.0.0b9__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 apify might be problematic. Click here for more details.
- {apify-2.0.0b7 → apify-2.0.0b9}/PKG-INFO +1 -1
- {apify-2.0.0b7 → apify-2.0.0b9}/pyproject.toml +1 -1
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/_platform_event_manager.py +10 -1
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_dataset_client.py +14 -12
- {apify-2.0.0b7 → apify-2.0.0b9}/LICENSE +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/README.md +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/__init__.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/_actor.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/_configuration.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/_consts.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/_crypto.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/_models.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/_proxy_configuration.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/_utils.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/__init__.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_apify_storage_client.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_dataset_collection_client.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_key_value_store_client.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_key_value_store_collection_client.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_request_queue_client.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_request_queue_collection_client.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/py.typed +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/log.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/py.typed +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/__init__.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/middlewares/__init__.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/middlewares/apify_proxy.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/middlewares/py.typed +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/pipelines/__init__.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/pipelines/actor_dataset_push.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/pipelines/py.typed +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/py.typed +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/requests.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/scheduler.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/scrapy/utils.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/storages/__init__.py +0 -0
- {apify-2.0.0b7 → apify-2.0.0b9}/src/apify/storages/py.typed +0 -0
|
@@ -94,6 +94,11 @@ class EventWithoutData(BaseModel):
|
|
|
94
94
|
data: Any = None
|
|
95
95
|
|
|
96
96
|
|
|
97
|
+
class DeprecatedEvent(BaseModel):
|
|
98
|
+
name: Literal['cpuInfo']
|
|
99
|
+
data: Annotated[dict[str, Any], Field(default_factory=dict)]
|
|
100
|
+
|
|
101
|
+
|
|
97
102
|
class UnknownEvent(BaseModel):
|
|
98
103
|
name: str
|
|
99
104
|
data: Annotated[dict[str, Any], Field(default_factory=dict)]
|
|
@@ -109,12 +114,13 @@ EventMessage = Union[
|
|
|
109
114
|
]
|
|
110
115
|
|
|
111
116
|
|
|
112
|
-
event_data_adapter: TypeAdapter[EventMessage | UnknownEvent] = TypeAdapter(
|
|
117
|
+
event_data_adapter: TypeAdapter[EventMessage | DeprecatedEvent | UnknownEvent] = TypeAdapter(
|
|
113
118
|
Union[
|
|
114
119
|
Annotated[
|
|
115
120
|
EventMessage,
|
|
116
121
|
Discriminator('name'),
|
|
117
122
|
],
|
|
123
|
+
DeprecatedEvent,
|
|
118
124
|
UnknownEvent,
|
|
119
125
|
]
|
|
120
126
|
)
|
|
@@ -189,6 +195,9 @@ class PlatformEventManager(EventManager):
|
|
|
189
195
|
try:
|
|
190
196
|
parsed_message = event_data_adapter.validate_json(message)
|
|
191
197
|
|
|
198
|
+
if isinstance(parsed_message, DeprecatedEvent):
|
|
199
|
+
continue
|
|
200
|
+
|
|
192
201
|
if isinstance(parsed_message, UnknownEvent):
|
|
193
202
|
logger.info(
|
|
194
203
|
f'Unknown message received: event_name={parsed_message.name}, '
|
|
@@ -60,18 +60,20 @@ class DatasetClient(BaseDatasetClient):
|
|
|
60
60
|
view: str | None = None,
|
|
61
61
|
) -> DatasetItemsListPage:
|
|
62
62
|
return DatasetItemsListPage.model_validate(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
vars(
|
|
64
|
+
await self._client.list_items(
|
|
65
|
+
offset=offset,
|
|
66
|
+
limit=limit,
|
|
67
|
+
clean=clean,
|
|
68
|
+
desc=desc,
|
|
69
|
+
fields=fields,
|
|
70
|
+
omit=omit,
|
|
71
|
+
unwind=unwind,
|
|
72
|
+
skip_empty=skip_empty,
|
|
73
|
+
skip_hidden=skip_hidden,
|
|
74
|
+
flatten=flatten,
|
|
75
|
+
view=view,
|
|
76
|
+
)
|
|
75
77
|
)
|
|
76
78
|
)
|
|
77
79
|
|
|
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
|
{apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_dataset_collection_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_key_value_store_collection_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{apify-2.0.0b7 → apify-2.0.0b9}/src/apify/apify_storage_client/_request_queue_collection_client.py
RENAMED
|
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
|