Skip to content

Commit

Permalink
add newer source options
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Aug 25, 2023
1 parent 7c74f64 commit 8b754c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class SourceOptions:
skip_blank_lines: bool
delimiter: str
max_decimals: int
jmespath: str
sheet: str
range: str
columns: dict

def __init__(self, **kwargs) -> None:
self.trim_space = kwargs.get('trim_space')
Expand All @@ -42,6 +46,10 @@ def __init__(self, **kwargs) -> None:
self.skip_blank_lines = kwargs.get('skip_blank_lines')
self.delimiter = kwargs.get('delimiter')
self.max_decimals = kwargs.get('max_decimals')
self.jmespath = kwargs.get('jmespath')
self.sheet = kwargs.get('sheet')
self.range = kwargs.get('range')
self.columns = kwargs.get('columns')

class Source:
conn: str
Expand Down

0 comments on commit 8b754c5

Please sign in to comment.