Skip to main content

A convenient way to work with information streaming from websockets, built on top of the Python iterator protocol.

When subscribing to a stream of qualified data I am usually interested in either the latest value i.e. the one I want when I am ready to do something with it or all the values since I last checked.

whereismysock also has a most subscriber which is all with an upper bound to the number of messages it keeps in memory (deleting the eldest first).

>>> from whereismysock import latest
>>> usdjpy = latest("ws://toplevel/USDJPY")
>>> next(usdjpy)
...
>>> from whereismysock import all
>>> nk225 = all("ws://trades/NK225")
>>> next(nk225)
...

I like it because it makes “synchronising” different source of information super easy.

>>> hhi = latest("ws://toplevel/HHI")
>>> hsi = latest("ws://toplevel/HSI")
>>> next(zip(hhi, hsi))
...

Metadata

Release files for whereismysock 2019.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whereismysock 2019.6.0
File Size Uploaded Provenance Actions
whereismysock-2019.6.0.tar.gz 2.5 kB Without provenance Details for whereismysock-2019.6.0.tar.gz

Release files / whereismysock-2019.6.0.tar.gz

Download URL whereismysock-2019.6.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8cafb54343eef1755ae874600eb9a16dde808bcf1dd4545ec03f8beb75f27e58
BLAKE2b-256 checksum
How to use checksums
789c8657e8a4cb8863f0e8213a9e779ca3ca51a413563aa0daaee8345d4dba61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for whereismysock 2019.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2019.6.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page