Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
construct a pull-stream for reading from a writable source, can read old records, new (live) records, or both.
construct a pull-stream for reading from a writable source, can read old records, new (live) records, or both.
to be used by pull-level,
multiblobs, and
secure-scuttlebutt.
pull-live
is generic, and easy to adapt to a new case.
createLive takes two functions, createSource
(which returns a source
stream of the stored data) and createLive
which returns a stream
of the live data. A function that takes opts
and is returned.
if opts.live
is set to true, the stream will only read the old data
(from createSource
) and then the new data (from createLive
) with
one item {sync: true}
to mark when the old data has finished.
If opts.sync === false
then the sync item will dropped.
if opts.live
is true (default: false
) the live data is included.
if opts.old
is false (default: true
) the output will not include
the old data. If live
and old
are both false, an error is thrown.
the only valid options are {live: true, old: false}
{live: false, old: true}
and {live: true, old: true}
I recomment using pull-notify
to implement createLive
.
var MyLiveStream = createLive(createSource, createLive)
pull(MyLiveStrea({live:..., old:...}),...)
MIT
FAQs
construct a pull-stream for reading from a writable source, can read old records, new (live) records, or both.
The npm package pull-live receives a total of 26,168 weekly downloads. As such, pull-live popularity was classified as popular.
We found that pull-live demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.