LaunchDarkly SSE Client
Project description
LaunchDarkly SSE Client for Python
Overview
The launchdarkly/python-eventsource
package allows Python developers to consume Server-Sent-Events (SSE) from a remote API. The SSE specification is defined here: https://html.spec.whatwg.org/multipage/server-sent-events.html
This package's primary purpose is to support the LaunchDarkly SDK for Python, but it can be used independently. In its simplest configuration, it emulates the behavior of the EventSource API as defined in the SSE specification, with the addition of exponential backoff behavior for retries. However, it also includes optional features used by LaunchDarkly SDKs that are not part of the core specification, such as:
- Customizing the backoff/jitter behavior.
- Setting read timeouts, custom headers, and other HTTP request properties.
- Specifying that connections should be retried under circumstances where the standard EventSource behavior would not retry them, such as if the server returns an HTTP error status.
This is a synchronous implementation which blocks the caller's thread when reading events or reconnecting. By default, it uses urllib3
to make HTTP requests, but it can be configured to read any input stream.
Supported Python versions
This version of the package is compatible with Python 3.8 and higher.
Contributing
We encourage pull requests and other contributions from the community. Check out our contributing guidelines for instructions on how to contribute to this SDK.
About LaunchDarkly
- LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
- Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
- Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
- Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
- Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
- LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read our documentation for a complete list.
- Explore LaunchDarkly
- launchdarkly.com for more information
- docs.launchdarkly.com for our documentation and SDK reference guides
- apidocs.launchdarkly.com for our API documentation
- blog.launchdarkly.com for the latest product updates
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file launchdarkly_eventsource-1.2.0.tar.gz
.
File metadata
- Download URL: launchdarkly_eventsource-1.2.0.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cb3301ec0daeb5e17eaa37b3b65f6660fab851b317e69271185ef2fb42c2fde |
|
MD5 | 521cac919e503efa1daf7d6eb6b51ba3 |
|
BLAKE2b-256 | 7dd2590ab7714139f0b48b5ebf8c84ff5ad09d5fef50aaa3d188f540d586c974 |
File details
Details for the file launchdarkly_eventsource-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: launchdarkly_eventsource-1.2.0-py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b5ec7149e2ad9995be22ad5361deb480c229701e6b0cc799e94aa14f067b77b |
|
MD5 | 6fe293443564a8ed7f4464395f9c486a |
|
BLAKE2b-256 | 6388629d4c76a38b11a722d9c900b71a93ee9d6896de87e212e232d5814c591c |