pytest_wdl.url_schemes package¶
Submodules¶
pytest_wdl.url_schemes.dx module¶
-
class
pytest_wdl.url_schemes.dx.
DxResponse
(file_id: str, project_id: Optional[str] = None)[source]¶ Bases:
pytest_wdl.url_schemes.Response
-
download_file
(destination: pathlib.Path, show_progress: bool = False, digests: Optional[dict] = None)[source]¶ Download a file to a specific destination.
- Parameters
destination – Destination path
show_progress – Whether to show a progress bar
digests – Optional dict mapping hash names to digests. These are used to validate the downloaded file.
- Raises
-
-
class
pytest_wdl.url_schemes.dx.
DxUrlHandler
[source]¶ Bases:
pytest_wdl.url_schemes.UrlHandler
-
property
handles
¶
-
property
scheme
¶
-
property
Module contents¶
-
class
pytest_wdl.url_schemes.
BaseResponse
[source]¶ Bases:
pytest_wdl.url_schemes.Response
-
download_file
(destination: pathlib.Path, show_progress: bool = False, digests: Optional[dict] = None)[source]¶ Download a file to a specific destination.
- Parameters
destination – Destination path
show_progress – Whether to show a progress bar
digests – Optional dict mapping hash names to digests. These are used to validate the downloaded file.
- Raises
-
-
class
pytest_wdl.url_schemes.
Method
(src_attr, dest_pattern)[source]¶ Bases:
enum.Enum
An enumeration.
-
OPEN
= ('urlopen', '{}_open')¶
-
REQUEST
= ('request', '{}_request')¶
-
RESPONSE
= ('response', '{}_response')¶
-
-
class
pytest_wdl.url_schemes.
Response
[source]¶ Bases:
object
-
abstract
download_file
(destination: pathlib.Path, show_progress: bool = False, digests: Optional[dict] = None)[source]¶ Download a file to a specific destination.
- Parameters
destination – Destination path
show_progress – Whether to show a progress bar
digests – Optional dict mapping hash names to digests. These are used to validate the downloaded file.
- Raises
-
abstract