Skip to content

a minimal python lightstreamer client - not yet suitable for any purpose

License

Notifications You must be signed in to change notification settings

dannyclark/py-lightstreamer-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-lightstreamer-lite

A minimal python lightstreamer client, NOT YET SUITABLE FOR ANY PURPOSE because:

  • it doesn't reconnect when lightstreamer finishes a connection or ends a session: this is fairly fundamental since lightstreamer can only keep a connection open as long as the content-length allows (and may or may not close connections for other reasons)
  • it only implements a small part of the lightstreamer protocol
  • it prints to stdout whenever it feels like it
  • it hasn't been tested very much and doesn't have unit tests

On the plus side:

  • it is fairly minimal, e.g. LS_* parameters are simply passed through
  • it can be used with different concurrency models: see examples for running multiple sessions with gevent, multiprocessing or threading

To get started:

  • please see the examples directory
  • create a session, create subscriptions in a callback (so lightstreamerlite doesn't attempt to subscribe before it has a session id)
  • run session.run_forever() if all you need is a single session and all your processing can be event-driven
  • look at the concurrency options (I recommend gevent) if you need more than one session, or for any processing which isn't entirely event-driven

The lightstreamer "text mode protocol" which is (partially) implemented in lightstreamerlite is described in full [here] (http://www.lightstreamer.com/distros/Lightstreamer_Allegro-Presto-Vivace_4_1_Duomo_20120809/Lightstreamer/DOCS-SDKs/sdk_client_generic/doc/Network%20Protocol%20Tutorial.pdf).

About

a minimal python lightstreamer client - not yet suitable for any purpose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages