Environments Reference¶
Environment configuration for the SDK.
Environment Info¶
EnvironmentInfo
dataclass
¶
Functions¶
get_environment
¶
Get the environment configuration by name.
| PARAMETER | DESCRIPTION |
|---|---|
name
|
The name of the environment.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
EnvironmentInfo
|
The environment configuration.
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
ValueError
|
If the environment name is not defined. |
Source code in payments_py/environments.py
Constants¶
Environments¶
Environments
module-attribute
¶
Environments = {
"staging_sandbox": EnvironmentInfo(
frontend="https://nevermined.dev",
backend="https://api.sandbox.nevermined.dev",
proxy="https://proxy.sandbox.nevermined.dev",
helicone_url="https://helicone.nevermined.dev",
),
"staging_live": EnvironmentInfo(
frontend="https://nevermined.dev",
backend="https://api.live.nevermined.dev",
proxy="https://proxy.live.nevermined.dev",
helicone_url="https://helicone.nevermined.dev",
),
"sandbox": EnvironmentInfo(
frontend="https://nevermined.app",
backend="https://api.sandbox.nevermined.app",
proxy="https://proxy.sandbox.nevermined.app",
helicone_url="https://helicone.nevermined.dev",
),
"live": EnvironmentInfo(
frontend="https://nevermined.app",
backend="https://api.live.nevermined.app",
proxy="https://proxy.live.nevermined.app",
helicone_url="https://helicone.nevermined.dev",
),
"custom": EnvironmentInfo(
frontend=getenv(
"NVM_FRONTEND_URL", "http://localhost:3000"
),
backend=getenv(
"NVM_BACKEND_URL", "http://localhost:3001"
),
proxy=getenv(
"NVM_PROXY_URL", "https://localhost:443"
),
helicone_url=getenv(
"HELICONE_URL", "http://localhost:8585"
),
),
}