SDK for building Corva DevCenter Python apps.
Project description
corva-sdk
corva-sdk is a framework for building Corva DevCenter Python apps.
Help
See documentation for more details.
Install
Install using pip install corva-sdk
.
Contributing
For guidance on setting up a development environment see Development - Contributing.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[1.2.0] - 2021-08-09
Added
- Subtypes of scheduled event:
ScheduledDataTimeEvent
,ScheduledDepthEvent
andScheduledNaturalTimeEvent
Deprecated
ScheduledEvent
usage
[1.1.0] - 2021-07-19
Added
- Ability to pass custom logging handlers
to app decorators using
handler
keyword argument. - Natural time event (single dict) parsing in
scheduled
apps.
Fixed
- Multiple logging of the same exception in stream and scheduled apps.
- Log message truncation for low
LOG_THRESHOLD_MESSAGE_SIZE
values.
[1.0.3] - 2021-06-27
[1.0.2] - 2021-06-27
Added
- Logging of internal errors.
[1.0.1] - 2021-04-30
Fixed
- AWS Lambda context parsing.
[1.0.0] - 2021-04-29
Added
corva.stream
,corva.scheduled
andcorva.task
app decorators. See readme for usage examples.ScheduledEvent.company_id
field.
Removed
corva.Corva
class.
[0.0.18] - 2021-04-16
Changed
- Events are allowed to have extra fields.
[0.0.17] - 2021-04-15
Added
corva.Logger
object, that should be used for app logging.LOG_THRESHOLD_MESSAGE_SIZE
andLOG_THRESHOLD_MESSAGE_COUNT
env variables, that should be used to configure logging.
[0.0.16] - 2021-04-02
Added
app_runner
fixture for testing apps.
Changed
StreamEvent
was split intoStreamTimeEvent
andStreamDepthEvent
, which have correspondingStreamTimeRecord
andStreamDepthRecord
records.- Deleted all unsued fields from
ScheduledEvent
,TaskEvent
,StreamTimeEvent
andStreamDepthEvent
.
Removed
filter_mode
parameter fromCorva.stream
. Filtering is now automatic.
[0.0.15] - 2021-03-23
Added
Corva.task
decorator for task apps.
[0.0.14] - 2021-03-12
Added
Testing
section toREADME.md
.Api.get_dataset
method.
Changed
ScheduledEvent.schedule_end
field is now optional.ScheduledEvent.schedule_end
andScheduledEvent.schedule_start
field types fromdatetime
toint
.
[0.0.13] - 2021-03-04
Added
- Tools for testing apps.
[0.0.12] - 2021-02-11
Fixed
TaskEvent
queue event parsing.
###Changed
StreamEvent
must have at least one record.StreamEvent
andScheduledEvent
:- Added descriptions to fields.
- Simplified event structures.
[0.0.11] - 2021-02-10
Fixed
ScheduledEvent
queue event parsing.
[0.0.10] - 2021-02-05
Changed
Api
class:- Deleted retries.
- Responses do not use
raise_for_status
anymore. - Lowered
default_timeout
to 30 seconds. - Fixed url build exceptions on Windows.
[0.0.9] - 2021-02-05
Removed
- Obsolete
StreamEvent
fields:app_version
. - Obsolete
ScheduledEvent
fields:app_version
.
[0.0.8] - 2021-02-05
Fixed
api_key
extraction fromcontext
.
[0.0.7] - 2021-02-04
Fixed
StreamEvent
queue event parsing.
[0.0.5] - 2021-02-04
Added
- Required
context
parameter toCorva
. - Documentation in
README.md
.
[0.0.4] - 2021-01-20
Added
Corva
class, which containsstream
andscheduled
decorators for stream and scheduled apps.
Removed
StreamApp
andScheduledApp
classes.
[0.0.3] - 2020-12-15
Fixed
- Deployment to PyPI.
[0.0.2] - 2020-12-15
###Added
StreamApp
to build stream apps.ScheduledApp
to build scheduled apps.TaskApp
to build task apps.Api
class to access Platform and Data Corva APIs.Cache
class to share data between app invokes.- Event classes:
StreamEvent
,ScheduledEvent
andTaskEvent
.
[Unreleased] https://github.com/corva-ai/python-sdk/compare/v1.2.0...master [1.2.0] https://github.com/corva-ai/python-sdk/compare/v1.1.0...v1.2.0 [1.1.0] https://github.com/corva-ai/python-sdk/compare/v1.0.3...v1.1.0 [1.0.3] https://github.com/corva-ai/python-sdk/compare/v1.0.2...v1.0.3 [1.0.2] https://github.com/corva-ai/python-sdk/compare/v1.0.1...v1.0.2 [1.0.1]: https://github.com/corva-ai/python-sdk/compare/v1.0.0...v1.0.1 [1.0.0]: https://github.com/corva-ai/python-sdk/compare/v0.0.18...v1.0.0 [0.0.18]: https://github.com/corva-ai/python-sdk/compare/v0.0.17...v0.0.18 [0.0.17]: https://github.com/corva-ai/python-sdk/compare/v0.0.16...v0.0.17 [0.0.16]: https://github.com/corva-ai/python-sdk/compare/v0.0.15...v0.0.16 [0.0.15]: https://github.com/corva-ai/python-sdk/compare/v0.0.14...v0.0.15 [0.0.14]: https://github.com/corva-ai/python-sdk/compare/v0.0.13...v0.0.14 [0.0.13]: https://github.com/corva-ai/python-sdk/compare/v0.0.12...v0.0.13 [0.0.12]: https://github.com/corva-ai/python-sdk/compare/v0.0.11...v0.0.12 [0.0.11]: https://github.com/corva-ai/python-sdk/compare/v0.0.10...v0.0.11 [0.0.10]: https://github.com/corva-ai/python-sdk/compare/v0.0.9...v0.0.10 [0.0.9]: https://github.com/corva-ai/python-sdk/compare/v0.0.8...v0.0.9 [0.0.8]: https://github.com/corva-ai/python-sdk/compare/v0.0.7...v0.0.8 [0.0.7]: https://github.com/corva-ai/python-sdk/compare/v0.0.5...v0.0.7 [0.0.5]: https://github.com/corva-ai/python-sdk/compare/v0.0.4...v0.0.5 [0.0.4]: https://github.com/corva-ai/python-sdk/compare/v0.0.3...v0.0.4 [0.0.3]: https://github.com/corva-ai/python-sdk/compare/v0.0.2...v0.0.3 [0.0.2]: https://github.com/corva-ai/python-sdk/releases/tag/v0.0.2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for corva_sdk-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be8712f27e7d42401fae165c20b7bd81ff03f66bdc9c52d131c5cc0f2cd5acb1 |
|
MD5 | ded035de2109932000501c2fdf45e268 |
|
BLAKE2b-256 | 26f75c8a464162ee17022c38bd729a294a7d474b2c96be9df72c567b8c1f2a36 |