Shimoku docs
Search…
Environments
There are two environments in Shimoku for developers: production and staging.

1. Production environment

To use the API in the production environment invoke the SDK object specifying it. Note that the token for production and staging diverge:
from os import getenv
from shimoku_api_python import Shimoku
access_token = getenv('SHIMOKU_TOKEN_PROD') # env var with your token
universe_id: str = getenv('UNIVERSE_ID') # your universe UUID
shimoku = Shimoku.Client(
config={'access_token': access_token},
universe_id=universe_id,
environment='production',
)

2. Staging environment

To use the API in the staging environment invoke the SDK object specifying it. Note that the token for production and staging diverge. Note that by default the SDK connects to the staging environment.
from os import getenv
from shimoku_api_python import Shimoku
access_token = getenv('SHIMOKU_TOKEN_STAGING') # env var with your token
universe_id: str = getenv('UNIVERSE_ID') # your universe UUID
shimoku = Shimoku.Client(
config={'access_token': access_token},
universe_id=universe_id,
# environment='staging', # it is unnecessary because by default the SDK connects to staging
)

3. Development environment

To use the API in the development environment is locked for external users, since it is where Shimoku team tries new features before to launch them. So you could try the following but it won’t connect:
from os import getenv
from shimoku_api_python import Shimoku
access_token_dev = getenv('SHIMOKU_TOKEN_DEV') # env var with your token
universe_id: str = getenv('UNIVERSE_ID') # your universe UUID
shimoku = Shimoku.Client(
config={'access_token': access_token},
universe_id=universe_id,
environment='develop',
)
Copy link
On this page
1. Production environment
2. Staging environment
3. Development environment