backoffice
¤
bioimage.io collection backoffice
Modules:
-
__main__– -
_cli– -
_config– -
_requests_utils– -
_settings– -
_summarize– -
_version– -
check_compatibility–check compatibility of tools against resources in the index.json
-
compatibility–data models for compatibility reports
-
compatibility_pure–Pure Python alternative data models for compatibility reports
-
index–Data models and functions for indexing the bioimage.io collection
-
utils–utility functions
-
utils_pure–utility functions available in backoffice without dependencies
Attributes:
-
__all__– -
__version__–
__main__
¤
_cli
¤
Classes:
-
Backoffice–backoffice - manage the bioimage.io collection
-
CmdBase– -
IndexCmd– -
SummarizeCmd–
Backoffice
¤
Bases: BaseSettings
backoffice - manage the bioimage.io collection
Methods:
-
run–
Attributes:
-
index(CliSubCommand[IndexCmd]) –index the bioimage.io collection
-
summarize(CliSubCommand[SummarizeCmd]) –conflate tool summaries
run
¤
run()
Source code in src/backoffice/_cli.py
44 45 46 47 48 49 50 51 | |
IndexCmd
pydantic-model
¤
_config
¤
Modules:
Classes:
CollectionConfig
pydantic-model
¤
Bases: ConfigNode
load
cached
classmethod
¤
load()
Source code in src/backoffice/_config/__init__.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
id_parts
¤
describes a file holding all parts to create resource ids
Classes:
-
IdParts–parts to create resource ids
-
IdPartsEntry–parts to create resource ids for a specific resource type
IdParts
pydantic-model
¤
Bases: ConfigNode
parts to create resource ids
__getitem__
¤
__getitem__(type_: str) -> IdPartsEntry
Source code in src/backoffice/_config/id_parts.py
68 69 70 71 72 73 74 75 76 77 78 | |
get_icon
¤
get_icon(resource_id: str)
Source code in src/backoffice/_config/id_parts.py
60 61 62 63 64 65 66 | |
IdPartsEntry
pydantic-model
¤
Bases: ConfigNode
parts to create resource ids for a specific resource type
get_noun
¤
get_noun(resource_id: str)
Source code in src/backoffice/_config/id_parts.py
24 25 26 27 28 29 30 31 32 33 34 35 36 | |
validate_concept_id
¤
validate_concept_id(resource_id: str)
Source code in src/backoffice/_config/id_parts.py
38 39 40 41 42 43 44 45 46 47 48 49 50 | |
_requests_utils
¤
_settings
¤
Classes:
-
Settings–
Attributes:
-
settings–
Settings
¤
Bases: BaseSettings
Methods:
Attributes:
-
collection_config(Annotated[Union[HttpUrl, Path], Field(union_mode=left_to_right)]) –collection config
-
http_timeout(int) –Timeout for HTTP requests in seconds
-
hypha_api_token(SecretStr) – -
hypha_base_url(str) – -
model_config– -
summaries(Path) – -
tools(Sequence[str]) –
collection_config
class-attribute
instance-attribute
¤
collection_config: Annotated[
Union[HttpUrl, Path], Field(union_mode=left_to_right)
] = parent / "../../bioimageio_collection_config.json"
collection config
http_timeout
class-attribute
instance-attribute
¤
http_timeout: int = 30
Timeout for HTTP requests in seconds
model_config
class-attribute
instance-attribute
¤
model_config = SettingsConfigDict(
env_file=".env", env_file_encoding="utf-8"
)
tools
class-attribute
instance-attribute
¤
tools: Sequence[str] = (
"biapy",
"bioimageio.core",
"careamics",
"ilastik",
)
get_hypha_headers
¤
get_hypha_headers()
Source code in src/backoffice/_settings.py
19 20 21 22 23 | |
_summarize
¤
Functions:
summarize_reports
¤
summarize_reports()
Source code in src/backoffice/_summarize.py
26 27 28 29 30 | |
check_compatibility
¤
check compatibility of tools against resources in the index.json
Functions:
-
check_tool_compatibility–helper to implement tool compatibility checks
Attributes:
-
ItemId– -
ItemVersion– -
Sha256– -
Url–
check_tool_compatibility
¤
check_tool_compatibility(
tool_name: str,
tool_version: str,
*,
index_path: Path = Path("index.json"),
check_tool_compatibility_impl: Callable[
[ItemId, ItemVersion, Url, Sha256],
ToolCompatibilityReport
| ToolCompatibilityReportDict,
],
applicable_types: set[str],
id_startswith: str = "",
)
helper to implement tool compatibility checks
Parameters:
-
(tool_name¤str) –name of the tool (without version), e.g. "ilastik"
-
(tool_version¤str) –version of the tool, e.g. "1.4"
-
(index_path¤Path, default:Path('index.json')) –Path to the
index.jsonfile. -
(check_tool_compatibility_impl¤Callable[[ItemId, ItemVersion, Url, Sha256], ToolCompatibilityReport | ToolCompatibilityReportDict]) –Function accepting two positional arguments: URL to an rdf.yaml, SHA-256 of that rdf.yaml. And returning a compatibility report.
-
(applicable_types¤set[str]) –Set of resource types check_tool_compatibility_impl is applicable to.
Source code in src/backoffice/check_compatibility.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |
compatibility
¤
data models for compatibility reports
Classes:
-
Badge– -
CompatibilityScores– -
CompatibilitySummary– -
InitialSummary– -
Node–Base data model with common config
-
ToolCompatibilityReport–Used to report on the compatibility of resource description
-
ToolReportDetails–
Attributes:
PARTNER_TOOL_NAMES
module-attribute
¤
PARTNER_TOOL_NAMES = (
"ilastik",
"deepimagej",
"icy",
"biapy",
"careamics",
)
PartnerToolName
module-attribute
¤
PartnerToolName = Literal[
"ilastik", "deepimagej", "icy", "biapy", "careamics"
]
Badge
pydantic-model
¤
Bases: Node
Show JSON schema:
{
"properties": {
"icon": {
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"title": "Icon",
"type": "string"
},
"label": {
"title": "Label",
"type": "string"
},
"url": {
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"title": "Url",
"type": "string"
}
},
"required": [
"icon",
"label",
"url"
],
"title": "Badge",
"type": "object"
}
Fields:
CompatibilityScores
pydantic-model
¤
Bases: Node
Show JSON schema:
{
"properties": {
"tool_compatibility_version_specific": {
"additionalProperties": {
"maximum": 1.0,
"minimum": 0,
"type": "number"
},
"title": "Tool Compatibility Version Specific",
"type": "object"
},
"metadata_completeness": {
"default": 0.0,
"maximum": 1.0,
"minimum": 0,
"title": "Metadata Completeness",
"type": "number"
},
"metadata_format": {
"default": 0.0,
"maximum": 1.0,
"minimum": 0,
"title": "Metadata Format",
"type": "number"
}
},
"required": [
"tool_compatibility_version_specific"
],
"title": "CompatibilityScores",
"type": "object"
}
Fields:
-
tool_compatibility_version_specific(Mapping[ToolNameVersioned, Annotated[float, Interval(ge=0, le=1.0)]]) -
metadata_completeness(Annotated[float, Interval(ge=0, le=1.0)]) -
metadata_format(Annotated[float, Interval(ge=0, le=1.0)])
metadata_completeness
pydantic-field
¤
metadata_completeness: Annotated[
float, Interval(ge=0, le=1.0)
] = 0.0
Score for metadata completeness.
A measure of how many optional fields in the resource RDF are filled out.
metadata_format
pydantic-field
¤
metadata_format: Annotated[
float, Interval(ge=0, le=1.0)
] = 0.0
Score for metadata formatting.
- 1.0: resource RDF conforms to the latest spec version
- 0.5: resource RDF conforms to an older spec version
- 0.0: resource RDF does not conform to any known spec version
overall_compatibility
property
¤
overall_compatibility: Annotated[
float, Interval(ge=0, le=1.0)
]
Weighted, overall score between 0 and 1. Note: The scoring scheme is subject to change in the future.
overall_partner_tool_compatibility
property
¤
overall_partner_tool_compatibility: Annotated[
float, Interval(ge=0, le=1.0)
]
Overall partner tool compatibility score. Note: - Currently implemented as: Average of the top 3 partner tool compatibility scores. - Implementation is subject to change in the future.
tool_compatibility
property
¤
tool_compatibility: Mapping[
ToolName, Annotated[float, Interval(ge=0, le=1.0)]
]
Aggregated tool compatibility score
tool_compatibility_version_specific
pydantic-field
¤
tool_compatibility_version_specific: Mapping[
ToolNameVersioned,
Annotated[float, Interval(ge=0, le=1.0)],
]
CompatibilitySummary
pydantic-model
¤
Bases: InitialSummary
Show JSON schema:
{
"$defs": {
"Badge": {
"properties": {
"icon": {
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"title": "Icon",
"type": "string"
},
"label": {
"title": "Label",
"type": "string"
},
"url": {
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"title": "Url",
"type": "string"
}
},
"required": [
"icon",
"label",
"url"
],
"title": "Badge",
"type": "object"
},
"CompatibilityScores": {
"properties": {
"tool_compatibility_version_specific": {
"additionalProperties": {
"maximum": 1.0,
"minimum": 0,
"type": "number"
},
"title": "Tool Compatibility Version Specific",
"type": "object"
},
"metadata_completeness": {
"default": 0.0,
"maximum": 1.0,
"minimum": 0,
"title": "Metadata Completeness",
"type": "number"
},
"metadata_format": {
"default": 0.0,
"maximum": 1.0,
"minimum": 0,
"title": "Metadata Format",
"type": "number"
}
},
"required": [
"tool_compatibility_version_specific"
],
"title": "CompatibilityScores",
"type": "object"
},
"ToolCompatibilityReport": {
"additionalProperties": true,
"description": "Used to report on the compatibility of resource description\nin the bioimageio collection for a version specific tool.",
"properties": {
"tool": {
"enum": [
"bioimageio.core",
"ilastik",
"deepimagej",
"icy",
"biapy",
"careamics"
],
"title": "Tool",
"type": "string"
},
"tool_version": {
"pattern": "^[a-z0-9\\.-]+$",
"title": "Tool Version",
"type": "string"
},
"status": {
"enum": [
"passed",
"failed",
"not-applicable"
],
"title": "Status",
"type": "string"
},
"score": {
"maximum": 1.0,
"minimum": 0,
"title": "Score",
"type": "number"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"details": {
"anyOf": [
{
"$ref": "#/$defs/ToolReportDetails"
},
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Details"
},
"badge": {
"anyOf": [
{
"$ref": "#/$defs/Badge"
},
{
"type": "null"
}
],
"default": null
},
"links": {
"default": [],
"items": {
"type": "string"
},
"title": "Links",
"type": "array"
}
},
"required": [
"tool",
"tool_version",
"status",
"score",
"error"
],
"title": "ToolCompatibilityReport",
"type": "object"
},
"ToolReportDetails": {
"additionalProperties": true,
"properties": {
"traceback": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Traceback"
},
"warnings": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Warnings"
},
"metadata_completeness": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata Completeness"
},
"status": {
"anyOf": [
{
"enum": [
"passed",
"valid-format",
"failed"
],
"type": "string"
},
{}
],
"default": null,
"title": "Status"
}
},
"title": "ToolReportDetails",
"type": "object"
}
},
"properties": {
"rdf_content": {
"additionalProperties": true,
"title": "Rdf Content",
"type": "object"
},
"rdf_yaml_sha256": {
"title": "Rdf Yaml Sha256",
"type": "string"
},
"status": {
"enum": [
"passed",
"failed",
"untested"
],
"title": "Status",
"type": "string"
},
"scores": {
"$ref": "#/$defs/CompatibilityScores"
},
"tests": {
"additionalProperties": {
"additionalProperties": {
"$ref": "#/$defs/ToolCompatibilityReport"
},
"type": "object"
},
"propertyNames": {
"enum": [
"bioimageio.core",
"ilastik",
"deepimagej",
"icy",
"biapy",
"careamics"
]
},
"title": "Tests",
"type": "object"
}
},
"required": [
"rdf_content",
"rdf_yaml_sha256",
"status",
"scores",
"tests"
],
"title": "CompatibilitySummary",
"type": "object"
}
Fields:
-
rdf_content(dict[str, Any]) -
rdf_yaml_sha256(str) -
status(Literal['passed', 'failed', 'untested']) -
scores(CompatibilityScores) -
tests(Mapping[ToolName, Mapping[str, ToolCompatibilityReport]])
rdf_content
pydantic-field
¤
rdf_content: dict[str, Any]
The RDF content of the original rdf.yaml file.
scores
pydantic-field
¤
scores: CompatibilityScores
Scores for compatibility with the bioimage.io community tools.
status
pydantic-field
¤
status: Literal['passed', 'failed', 'untested']
status of the bioimageio.core reproducibility tests.
tests
pydantic-field
¤
tests: Mapping[
ToolName, Mapping[str, ToolCompatibilityReport]
]
Compatibility reports for each tool for each version.
InitialSummary
pydantic-model
¤
Bases: Node
Show JSON schema:
{
"properties": {
"rdf_content": {
"additionalProperties": true,
"title": "Rdf Content",
"type": "object"
},
"rdf_yaml_sha256": {
"title": "Rdf Yaml Sha256",
"type": "string"
},
"status": {
"enum": [
"passed",
"failed",
"untested"
],
"title": "Status",
"type": "string"
}
},
"required": [
"rdf_content",
"rdf_yaml_sha256",
"status"
],
"title": "InitialSummary",
"type": "object"
}
Fields:
-
rdf_content(dict[str, Any]) -
rdf_yaml_sha256(str) -
status(Literal['passed', 'failed', 'untested'])
Node
pydantic-model
¤
Bases: BaseModel
Base data model with common config
Show JSON schema:
{
"description": "Base data model with common config",
"properties": {},
"title": "Node",
"type": "object"
}
ToolCompatibilityReport
pydantic-model
¤
Bases: Node
Used to report on the compatibility of resource description in the bioimageio collection for a version specific tool.
Show JSON schema:
{
"$defs": {
"Badge": {
"properties": {
"icon": {
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"title": "Icon",
"type": "string"
},
"label": {
"title": "Label",
"type": "string"
},
"url": {
"format": "uri",
"maxLength": 2083,
"minLength": 1,
"title": "Url",
"type": "string"
}
},
"required": [
"icon",
"label",
"url"
],
"title": "Badge",
"type": "object"
},
"ToolReportDetails": {
"additionalProperties": true,
"properties": {
"traceback": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Traceback"
},
"warnings": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Warnings"
},
"metadata_completeness": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata Completeness"
},
"status": {
"anyOf": [
{
"enum": [
"passed",
"valid-format",
"failed"
],
"type": "string"
},
{}
],
"default": null,
"title": "Status"
}
},
"title": "ToolReportDetails",
"type": "object"
}
},
"additionalProperties": true,
"description": "Used to report on the compatibility of resource description\nin the bioimageio collection for a version specific tool.",
"properties": {
"tool": {
"enum": [
"bioimageio.core",
"ilastik",
"deepimagej",
"icy",
"biapy",
"careamics"
],
"title": "Tool",
"type": "string"
},
"tool_version": {
"pattern": "^[a-z0-9\\.-]+$",
"title": "Tool Version",
"type": "string"
},
"status": {
"enum": [
"passed",
"failed",
"not-applicable"
],
"title": "Status",
"type": "string"
},
"score": {
"maximum": 1.0,
"minimum": 0,
"title": "Score",
"type": "number"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
},
"details": {
"anyOf": [
{
"$ref": "#/$defs/ToolReportDetails"
},
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Details"
},
"badge": {
"anyOf": [
{
"$ref": "#/$defs/Badge"
},
{
"type": "null"
}
],
"default": null
},
"links": {
"default": [],
"items": {
"type": "string"
},
"title": "Links",
"type": "array"
}
},
"required": [
"tool",
"tool_version",
"status",
"score",
"error"
],
"title": "ToolCompatibilityReport",
"type": "object"
}
Fields:
-
tool(Annotated[ToolName, Field(exclude=True, pattern='^[a-zA-Z0-9-\\.]+$')]) -
tool_version(Annotated[str, Field(exclude=True, pattern='^[a-z0-9\\.-]+$')]) -
status(Literal['passed', 'failed', 'not-applicable']) -
score(Annotated[float, Interval(ge=0, le=1.0)]) -
error(Optional[str]) -
details(Union[ToolReportDetails, str, List[str], None]) -
badge(Optional[Badge]) -
links(Sequence[str])
Validators:
-
_set_default_score
badge
pydantic-field
¤
badge: Optional[Badge] = None
status badge with a resource specific link to the tool
details
pydantic-field
¤
details: Union[ToolReportDetails, str, List[str], None] = (
None
)
details to explain the status
links
pydantic-field
¤
links: Sequence[str] = ()
the checked resource should link these other bioimage.io resources
score
pydantic-field
¤
score: Annotated[float, Interval(ge=0, le=1.0)]
score for the compatibility of this tool with the resource
status
pydantic-field
¤
status: Literal['passed', 'failed', 'not-applicable']
status of this tool for this resource
tool
pydantic-field
¤
tool name
ToolReportDetails
pydantic-model
¤
Bases: Node
Show JSON schema:
{
"additionalProperties": true,
"properties": {
"traceback": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Traceback"
},
"warnings": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Warnings"
},
"metadata_completeness": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata Completeness"
},
"status": {
"anyOf": [
{
"enum": [
"passed",
"valid-format",
"failed"
],
"type": "string"
},
{}
],
"default": null,
"title": "Status"
}
},
"title": "ToolReportDetails",
"type": "object"
}
Fields:
-
traceback(Optional[Sequence[str]]) -
warnings(Optional[Mapping[str, Any]]) -
metadata_completeness(Optional[float]) -
status(Union[Literal['passed', 'valid-format', 'failed'], Any])
compatibility_pure
¤
Pure Python alternative data models for compatibility reports
Usable when installing backoffice without dependencies.
Classes:
BadgeDict
¤
ToolCompatibilityReportDict
¤
Bases: TypedDict
Attributes:
-
badge(Optional[BadgeDict]) –status badge with a resource specific link to the tool
-
details(Any) –details to explain the
status -
error(Optional[str]) –error message if
status=='failed' -
links(Sequence[str]) –the checked resource should link these other bioimage.io resources
-
status(Literal['passed', 'failed', 'not-applicable']) –status of this tool for this resource
-
tool(str) –toolname (including version separated by an underscore)
badge
instance-attribute
¤
badge: Optional[BadgeDict]
status badge with a resource specific link to the tool
links
instance-attribute
¤
links: Sequence[str]
the checked resource should link these other bioimage.io resources
status
instance-attribute
¤
status: Literal['passed', 'failed', 'not-applicable']
status of this tool for this resource
index
¤
Data models and functions for indexing the bioimage.io collection
Classes:
-
Index– -
IndexItem– -
IndexItemVersion– -
Node– -
Response–Response from Hypha list endpoint
-
ResponseItem– -
ResponseItemVersion–
Functions:
-
create_index–Index the bioimage.io collection
-
load_index–
Index
pydantic-model
¤
IndexItemVersion
pydantic-model
¤
Response
pydantic-model
¤
ResponseItemVersion
pydantic-model
¤
create_index
¤
create_index() -> Index
Index the bioimage.io collection
Source code in src/backoffice/index.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | |
utils
¤
utility functions
Functions:
-
get_rdf_content_from_url– -
get_summary–Retrieve the summary for a specific item and version.
Attributes:
-
yaml–
get_rdf_content_from_url
¤
get_rdf_content_from_url(
url: str, sha256: str
) -> dict[str, Any]
Source code in src/backoffice/utils.py
32 33 34 | |
get_summary
¤
get_summary(
item_id: str, version: str
) -> InitialSummary | CompatibilitySummary
Retrieve the summary for a specific item and version.
Source code in src/backoffice/utils.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
utils_pure
¤
utility functions available in backoffice without dependencies
Functions:
-
cached_download–Download a file from the given URL and cache it locally.
-
get_all_tool_report_paths– -
get_log_file– -
get_rdf_content_from_id–Get the RDF file content of a specific item version.
-
get_report_path– -
get_summary_data–Get the summary data of a specific item version.
-
get_summary_file_path– -
get_tool_report_path–Get the path to the report for a specific item version and tool.
-
raise_for_status_discretely–Raises :class:
httpx.HTTPErrorfor 4xx or 5xx responses,
cached_download
¤
cached_download(url: str, sha256: str) -> Path
Download a file from the given URL and cache it locally.
Source code in src/backoffice/utils_pure.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
get_all_tool_report_paths
¤
get_all_tool_report_paths(item_id: str, version: str)
Source code in src/backoffice/utils_pure.py
46 47 48 49 50 | |
get_log_file
¤
get_log_file(item_id: str, version: str) -> Path
Source code in src/backoffice/utils_pure.py
67 68 | |
get_rdf_content_from_id
¤
get_rdf_content_from_id(
item_id: str, version: str
) -> dict[str, Any]
Get the RDF file content of a specific item version.
Source code in src/backoffice/utils_pure.py
87 88 89 90 | |
get_report_path
¤
get_report_path(item_id: str, version: str) -> Path
Source code in src/backoffice/utils_pure.py
19 20 21 22 23 | |
get_summary_data
¤
get_summary_data(
item_id: str, version: str
) -> Optional[dict[str, Any]]
Get the summary data of a specific item version.
Source code in src/backoffice/utils_pure.py
53 54 55 56 57 58 59 60 | |
get_summary_file_path
¤
get_summary_file_path(item_id: str, version: str) -> Path
Source code in src/backoffice/utils_pure.py
63 64 | |
get_tool_report_path
¤
get_tool_report_path(
item_id: str,
version: str,
tool_name: str,
tool_version: str,
)
Get the path to the report for a specific item version and tool.
Source code in src/backoffice/utils_pure.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |
raise_for_status_discretely
¤
raise_for_status_discretely(response: Response)
Raises :class:httpx.HTTPError for 4xx or 5xx responses,
but hides any query and userinfo from url to avoid leaking sensitive data.
Source code in src/backoffice/utils_pure.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |