Datasource, my 2nd Hex-Package
After publishing Bucketier, a simple KV store for Elixir as a Hex-package about a month ago, today let me announce Datasource.
Datasource is a side project used in my Raspberry Experiments and as a handler of client-activities in my work-project.
A continues stream of data from any source
The Datasource
is a straightforward module providing one
function next()
which returns the next value from a given source.
Sources can be from simple “endless counters” to “clocks,” “files,” but also sensors and triggers in a Nerves-project.
Datasource also provides a module Datasource.DataStage
which
can be used as GenStage producer, reading data from a Datasource
on demand.