Skip to content

Base Sampler

JijZeptBaseSampler

Parent class for each sampler in JijZept.

This class only provide the constructor. The actual sampling method are implemented by each sampler.

__init__(token=None, url=None, proxy=None, config=None, config_env='default')

Sets token and url.

If you do not set any arguments, JijZept configuration file is used. If you set the url or token here, that will be used as the priority setting for connecting to the API. See JijZeptClient for details.

Parameters:

Name Type Description Default
token str | None

Token string. Defaults to None.

None
url str | None

API URL. Defaults to None.

None
proxy str | None

Proxy URL. Defaults to None.

None
config str | None

Config file path. Defaults to None.

None
config_env str

configure environment name. Defaults to 'default'.

'default'

Raises:

Type Description
TypeError

token, url, or config is not str.


Last update: 2023年3月17日