silk-scraper 0.2.2__tar.gz → 0.2.3__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.
Files changed (30) hide show
  1. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/PKG-INFO +4 -4
  2. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/README.md +3 -3
  3. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/pyproject.toml +1 -1
  4. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/__init__.py +1 -1
  5. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/context.py +1 -1
  6. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/elements.py +1 -1
  7. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/input.py +1 -1
  8. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/manage.py +1 -1
  9. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/navigation.py +1 -1
  10. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/utils.py +1 -1
  11. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/context.py +1 -1
  12. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/driver.py +1 -1
  13. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/drivers/playwright.py +1 -1
  14. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/element.py +1 -1
  15. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/manager.py +1 -1
  16. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/LICENSE +0 -0
  17. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/__init__.py +0 -0
  18. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/actions/py.typed +0 -0
  19. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/__init__.py +0 -0
  20. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/driver_factory.py +0 -0
  21. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/py.typed +0 -0
  22. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/browsers/types.py +0 -0
  23. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/composition.py +0 -0
  24. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/flow.py +0 -0
  25. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/operation.py +0 -0
  26. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/placeholder.py +0 -0
  27. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/py.typed +0 -0
  28. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/selectors/__init__.py +0 -0
  29. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/selectors/py.typed +0 -0
  30. {silk_scraper-0.2.2 → silk_scraper-0.2.3}/src/silk/selectors/selector.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: silk-scraper
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: A flexible browser automation library with support for multiple drivers
5
5
  License: MIT
6
6
  Author: Galad Dirie
@@ -33,7 +33,7 @@ Description-Content-Type: text/markdown
33
33
 
34
34
  # Silk
35
35
 
