-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
85 lines (64 loc) · 2.25 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#! /usr/bin/env python
import setuptools
long_description = """
# Rubrik SDK for Python
This project provides a Python package that makes it easy to interact with the Rubrik CDM API.
The SDK has been tested against Python 2.7.6 and Python 3.6.4.
## Installation
Install from pip:
`pip install rubrik_cdm`
Install from source:
```
$ git clone https://github.com/rubrikinc/rubrik-sdk-for-python
$ cd rubrik-sdk-for-python
$ python setup.py install
```
## Quick Start
* [Quick Start Guide](https://github.com/rubrikinc/rubrik-sdk-for-python/blob/master/docs/quick-start.md)
## Documentation
* [SDK Documentation](https://rubrik.gitbook.io/rubrik-sdk-for-python/)
* [Rubrik API Documentation](https://github.com/rubrikinc/api-documentation)
## Example
By default, the Rubrik SDK will attempt to read the the Rubrik Cluster credentials from the following environment variables:
* `rubrik_cdm_node_ip`
* `rubrik_cdm_username`
* `rubrik_cdm_password`
* `rubrik_cdm_token`
| Note: The `rubrik_cdm_username` and `rubrik_cdm_password` must be supplied together and may not be provided if the `rubrik_cdm_token` variable is present|
| --- |
```py
import rubrik_cdm
rubrik = rubrik_cdm.Connect()
cluster_version = rubrik.cluster_version()
print(cluster_version)
```
## Additional Links
* [VIDEO: Getting Start with the Rubrik SDK for Python](https://www.youtube.com/watch?v=TQM60X2_r_c&feature=youtu.be)
"""
setuptools.setup(
name="rubrik_cdm",
version="2.0.10",
author="Rubrik Build",
description="A Python package for interacting with the Rubrik CDM API.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/rubrikinc/rubrik-sdk-for-python",
packages=setuptools.find_packages(exclude=['tests']),
classifiers=[
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6"
],
install_requires=[
'requests >= 2.18.4, != 2.22.0',
'python-dateutil',
'pytz'
],
tests_require=[
'pytest'
],
zip_safe=True,
)