Skip to content

Config

Configuration management for pykabutan.

Usage

import pykabutan as pk

Change settings

pk.config.timeout = 60 pk.config.request_delay = 1.0

Or via config file (~/.pykabutan/config.json)

Config

Configuration for pykabutan.

Settings are process-global: changing them affects every Ticker and search call in the current process.

Attributes:

Name Type Description
timeout int

Request timeout in seconds (default: 30)

request_delay float

Delay between requests in seconds (default: 0.5)

user_agent str

User agent string for HTTP requests

request_delay property writable

Delay between requests in seconds.

timeout property writable

Request timeout in seconds.

user_agent property writable

User agent string for HTTP requests.

reset()

Reset all settings to defaults.