Skip to content

Commit f3c203d

Browse files
committed
pangea-sdk: clarify what environment affects
1 parent 2bcaa7f commit f3c203d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### Changed
11+
12+
- Clarified what `PangeaConfig.environment` affects.
13+
1014
## 5.4.0 - 2025-01-22
1115

1216
### Removed

packages/pangea-sdk/pangea/config.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Author: Pangea Cyber Corporation
33

44
from dataclasses import dataclass
5-
from typing import Optional
5+
from typing import Literal, Optional
66

77

88
@dataclass
@@ -16,10 +16,12 @@ class PangeaConfig:
1616
scheme (http:// or https://), subdomain, domain and port.
1717
"""
1818

19-
environment: str = "production"
19+
environment: Literal["production", "local"] = "production"
2020
"""
21-
Used to generate service url.
22-
It should be only 'production' or 'local' in cases of particular services that can run locally as Redact.
21+
Pangea environment, used to construct service URLs.
22+
23+
If set to "local", then `domain` must be the full host (i.e., hostname and
24+
port) for the Pangea service that this `PangeaConfig` will be used for.
2325
"""
2426

2527
config_id: Optional[str] = None

0 commit comments

Comments
 (0)