|
1 | 1 | # Split Python SDK |
| 2 | +[](https://api.travis-ci.com/splitio/python-client) |
2 | 3 |
|
3 | | -This SDK is designed to work with [Split](https://www.split.io), the platform for controlled rollouts, serving features to your users via the Split feature flag to manage your complete customer experience. |
| 4 | +## Overview |
| 5 | +This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience. |
4 | 6 |
|
5 | | -### Quick setup |
| 7 | +[](https://twitter.com/intent/follow?screen_name=splitsoftware) |
6 | 8 |
|
7 | | -For specific instructions on how to set up the Split SDK refer to our [Detailed-README](Detailed-README.md) or our [official SDK documentation](http://docs.split.io/docs/sdk-overview). |
| 9 | +## Compatibility |
| 10 | +This SDK is compatible with Python 2.7 and higher. |
8 | 11 |
|
9 | | -### Commitment to Quality: |
| 12 | +## Getting started |
| 13 | +Below is a simple example that describes the instantiation and most basic usage of our SDK: |
10 | 14 |
|
11 | | -Split’s SDKs are in active development and are constantly tested for quality. Unit tests are developed for each SDK based on the unique needs of that language, and integration tests, load and performance tests, and behavior consistency tests are running 24/7 via automated bots. In addition, monitoring instrumentation ensures that these SDKs behave under the expected parameters of memory, CPU, and I/O. |
| 15 | +Run `pip install splitio_client` |
12 | 16 |
|
13 | | -### About Split: |
14 | 17 |
|
15 | | -Split is the leading platform for feature experimentation, empowering businesses of all sizes to make smarter product decisions. Companies like Vevo, Twilio, and LendingTree rely on Split to securely release new features, target them to customers, and measure the impact of features on their customer experience metrics. Founded in 2015, Split's team comes from some of the most innovative enterprises in Silicon Valley, including Google, LinkedIn, Salesforce and Databricks. Split is based in Redwood City, California and backed by Accel Partners and Lightspeed Venture Partners. |
| 18 | +```python |
| 19 | +from splitio import get_factory |
| 20 | +from splitio.exceptions import TimeoutException |
| 21 | +factory = get_factory('YOUR_SDK_TYPE_API_KEY', config=config) |
| 22 | +try: |
| 23 | + factory.block_until_ready(5) # wait up to 5 seconds |
| 24 | + split = factory.client() |
| 25 | + print(split.get_treatment('CUSTOMER_ID', 'SPLIT_NAME')) |
| 26 | +except TimeoutException: |
| 27 | + # Now the user can choose whether to abort the whole execution, or just keep going |
| 28 | + # without a ready client, which if configured properly, should become ready at some point. |
| 29 | + pass |
| 30 | +``` |
16 | 31 |
|
17 | | -Our platform is a unified solution for continuous delivery and full-stack experimentation. Split unifies DevOps and product management, helping agile engineering and product teams accelerate the pace of product delivery and make data-driven decisions, through our robust feature flagging and extensive experimentation capabilities. With Split, organizations can now accelerate time to value, mitigate risk, and drive better outcomes, all in a unified platform. |
| 32 | +Please refer to [our official docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)) to learn about all the functionality provided by our SDK and the configuration options available for tailoring it to your current application setup. |
18 | 33 |
|
19 | | -To learn more about Split, contact hello@split.io, or start a 14-day trial at https://www.split.io/signup/. |
| 34 | +## Submitting issues |
| 35 | +The Split team monitors all issues submitted to this [issue tracker](https://github.com/splitio/python-client/issues). We encourage you to use this issue tracker to submit any bug reports, feedback, and feature enhancements. We'll do our best to respond in a timely manner. |
20 | 36 |
|
21 | | -Split has built and maintains a SDKs for: |
| 37 | +## Contributing |
| 38 | +Please see [Contributors Guide](CONTRIBUTORS-GUIDE.md) to find all you need to submit a Pull Request (PR). |
22 | 39 |
|
23 | | -* Java [Github](https://github.com/splitio/java-client) [Docs](http://docs.split.io/docs/java-sdk-guide) |
24 | | -* Javascript [Github](https://github.com/splitio/javascript-client) [Docs](http://docs.split.io/docs/javascript-sdk-overview) |
25 | | -* Node [Github](https://github.com/splitio/javascript-client) [Docs](http://docs.split.io/docs/nodejs-sdk-overview) |
26 | | -* .NET [Github](https://github.com/splitio/.net-client) [Docs](http://docs.split.io/docs/net-sdk-overview) |
27 | | -* Ruby [Github](https://github.com/splitio/ruby-client) [Docs](http://docs.split.io/docs/ruby-sdk-overview) |
28 | | -* PHP [Github](https://github.com/splitio/php-client) [Docs](http://docs.split.io/docs/php-sdk-overview) |
29 | | -* Python [Github](https://github.com/splitio/python-client) [Docs](http://docs.split.io/docs/python-sdk-overview) |
30 | | -* GO [Github](https://github.com/splitio/go-client) [Docs](http://docs.split.io/docs/go-sdk-overview) |
31 | | -* Android [Github](https://github.com/splitio/android-client) [Docs](https://docs.split.io/docs/android-sdk-overview) |
32 | | -* IOS [Github](https://github.com/splitio/ios-client) [Docs](https://docs.split.io/docs/ios-sdk-overview) |
| 40 | +## License |
| 41 | +Licensed under the Apache License, Version 2.0. See: [Apache License](http://www.apache.org/licenses/). |
33 | 42 |
|
34 | | -For a comprehensive list of opensource projects visit our [Github page](https://github.com/splitio?utf8=%E2%9C%93&query=%20only%3Apublic%20). |
| 43 | +## About Split |
35 | 44 |
|
36 | | -**Learn more about Split:** |
| 45 | +Split is the leading Feature Delivery Platform for engineering teams that want to confidently deploy features as fast as they can develop them. Split’s fine-grained management, real-time monitoring, and data-driven experimentation ensure that new features will improve the customer experience without breaking or degrading performance. Companies like Twilio, Salesforce, GoDaddy and WePay trust Split to power their feature delivery. |
| 46 | + |
| 47 | +To learn more about Split, contact hello@split.io, or get started with feature flags for free at https://www.split.io/signup. |
| 48 | + |
| 49 | +Split has built and maintains SDKs for: |
37 | 50 |
|
38 | | -Visit [split.io/product](https://www.split.io/product) for an overview of Split, or visit our documentation at [docs.split.io](http://docs.split.io) for more detailed information. |
| 51 | +* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK) |
| 52 | +* Javascript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK) |
| 53 | +* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK) |
| 54 | +* .NET [Github](https://github.com/splitio/.net-core-client) [Docs](https://help.split.io/hc/en-us/articles/360020240172--NET-SDK) |
| 55 | +* Ruby [Github](https://github.com/splitio/ruby-client) [Docs](https://help.split.io/hc/en-us/articles/360020673251-Ruby-SDK) |
| 56 | +* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK) |
| 57 | +* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK) |
| 58 | +* GO [Github](https://github.com/splitio/go-client) [Docs](https://help.split.io/hc/en-us/articles/360020093652-Go-SDK) |
| 59 | +* Android [Github](https://github.com/splitio/android-client) [Docs](https://help.split.io/hc/en-us/articles/360020343291-Android-SDK) |
| 60 | +* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK) |
39 | 61 |
|
40 | | -**System Status:** |
| 62 | +For a comprehensive list of open source projects visit our [Github page](https://github.com/splitio?utf8=%E2%9C%93&query=%20only%3Apublic%20). |
| 63 | + |
| 64 | +**Learn more about Split:** |
41 | 65 |
|
42 | | -We use a status page to monitor the availability of Split’s various services. You can check the current status at [status.split.io](http://status.split.io). |
| 66 | +Visit [split.io/product](https://www.split.io/product) for an overview of Split, or visit our documentation at [help.split.io](http://help.split.io) for more detailed information. |
0 commit comments