Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/obelisk/asynchronous/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
from typing_extensions import Self
from numbers import Number

from obelisk.strategies.retry import NoRetryStrategy, RetryStrategy
from obelisk.types import ObeliskKind


DataType = Literal['number', 'number[]', 'json', 'bool', 'string']
"""The possible types of data Obelisk can accept"""
Expand Down Expand Up @@ -180,6 +183,16 @@ class Client(BaseClient):
page_limit: int = 250
"""How many datapoints to request per page in a cursored fetch"""


def __init__(self, client: str, secret: str,
retry_strategy: RetryStrategy = NoRetryStrategy()) -> None:
BaseClient.__init__(
client=client,
secret=secret,
retry_strategy=retry_strategy,
kind=ObeliskKind.CORE
)

async def send(
self,
dataset: str,
Expand Down