webcrawlerapi 2.1.5__tar.gz → 2.1.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webcrawlerapi
3
- Version: 2.1.5
3
+ Version: 2.1.6
4
4
  Summary: Python SDK for WebCrawler API
5
5
  Home-page: https://github.com/webcrawlerapi/webcrawlerapi-python-sdk
6
6
  Author: Andrew
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name="webcrawlerapi",
5
- version="2.1.5",
5
+ version="2.1.6",
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  "requests>=2.25.0",
@@ -428,4 +428,4 @@ class TestJob:
428
428
 
429
429
  def test_job_terminal_statuses_constant(self):
430
430
  """Test that TERMINAL_STATUSES constant is correctly defined."""
431
- assert Job.TERMINAL_STATUSES == {"done", "error", "cancelled"}
431
+ assert Job.TERMINAL_STATUSES == {"done", "error", "cancelled", "canceled"}
@@ -284,7 +284,7 @@ class JobItem:
284
284
  class Job:
285
285
  """Represents a crawling job."""
286
286
 
287
- TERMINAL_STATUSES = {"done", "error", "cancelled"}
287
+ TERMINAL_STATUSES = {"done", "error", "cancelled", "canceled"}
288
288
 
289
289
  def __init__(self, data: Dict[str, Any]):
290
290
  self.id: str = data["id"]
@@ -317,5 +317,5 @@ class Job:
317
317
 
318
318
  @property
319
319
  def is_terminal(self) -> bool:
320
- """Check if the job is in a terminal state (done, error, or cancelled)."""
320
+ """Check if the job is in a terminal state (done, error, or cancelled/canceled)."""
321
321
  return self.status in self.TERMINAL_STATUSES
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webcrawlerapi
3
- Version: 2.1.5
3
+ Version: 2.1.6
4
4
  Summary: Python SDK for WebCrawler API
5
5
  Home-page: https://github.com/webcrawlerapi/webcrawlerapi-python-sdk
6
6
  Author: Andrew
File without changes
File without changes