-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (26 loc) · 1008 Bytes
/
config.py
File metadata and controls
30 lines (26 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from typing import Optional
class Config:
"""
:class:`.FelderaClient`'s credentials and configuration parameters
"""
def __init__(
self,
url: str,
api_key: Optional[str] = None,
version: Optional[str] = None,
timeout: Optional[float] = None,
requests_verify: bool = True,
) -> None:
"""
:param url: The url to the Feldera API (ex: https://try.feldera.com)
:param api_key: The optional API key to access Feldera
:param version: The version of the API to use
:param timeout: The timeout for the HTTP requests
:param requests_verify: The `verify` parameter passed to the requests
library. `True` by default.
"""
self.url: str = url
self.api_key: Optional[str] = api_key
self.version: Optional[str] = version or "v0"
self.timeout: Optional[float] = timeout
self.requests_verify: bool = requests_verify