-
Notifications
You must be signed in to change notification settings - Fork 2
Frame Streams Basics
Intro
For simplicity, the basics focus on Pythonic usage. Equivalent and alternative structures in other languages will be prototyped in future revisions.
Model
The model is that of "small actors that work well together and are easy to connect". Actors are objects in your programming language of choice; they provide data actively to each other using simple mechanisms.
In Python, the 'generator' mechanic is used to pull data through a chained series of actors. Use of co-routine style is an advanced topic. Asynchronous and threaded operation is supported by
- preferring immutable frames to be closer to "functional programming"
- providing tools in DplKit for bridging between threads, processes, systems, and eventually language/protocol sets
Representation
Elementary frame-streams in Python are represented as iterable sequences of dictionary- or struct-like frames.
Conventions
Actors have attributes described by .meta dictionary
Frames have ['meta'] dictionary
Where choices arise, choose Unidata CF convention