36
- [![PyPI version](https://img.shields.io/badge/pypi-v0.2.0-blue.svg)](https://pypi.org/project/silk-scraper/)
36
+ [![PyPI version](https://img.shields.io/badge/pypi-v0.2.3-blue.svg)](https://pypi.org/project/silk-scraper/)
37
37
  [![Python versions](https://img.shields.io/badge/python-3.10%2B-blue)](https://pypi.org/project/silk-scraper/)
38
38
  [![codecov](https://codecov.io/gh/galaddirie/silk/graph/badge.svg?token=MFTEFWJ4EF)](https://codecov.io/gh/galaddirie/silk)
39
39
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -415,7 +415,7 @@ Creates a pipeline where each action receives the result of the previous action,
415
415
  from silk.flow import pipe
416
416
  from silk.actions.elements import GetText
417
417
  from silk.actions.decorators import action
418
- from expression.core import Ok, Error
418
+ from expression import Ok, Error
419
419
 
420
420
  @action
421
421
  async def parse_price(context, price_text):
@@ -628,7 +628,7 @@ Extend Silk with your own custom actions:
628
628
 
629
629
  ```python
630
630
  from silk.actions.decorators import action
631
- from expression.core import Ok, Error
631
+ from expression import Ok, Error
632
632
 
633
633
  @action
634
634
  async def extract_price(context, selector):
@@ -1,6 +1,6 @@
1
1
  # Silk
2
2
 
3
- [![PyPI version](https://img.shields.io/badge/pypi-v0.2.0-blue.svg)](https://pypi.org/project/silk-scraper/)
3
+ [![PyPI version](https://img.shields.io/badge/pypi-v0.2.3-blue.svg)](https://pypi.org/project/silk-scraper/)
4
4
  [![Python versions](https://img.shields.io/badge/python-3.10%2B-blue)](https://pypi.org/project/silk-scraper/)
5
5
  [![codecov](https://codecov.io/gh/galaddirie/silk/graph/badge.svg?token=MFTEFWJ4EF)](https://codecov.io/gh/galaddirie/silk)
6
6
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -382,7 +382,7 @@ Creates a pipeline where each action receives the result of the previous action,
382
382
  from silk.flow import pipe
383
383
  from silk.actions.elements import GetText
384
384
  from silk.actions.decorators import action
385
- from expression.core import Ok, Error
385
+ from expression import Ok, Error
386
386
 
387
387
  @action
388
388
  async def parse_price(context, price_text):
@@ -595,7 +595,7 @@ Extend Silk with your own custom actions:
595
595
 
596
596
  ```python
597
597
  from silk.actions.decorators import action
598
- from expression.core import Ok, Error
598
+ from expression import Ok, Error
599
599
 
600
600
  @action
601
601
  async def extract_price(context, selector):
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "silk-scraper"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "A flexible browser automation library with support for multiple drivers"
5
5
  authors = [
6
6
  {name = "Galad Dirie", email = "hello@galad.ca"}
@@ -2,7 +2,7 @@
2
2
  Silk - A flexible browser automation library
3
3
  """
4
4
 
5
- __version__ = "0.2.2"
5
+ __version__ = "0.2.3"
6
6
 
7
7
  from expression import Error, Nothing, Ok, Option, Result, Some # noqa
8
8
  from fp_ops import operation # noqa
@@ -1,7 +1,7 @@
1
1
  import logging
2
2
  from typing import Any, Dict, Optional
3
3
 
4
- from expression.core import Error, Ok, Result
4
+ from expression import Error, Ok, Result
5
5
  from fp_ops import BaseContext
6
6
 
7
7
 
@@ -5,7 +5,7 @@ Extraction actions for retrieving data from web pages.
5
5
  import logging
6
6
  from typing import Any, Dict, List, Optional, TypeVar, Union
7
7
 
8
- from expression.core import Error, Ok, Result
8
+ from expression import Error, Ok, Result
9
9
  from fp_ops import operation
10
10
 
11
11
  from silk.actions.context import ActionContext
@@ -5,7 +5,7 @@ Input actions for interacting with elements via mouse or keyboard in the browser
5
5
  import logging
6
6
  from typing import Any, List, Optional, Tuple, TypeVar, Union
7
7
 
8
- from expression.core import Error, Ok, Result
8
+ from expression import Error, Ok, Result
9
9
  from fp_ops import operation
10
10
 
11
11
  from silk.actions.context import ActionContext
@@ -9,7 +9,7 @@ and manage browser contexts throughout a workflow.
9
9
  import logging
10
10
  from typing import Any, Dict, Optional, Union
11
11
 
12
- from expression.core import Error, Ok, Result
12
+ from expression import Error, Ok, Result
13
13
  from fp_ops import operation
14
14
 
15
15
  from silk.actions.context import ActionContext
@@ -7,7 +7,7 @@ import asyncio
7
7
  from pathlib import Path
8
8
  from typing import Any, Optional, Union
9
9
 
10
- from expression.core import Error, Ok, Result
10
+ from expression import Error, Ok, Result
11
11
  from fp_ops import operation
12
12
 
13
13
  from silk.actions.context import ActionContext
@@ -1,6 +1,6 @@
1
1
  from typing import Any, Callable, Optional, Tuple, Union, TypeVar
2
2
 
3
- from expression.core import Error, Result, Ok
3
+ from expression import Error, Result, Ok
4
4
  from silk.actions.context import ActionContext
5
5
  from silk.browsers.driver import BrowserDriver
6
6
  from silk.browsers.element import ElementHandle
@@ -2,7 +2,7 @@ import logging
2
2
  from pathlib import Path
3
3
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
4
4
 
5
- from expression.core import Error, Ok, Result
5
+ from expression import Error, Ok, Result
6
6
  from fp_ops import BaseContext
7
7
  from pydantic import Field
8
8
 
@@ -3,7 +3,7 @@ from abc import abstractmethod
3
3
  from pathlib import Path
4
4
  from typing import Any, Dict, List, Optional, Protocol, Type, Union
5
5
 
6
- from expression.core import Result
6
+ from expression import Result
7
7
 
8
8
  from silk.browsers.element import ElementHandle
9
9
  from silk.browsers.types import (
@@ -14,7 +14,7 @@ from typing import (
14
14
  cast,
15
15
  )
16
16
 
17
- from expression.core import Error, Ok, Result
17
+ from expression import Error, Ok, Result
18
18
  from playwright.async_api import Browser
19
19
  from playwright.async_api import BrowserContext as PlaywrightContext
20
20
  from playwright.async_api import ElementHandle as PlaywrightNativeElement
@@ -14,7 +14,7 @@ from typing import (
14
14
  runtime_checkable,
15
15
  )
16
16
 
17
- from expression.core import Result
17
+ from expression import Result
18
18
 
19
19
  if TYPE_CHECKING:
20
20
  from silk.browsers.driver import BrowserDriver
@@ -2,7 +2,7 @@ import logging
2
2
  from contextlib import asynccontextmanager
3
3
  from typing import TYPE_CHECKING, Any, AsyncIterator, Dict, List, Optional, TypeVar
4
4
 
5
- from expression.core import Error, Ok, Result
5
+ from expression import Error, Ok, Result
6
6
 
7
7
  from silk.browsers.context import BrowserContext
8
8
  from silk.browsers.driver import BrowserDriver
File without changes