Skip to content

Commit db1dd3f

Browse files
author
Matias Melograno
committed
updated docs
1 parent c522872 commit db1dd3f

File tree

4 files changed

+82
-187
lines changed

4 files changed

+82
-187
lines changed

.github/pull_request_template.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
# Python SDK
22

3-
## Tickets covered:
4-
*
5-
63
## What did you accomplish?
7-
* Bullet 1
8-
* Bullet 2
94

10-
## How to test new changes?
11-
* python setup.py test to test everythin
12-
* pytest <SPECIFIC_FILE> to test a file in particular (requires pytest, pytest-cov & pytest-mock to be installed)
5+
## How do we test the changes introduced in this PR?
136

14-
## Extra Notes
15-
* Bullet 1
16-
* Bullet 2
7+
## Extra Notes

CONTRIBUTORS-GUIDE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Contributing to the Split Python SDK
2+
3+
Split SDK is an open source project and we welcome feedback and contribution. The information below describes how to build the project with your changes, run the tests, and send the Pull Request(PR).
4+
5+
## Development
6+
7+
### Development process
8+
9+
1. Fork the repository and create a topic branch from `development` branch. Please use a descriptive name for your branch.
10+
2. While developing, use descriptive messages in your commits. Avoid short or meaningless sentences like "fix bug".
11+
3. Make sure to add tests for both positive and negative cases.
12+
4. <if applicable> Run the linter script of the project and fix any issues you find.
13+
5. Run the build script and make sure it runs with no errors.
14+
6. Run all tests and make sure there are no failures.
15+
7. `git push` your changes to GitHub within your topic branch.
16+
8. Open a Pull Request(PR) from your forked repo and into the `development` branch of the original repository.
17+
9. When creating your PR, please fill out all the fields of the PR template, as applicable, for the project.
18+
10. Check for conflicts once the pull request is created to make sure your PR can be merged cleanly into `development`.
19+
11. Keep an eye out for any feedback or comments from Split's SDK team.
20+
21+
### Running tests
22+
23+
To run test you need to execute the following commands:
24+
1. `pip install -U pip setuptools`
25+
2. `python setup.py install`
26+
3. `pip install redis pytest pytest-cov pytest-mock`
27+
4. `python setup.py test`
28+
29+
# Contact
30+
31+
If you have any other questions or need to contact us directly in a private manner send us a note at sdks@split.io.

Detailed-README.md

Lines changed: 0 additions & 151 deletions
This file was deleted.

README.md

Lines changed: 49 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,66 @@
11
# Split Python SDK
2+
[![Build Status](https://api.travis-ci.com/splitio/python-client.svg?branch=master)](https://api.travis-ci.com/splitio/python-client)
23

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.
46

5-
### Quick setup
7+
[![Twitter Follow](https://img.shields.io/twitter/follow/splitsoftware.svg?style=social&label=Follow&maxAge=1529000)](https://twitter.com/intent/follow?screen_name=splitsoftware)
68

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.
811

9-
### Commitment to Quality:
12+
## Getting started
13+
Below is a simple example that describes the instantiation and most basic usage of our SDK:
1014

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`
1216

13-
### About Split:
1417

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+
```
1631

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.
1833

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.
2036

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).
2239

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/).
3342

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
3544

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:
3750

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)
3961

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:**
4165

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

Comments
 (0)