-
Notifications
You must be signed in to change notification settings - Fork 0
DATA-56 Adapt splight-lib-python to data transition API #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
a645692
adapt remote client
lautarolecumberry 192aef5
make number.get work
lautarolecumberry 9cbf1c5
adapt async_get, get_dataframe
lautarolecumberry 8bb3839
adapt latest
lautarolecumberry 0950777
adapt save, async save, save dataframe
lautarolecumberry 3a7a49d
change collection name to scehma name, rename to functions
lautarolecumberry 8a34dd3
clean models datalake
lautarolecumberry 7686143
order datalake v4 generic, models
lautarolecumberry 85f70a3
bump version
lautarolecumberry 6d51a7f
fix dev version
lautarolecumberry 9d0f4b6
remove routine evaluation v4
lautarolecumberry 3b77eb1
add latest default
lautarolecumberry 5c9abe8
remove old models
gbaudino-splight e90f093
move models into the splight_lib_models and export that models
gbaudino-splight 1733141
use TransitionSchemaName instead of str
gbaudino-splight 95a7eca
create apply and async apply in the requests
gbaudino-splight 431dbb4
export datalake models and delete internal models from exports
gbaudino-splight f921488
bump dev version and lock
gbaudino-splight 7ce2f40
remove unused import and use dict
gbaudino-splight 264fd5f
remove TransitionSchemaName and use Literals
gbaudino-splight bd063ba
add new datav4 write models
gbaudino-splight 5879144
adapt __to_write_request to the new write models?
gbaudino-splight d8f9ff8
fix Value TypeAlias
gbaudino-splight 28854c6
some minimal fixes
gbaudino-splight b8e8719
dump to json mode to make it serializable
gbaudino-splight de35e59
remove Records common class, fix save and send_documents methods to u…
gbaudino-splight e0a7d7c
rename docs to data_points
gbaudino-splight 46eb9cc
Update splight_lib/client/datalake/v4/generic.py
gbaudino-splight 28c096b
final version
gbaudino-splight a17ab1c
Update filters to use solution_keys in SolutionOutputDocument
gbaudino-splight cb33b38
lock, remove duplicated export, fix to use solution_keys instead of f…
gbaudino-splight 32d468a
new dev version
gbaudino-splight 48bafaf
remove forced sync transport for async client
gbaudino-splight 33d4375
final version
gbaudino-splight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [project] | ||
| name = "splight-lib" | ||
| version = "5.23.3" | ||
| version = "5.24.0" | ||
| description = "Splight Python Library" | ||
| authors = [ | ||
| {name = "Splight Dev",email = "[email protected]"} | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| from datetime import datetime | ||
| from enum import Enum | ||
| from typing import TypeAlias | ||
|
|
||
| Timestamp: TypeAlias = datetime | ||
| # Order in types is important. When parsing if float is first, | ||
| # bools will be interpreted as floats (1.0, 0.0) instead of bools. | ||
| Value: TypeAlias = bool | str | float | ||
|
|
||
|
|
||
| class AggregationFunction(str, Enum): | ||
| SUM = "sum" | ||
| AVG = "avg" | ||
| MIN = "min" | ||
| MAX = "max" | ||
| COUNT = "count" | ||
|
gbaudino-splight marked this conversation as resolved.
|
||
| LAST = "last" | ||
|
|
||
|
|
||
| class TimeUnit(str, Enum): | ||
| SECOND = "second" | ||
| MINUTE = "minute" | ||
| HOUR = "hour" | ||
| DAY = "day" | ||
|
|
||
|
|
||
| class TransitionSchemaName(str, Enum): | ||
| DEFAULT = "default" | ||
| SOLUTIONS = "solutions" | ||
|
|
||
|
|
||
| class TransitionSort(int, Enum): | ||
| ASC = 1 | ||
| DESC = -1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.