forked from feldera/feldera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
26 lines (22 loc) · 795 Bytes
/
config.py
File metadata and controls
26 lines (22 loc) · 795 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
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,
) -> 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
"""
self.url: str = url
self.api_key: Optional[str] = api_key
self.version: Optional[str] = version or "v0"
self.timeout: Optional[float] = timeout