krutrim-client 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- krutrim_client-0.0.1/.gitignore +16 -0
- krutrim_client-0.0.1/CONTRIBUTING.md +130 -0
- krutrim_client-0.0.1/KRUTRIM SDK LICENSE.md +45 -0
- krutrim_client-0.0.1/LICENSE +201 -0
- krutrim_client-0.0.1/PKG-INFO +675 -0
- krutrim_client-0.0.1/README.md +444 -0
- krutrim_client-0.0.1/SECURITY.md +23 -0
- krutrim_client-0.0.1/bin/publish-pypi +6 -0
- krutrim_client-0.0.1/examples/highlvlvpc/CreatePort.py +23 -0
- krutrim_client-0.0.1/examples/highlvlvpc/CreateSubnet.py +33 -0
- krutrim_client-0.0.1/examples/highlvlvpc/CreateVM.py +39 -0
- krutrim_client-0.0.1/examples/highlvlvpc/CreateVPC.py +52 -0
- krutrim_client-0.0.1/examples/highlvlvpc/DeleteInstance.py +22 -0
- krutrim_client-0.0.1/examples/highlvlvpc/DeleteVPC.py +21 -0
- krutrim_client-0.0.1/examples/highlvlvpc/GetVMInfoList.py +19 -0
- krutrim_client-0.0.1/examples/highlvlvpc/GetVMInstanceByKrn.py +20 -0
- krutrim_client-0.0.1/examples/highlvlvpc/GetVPC.py +21 -0
- krutrim_client-0.0.1/examples/highlvlvpc/GetVPCList.py +21 -0
- krutrim_client-0.0.1/examples/highlvlvpc/GetVPCTaskStatus.py +21 -0
- krutrim_client-0.0.1/examples/highlvlvpc/SearchInstance.py +20 -0
- krutrim_client-0.0.1/examples/highlvlvpc/SearchNetworks.py +20 -0
- krutrim_client-0.0.1/examples/highlvlvpc/SearchPorts.py +18 -0
- krutrim_client-0.0.1/examples/kbs/CreateVolume.py +29 -0
- krutrim_client-0.0.1/examples/kbs/DeleteVolume.py +21 -0
- krutrim_client-0.0.1/examples/kbs/GetVolume.py +20 -0
- krutrim_client-0.0.1/examples/securityGroup/CreateSecurityGroup.py +24 -0
- krutrim_client-0.0.1/examples/securityGroup/CreateSecurityGroupRules.py +38 -0
- krutrim_client-0.0.1/examples/securityGroup/DeleteSecurityGroup.py +20 -0
- krutrim_client-0.0.1/examples/securityGroup/DetachSecurityGroupRules.py +23 -0
- krutrim_client-0.0.1/examples/securityGroup/ListSecurityGroup.py +21 -0
- krutrim_client-0.0.1/examples/sshkey/CreateSSHkey.py +21 -0
- krutrim_client-0.0.1/examples/sshkey/DeleteSSHKey.py +20 -0
- krutrim_client-0.0.1/examples/sshkey/GetSSHkey.py +20 -0
- krutrim_client-0.0.1/examples/startStopVM/startstopVM.py +24 -0
- krutrim_client-0.0.1/mypy.ini +50 -0
- krutrim_client-0.0.1/noxfile.py +9 -0
- krutrim_client-0.0.1/pyproject.toml +207 -0
- krutrim_client-0.0.1/requirements.lock +45 -0
- krutrim_client-0.0.1/src/krutrim_client/__init__.py +98 -0
- krutrim_client-0.0.1/src/krutrim_client/_base_client.py +1943 -0
- krutrim_client-0.0.1/src/krutrim_client/_client.py +435 -0
- krutrim_client-0.0.1/src/krutrim_client/_compat.py +219 -0
- krutrim_client-0.0.1/src/krutrim_client/_constants.py +14 -0
- krutrim_client-0.0.1/src/krutrim_client/_exceptions.py +107 -0
- krutrim_client-0.0.1/src/krutrim_client/_files.py +123 -0
- krutrim_client-0.0.1/src/krutrim_client/_models.py +803 -0
- krutrim_client-0.0.1/src/krutrim_client/_qs.py +150 -0
- krutrim_client-0.0.1/src/krutrim_client/_resource.py +42 -0
- krutrim_client-0.0.1/src/krutrim_client/_response.py +832 -0
- krutrim_client-0.0.1/src/krutrim_client/_streaming.py +333 -0
- krutrim_client-0.0.1/src/krutrim_client/_types.py +217 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/__init__.py +57 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_logs.py +24 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_proxy.py +63 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_reflection.py +42 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_resources_proxy.py +24 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_streams.py +12 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_sync.py +83 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_transform.py +447 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_typing.py +151 -0
- krutrim_client-0.0.1/src/krutrim_client/_utils/_utils.py +421 -0
- krutrim_client-0.0.1/src/krutrim_client/_version.py +3 -0
- krutrim_client-0.0.1/src/krutrim_client/lib/.keep +0 -0
- krutrim_client-0.0.1/src/krutrim_client/py.typed +0 -0
- krutrim_client-0.0.1/src/krutrim_client/resources/__init__.py +77 -0
- krutrim_client-0.0.1/src/krutrim_client/resources/highlvlvpc.py +3132 -0
- krutrim_client-0.0.1/src/krutrim_client/resources/kbs.py +643 -0
- krutrim_client-0.0.1/src/krutrim_client/resources/securityGroup.py +1251 -0
- krutrim_client-0.0.1/src/krutrim_client/resources/sshkey.py +353 -0
- krutrim_client-0.0.1/src/krutrim_client/resources/startStopVM.py +259 -0
- krutrim_client-0.0.1/src/krutrim_client/types/__init__.py +0 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/__init__.py +32 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_create_instance_params.py +50 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_create_port_params.py +27 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_create_subnet_params.py +32 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_create_vpc_params.py +95 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_delete_instance_params.py +21 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_delete_vpc_params.py +18 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_get_vpc_task_status_params.py +18 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_list_instance_info_params.py +24 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_list_vpcs_response.py +10 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_retrieve_instance_params.py +18 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_retrieve_vpc_params.py +21 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_search_instances_params.py +38 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_search_networks_params.py +16 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_search_networks_response.py +40 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_search_ports_params.py +34 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_search_ports_response.py +24 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_search_vpcs_params.py +21 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/highlvlvpc_search_vpcs_response.py +24 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/instance_info.py +56 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/instance_info_list.py +25 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/port_detail.py +58 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/qos.py +30 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/qos_params.py +31 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/success_response.py +14 -0
- krutrim_client-0.0.1/src/krutrim_client/types/highlvlvpc/vpc_detail.py +34 -0
- krutrim_client-0.0.1/src/krutrim_client/types/kbs/__init__.py +7 -0
- krutrim_client-0.0.1/src/krutrim_client/types/kbs/qos.py +30 -0
- krutrim_client-0.0.1/src/krutrim_client/types/kbs/qos_params.py +31 -0
- krutrim_client-0.0.1/src/krutrim_client/types/kbs/source.py +14 -0
- krutrim_client-0.0.1/src/krutrim_client/types/kbs/source_params.py +15 -0
- krutrim_client-0.0.1/src/krutrim_client/types/kbs/volume_create_params.py +39 -0
- krutrim_client-0.0.1/src/krutrim_client/types/kbs/volume_details.py +60 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/__init__.py +18 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/attach_detach_generic_response.py +13 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/attach_security_group_rules_params.py +23 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/create_security_group_rules_params.py +36 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/create_security_group_rules_resp.py +18 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/detach_security_group_rules_params.py +24 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/security_group_list_by_vpc_params.py +19 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/security_group_list_by_vpc_response.py +65 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/v1_create_security_group_params.py +27 -0
- krutrim_client-0.0.1/src/krutrim_client/types/securityGroup/v1_create_security_group_resp.py +19 -0
- krutrim_client-0.0.1/src/krutrim_client/types/sshkey/__init__.py +7 -0
- krutrim_client-0.0.1/src/krutrim_client/types/sshkey/sshkey_create_params.py +17 -0
- krutrim_client-0.0.1/src/krutrim_client/types/sshkey/sshkey_create_response.py +27 -0
- krutrim_client-0.0.1/src/krutrim_client/types/sshkey/sshkey_retrieve_response.py +18 -0
- krutrim_client-0.0.1/src/krutrim_client/types/startStopVM/__init__.py +4 -0
- krutrim_client-0.0.1/src/krutrim_client/types/startStopVM/v1_perform_action_params.py +12 -0
- krutrim_client-0.0.1/src/krutrim_client/types/startStopVM/v1_perform_action_response.py +21 -0
- krutrim_client-0.0.1/tests/__init__.py +0 -0
- krutrim_client-0.0.1/tests/api_resources/__init__.py +0 -0
- krutrim_client-0.0.1/tests/api_resources/test_highlvlvpc.py +1686 -0
- krutrim_client-0.0.1/tests/conftest.py +51 -0
- krutrim_client-0.0.1/tests/sample_file.txt +1 -0
- krutrim_client-0.0.1/tests/test_client.py +1681 -0
- krutrim_client-0.0.1/tests/test_deepcopy.py +58 -0
- krutrim_client-0.0.1/tests/test_extract_files.py +64 -0
- krutrim_client-0.0.1/tests/test_files.py +51 -0
- krutrim_client-0.0.1/tests/test_models.py +891 -0
- krutrim_client-0.0.1/tests/test_qs.py +78 -0
- krutrim_client-0.0.1/tests/test_required_args.py +111 -0
- krutrim_client-0.0.1/tests/test_response.py +277 -0
- krutrim_client-0.0.1/tests/test_streaming.py +254 -0
- krutrim_client-0.0.1/tests/test_transform.py +453 -0
- krutrim_client-0.0.1/tests/test_utils/test_proxy.py +34 -0
- krutrim_client-0.0.1/tests/test_utils/test_typing.py +73 -0
- krutrim_client-0.0.1/tests/utils.py +159 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
## Setting up the environment
|
|
2
|
+
|
|
3
|
+
### With Rye
|
|
4
|
+
|
|
5
|
+
We use [Rye](https://rye.astral.sh/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
$ ./scripts/bootstrap
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or [install Rye manually](https://rye.astral.sh/guide/installation/) and run:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
$ rye sync --all-features
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
You can then run scripts using `rye run python script.py` or by activating the virtual environment:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
$ rye shell
|
|
21
|
+
# or manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
|
|
22
|
+
$ source .venv/bin/activate
|
|
23
|
+
|
|
24
|
+
# now you can omit the `rye run` prefix
|
|
25
|
+
$ python script.py
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Without Rye
|
|
29
|
+
|
|
30
|
+
Alternatively if you don't want to install `Rye`, you can stick with the standard `pip` setup by ensuring you have the Python version specified in `.python-version`, create a virtual environment however you desire and then install dependencies using this command:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
$ pip install -r requirements-dev.lock
|
|
34
|
+
```
|
|
35
|
+
<!--
|
|
36
|
+
## Modifying/Adding code
|
|
37
|
+
|
|
38
|
+
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
|
|
39
|
+
result in merge conflicts between manual patches and changes from the generator. The generator will never
|
|
40
|
+
modify the contents of the `src/krutrim_client/lib/` and `examples/` directories.
|
|
41
|
+
|
|
42
|
+
## Adding and running examples
|
|
43
|
+
|
|
44
|
+
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
|
|
45
|
+
|
|
46
|
+
```py
|
|
47
|
+
# add an example to examples/<your-example>.py
|
|
48
|
+
|
|
49
|
+
#!/usr/bin/env -S rye run python
|
|
50
|
+
…
|
|
51
|
+
``` -->
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
$ chmod +x examples/<your-example>.py
|
|
55
|
+
# run the example against your api
|
|
56
|
+
$ ./examples/<your-example>.py
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Using the repository from source
|
|
60
|
+
|
|
61
|
+
If you’d like to use the repository from source, you can either install from git or link to a cloned repository:
|
|
62
|
+
|
|
63
|
+
To install via git:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
$ pip install git+ssh://git@github.com/stainless-sdks/krutrim_client-python.git
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Alternatively, you can build from source and install the wheel file:
|
|
70
|
+
|
|
71
|
+
Building this package will create two files in the `dist/` directory, a `.tar.gz` containing the source files and a `.whl` that can be used to install the package efficiently.
|
|
72
|
+
|
|
73
|
+
To create a distributable version of the library, all you have to do is run this command:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
$ rye build
|
|
77
|
+
# or
|
|
78
|
+
$ python -m build
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Then to install:
|
|
82
|
+
|
|
83
|
+
```sh
|
|
84
|
+
$ pip install ./path-to-wheel-file.whl
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Running tests
|
|
88
|
+
|
|
89
|
+
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
# you will need npm installed
|
|
93
|
+
$ npx prism mock path/to/your/openapi.yml
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
$ ./scripts/test
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Linting and formatting
|
|
101
|
+
|
|
102
|
+
This repository uses [ruff](https://github.com/astral-sh/ruff) and
|
|
103
|
+
[black](https://github.com/psf/black) to format the code in the repository.
|
|
104
|
+
|
|
105
|
+
To lint:
|
|
106
|
+
|
|
107
|
+
```sh
|
|
108
|
+
$ ./scripts/lint
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
To format and fix all ruff issues automatically:
|
|
112
|
+
|
|
113
|
+
```sh
|
|
114
|
+
$ ./scripts/format
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<!-- ## Publishing and releases
|
|
119
|
+
|
|
120
|
+
Changes made to this repository via the automated release PR pipeline should publish to PyPI automatically. If
|
|
121
|
+
the changes aren't made through the automated pipeline, you may want to make releases manually.
|
|
122
|
+
|
|
123
|
+
### Publish with a GitHub workflow
|
|
124
|
+
|
|
125
|
+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/krutrim_client-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
|
|
126
|
+
|
|
127
|
+
### Publish manually
|
|
128
|
+
|
|
129
|
+
If you need to manually release a package, you can run the `bin/publish-pypi` script with a `PYPI_TOKEN` set on
|
|
130
|
+
the environment. -->
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
KRUTRIM PROVIDES THIS SOFTWARE DEVELOPER KIT (THE “SDK” INCLUDES SEVERAL “COMPONENTS”: “KRUTRIM’S API”, “ASSOCIATED DOCUMENTATION” AND “CODE/API USAGE EXAMPLES” AND ANY ERROR CORRECTIONS, UPDATES OR NEW RELEASES THERETO AS PROVIDED BY KRUTRIM) FOR THE INTENDED PURPOSE OF ALLOWING NETWORK ADMINISTRATORS AND DEVELOPERS (ALSO REPRESENTED AS “YOU” AND “YOUR”) TO UTILIZE THE SDK TO DEVELOP APPLICATIONS WHICH (I) ALLOW ADMINISTRATORS TO BETTER INTEGRATE KRUTRIM’S PRODUCTS INTO THEIR INTERNAL NETWORKS; AND (II) ALLOW DEVELOPERS TO EFFECTIVELY INCORPORATE KRUTRIM PRODUCTS INTO THEIR COMPANY’S BUNDLED PRODUCT OFFERINGS (“YOUR PRODUCTS”).
|
|
2
|
+
THE LICENSE GRANTED BELOW GOVERNS YOUR USE OF THE SDK. THESE TERMS CONSTITUTE A LEGAL AGREEMENT BETWEEN YOU AND KRUTRIM SI DESIGNS PRIVATE LIMITED (HEREIN REFERRED TO AS “KRUTRIM”). PLEASE READ THIS SDK END USER LICENSE AGREEMENT (THE “AGREEMENT”) CAREFULLY BEFORE PRESSING THE "I AGREE" BUTTON. BY PRESSING "I AGREE," YOU ARE AGREEING TO BE BOUND BY THE TERMS OF THIS AGREEMENT. IF YOU REPRESENT A LEGAL ENTITY, YOU ACKNOWLEDGE THAT YOU HAVE THE LEGAL AUTHORITY TO BIND SUCH ENTITY. IF YOU DO NOT AGREE TO THE TERMS OF THIS AGREEMENT, DO NOT DOWNLOAD AND USE THE SDK. PRESS "CANCEL" AND EXIT THIS PART OF THE SITE.
|
|
3
|
+
THERE MAY BE ADDITIONAL TERMS AND CONDITIONS APPLICABLE TO CERTAIN COMPONENTS OF THE SDK, ALL OF WHICH ARE INCORPORATED HEREIN BY REFERENCE. YOU AGREE TO ABIDE BY SUCH OTHER TERMS AND CONDITIONS. TO THE EXTENT THAT A CONFLICT EXISTS BETWEEN THE TERMS PROVIDED BELOW AND THOSE POSTED FOR OR APPLICABLE TO CERTAIN COMPONENTS OF THE SDK, THE LATTER ARE CONTROLLING.
|
|
4
|
+
|
|
5
|
+
1. **License to Use SDK: Restrictions.**
|
|
6
|
+
1. Subject to the terms and conditions of this Agreement, KRUTRIM grants you a limited, non-exclusive, non-transferable, royalty free, revocable license to use KRUTRIM’s API and the Code/API usage examples in accordance with the Associated Documentation and for the intended purpose stated above.
|
|
7
|
+
2. You may make a reasonable number of copies of any Component so as to use the SDK for the intended purpose stated above.
|
|
8
|
+
3. You may not distribute, sell, lease, lend or sublicense the SDK or any Component as an independent product.
|
|
9
|
+
4. You may not modify, create derivative works, reverse engineer, reverse compile, or disassemble KRUTRIM’s API or the Code/API usage examples in any way other than for the intended purpose stated above. You also agree not to add or delete any program files that would modify the functionality and/or appearance of KRUTRIM’s API or the Code/API usage examples other than for the intended purposes stated above.
|
|
10
|
+
5. You will not use the SDK to run applications developed by a third party or that access data, content or resources provided by a third party.
|
|
11
|
+
6. You will not use KRUTRIM’s API or the Code/API usage examples with or to (i) develop any application or program containing viruses or code that is intended to damage or detrimentally interfere with or surreptitiously intercept or expropriate any system, data or information; (ii) that violates any law or regulation; or (iii) that interferes with the operation of any KRUTRIM Product.
|
|
12
|
+
7. You may not modify, distribute or convey KRUTRIM’s API or any code contained therein so that such API, code or any application to which it links, or which it is a part of, becomes subject to an Excluded License. An Excluded License is defined as one that requires, as a condition of license, use, modification, distribution or conveyance, that (i) the code be disclosed or distributed in source code form; (ii) others have the right to modify or create derivative works of it; or (iii) it becomes redistributable at no charge.
|
|
13
|
+
8. You understand that code provided by KRUTRIM, to include the third party technologies provided, may have their own licenses or terms of use, which may or may not be made available, but which you are subject to should you use such SDK.
|
|
14
|
+
2. **Intellectual Property Rights.**
|
|
15
|
+
1. You understand and agree that KRUTRIM retain all legal rights, title and interest (to include but not limited to patent, copyright, trademark, trade secret and moral rights) globally to any intellectual property included in the SDK. All rights are reserved. Accordingly, You agree not to assert any intellectual property rights related to the SDK against KRUTRIM or its suppliers.
|
|
16
|
+
2. You are expressly prohibited from using the KRUTRIM trademark and trade name and KRUTRIM Product names in any way and anywhere (to include but not limited to use in Your business’s trade names or business names, domain names, or product names) without prior authorization from KRUTRIM.
|
|
17
|
+
3. You must include KRUTRIM copyright and other proprietary rights notices accompanying Your Products.
|
|
18
|
+
4. KRUTRIM may, at its sole discretion and without restriction, use any feedback, suggestions and ideas (“Feedback”) You provide in future modifications of the SDK. You hereby grant KRUTRIM a perpetual, worldwide, fully transferable, irrevocable, royalty free license to use, reproduce, modify, create derivative works from, distribute and display the Feedback in any manner and for any purpose.
|
|
19
|
+
3. **Confidentiality.**
|
|
20
|
+
You agree that the SDK is confidential and proprietary information of KRUTRIM ("Confidential Information"). As part of Your activities associated with this Agreement, You may provide Confidential Information to KRUTRIM. Confidential Information does not include information (i) that is or becomes public knowledge or is received by either party without any breach of any confidentiality obligation; (ii) that the receiving party can document was independently developed without use or access to the Confidential Information; or (iii) that the receiving party can document was previously known prior to receipt of the Confidential Information. Both parties agree to (i) use the Confidential Information only in connection with fulfilling their rights and obligations under this Agreement; (ii) hold the Confidential Information in strict confidence and exercise due care with respect to its handling and protection, consistent with their protection of their own confidential information but not less than reasonable care, (iii) not publish or disclose the Confidential Information except for disclosures to employees and subcontractors who have a bona fide need to know the Confidential Information. Both parties agree that any unauthorized disclosure of the Confidential Information would cause irreparable harm and that in the event of any breach or threatened breach of the above confidentiality obligations, the party owning the Confidential Information shall be entitled to obtain equitable relief in addition to any other remedy.
|
|
21
|
+
4. **No KRUTRIM Support or Software Maintenance.**
|
|
22
|
+
KRUTRIM may but is under no obligation to provide updates, fix bugs or errors nor to address any other issues you may raise with the quality or performance of any component of the SDK.
|
|
23
|
+
5. **Termination.**
|
|
24
|
+
Your rights under this Agreement may be terminated by KRUTRIM immediately and without notice if You fail to comply with any term or condition of this Agreement. Upon such termination, Your license to the SDK will terminate immediately and You must immediately cease using the SDK, and destroy all complete and partial copies of the SDK within Your possession or control. You and or KRUTRIM each may terminate this Agreement for any reason at any time with a minimum of ninety (90) days notice.
|
|
25
|
+
6. **Warranty Disclaimer.**
|
|
26
|
+
KRUTRIM DISCLAIMS ALL REPRESENTATIONS OR WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, REGARDING THE USE OF THE SDK, TO INCLUDE BUT NOT LIMITED TO WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT OR WARRANTIES THAT THE SDK WILL BE ACCURATE, FREE OF ERRORS OR DEFECTS, FREE OF VIRUSES OR CONTAMINATION, UNINTERRUPTED, OR THAT ANY DEFECTS WILL BE CORRECTED. THE SDK IS PROVIDED “AS-IS”. YOU ASSUME ALL RISK ASSOCIATED WITH YOUR USE OF THE SDK. YOUR SOLE REMEDY AGAINST KRUTRIM FOR DISSATISFACTION WITH THE SDK OR FOR ANY DAMAGE CAUSED THEREBY IS TO STOP USING SUCH SDK. THIS LIMITATION OF RELIEF IS A PART OF THE BARGAIN BETWEEN THE PARTIES.
|
|
27
|
+
7. **Limitation of Liability.**
|
|
28
|
+
1. YOU AGREE NOT TO TAKE ANY LEGAL ACTION OR MAKE ANY CLAIM AGAINST KRUTRIM OR ANY OF ITS SUPPLIERS IN RELATION TO THE SDK AND/OR YOUR USAGE THEREOF. FURTHERMORE YOU AGREE NOT TO SUPPORT ANY SUCH ACTIONS OR CLAIMS BY ANY OF YOUR CUSTOMERS WHO MAY RECEIVE THE SDK OR COMPONENTS THEREOF AS PART OF YOUR PRODUCTS.
|
|
29
|
+
2. YOU ACKNOWLEDGE AND AGREE THAT ANY USE OR DISSEMINATION BY YOU OF THE SDK IS YOUR SOLE RESPONSIBILITY AND AT YOUR OWN RISK. YOU ACKNOWLEDGE AND AGREE THAT KRUTRIM BEARS NO LIABILITY OR RESPONSIBILITY FOR SUCH USE OR DISSEMINATION. AS SUCH, EXCEPT WHERE PROHIBITED BY LAW, IN NO EVENT WILL KRUTRIM BE LIABLE TO YOU FOR ANY DAMAGES OF ANY KIND, UNDER ANY LEGAL THEORY, TO INCLUDE DIRECT, INDIRECT, CONSEQUENTIAL, SPECIAL, EXEMPLARY, INCIDENTAL OR PUNITIVE DAMAGES, WHETHER RELATED TO BUSINESS INTERRUPTION/WORK STOPPAGE, LOST PROFITS, LOSS OF DATA, COMPUTER MALFUNCTION OR FAILURE OR OTHERWISE. EVEN IF KRUTRIM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IF, NOTWITHSTANDING THE OTHER PROVISIONS OF THIS AGREEMENT, KRUTRIM IS FOUND TO BE LIABLE TO YOU FOR ANY DAMAGE OR LOSS THAT ARISES OUT OF OR IS IN ANY WAY CONNECTED WITH YOUR USE OF THE SDK, KRUTRIM’S LIABILITY SHALL BE LIMITED TO THE GREATEST EXTENT ALLOWED BY THE LAW.
|
|
30
|
+
8. **Indemnification.**
|
|
31
|
+
YOU AGREE TO FULLY INDEMNIFY AND HOLD HARMLESS KRUTRIM, ITS DIRECTORS, OFFICERS AND EMPLOYEES, AGAINST ANY AND ALL CLAIMS, TO INCLUDE ATTORNEYS” FEES, MADE REGARDING (I) YOUR USE OF THE SDK, (II) ANY APPLICATION YOU DEVELOP THEREFROM, (III) ANY INTELLECTUAL PROPERTY INFRINGEMENT CLAIM THAT ARISES FROM YOUR USE OF THE SDK AND ANY APPLICATION DEVELOPED THEREFROM, AND/OR (IV) YOUR BREACH OF THIS AGREEMENT.
|
|
32
|
+
9. **Notices.**
|
|
33
|
+
KRUTRIM may send You notice with respect to this Agreement by sending an email message to the email address listed in Your Developer Portal account or by sending a letter via postal mail to the contact address listed in Your account. Notices shall become effective immediately upon KRUTRIM providing them.
|
|
34
|
+
10. **Governing Law.**
|
|
35
|
+
|
|
36
|
+
All disputes or differences arising shall at the first instance be attempted to be resolved amicably between the Parties by negotiation within 30 (Thirty) days from the receipt of notice of such dispute. On the failure of negotiation, the dispute in connection with this Agreement, including any question regarding its existence, validity or termination, shall be referred to and resolved by arbitration in Bengaluru in accordance with the Indian Arbitration and Conciliation Act, 1996\. The arbitration shall be presided over by a sole arbitrator appointed mutually by the Parties. The language of arbitration shall be English. The order passed by the arbitrator shall be final and binding upon the Parties.The parties hereby acknowledge that the language of this Agreement is English and that the original English-language version of this Agreement shall be the only authoritative version of this Agreement.
|
|
37
|
+
|
|
38
|
+
11. **Miscellaneous.**
|
|
39
|
+
1. No delay or failure to take action under this Agreement will constitute a waiver unless expressly waived in writing, signed by a duly authorized KRUTRIM representative, and no single waiver will constitute a continuing or subsequent waiver.
|
|
40
|
+
2. If any provision is found to be unenforceable or invalid, that provision shall be limited or eliminated to the minimum extent necessary so that this Agreement shall otherwise remain in full force and effect and enforceable.
|
|
41
|
+
3. This Agreement constitutes the entire agreement between the parties with respect to Your use of the SDK.
|
|
42
|
+
12. **Changes to this Agreement.**
|
|
43
|
+
1. KRUTRIM shall have the right to unilaterally change or add to the terms of this Agreement at any time upon notice by any means KRUTRIM determines in its discretion to be reasonable, including sending you an email notification, by KRUTRIM Channel Alert publication or by simply referencing a posted, newly revised version of the Agreement on its Developer Zone Portal website. It is Your responsibility to review the most updated version thereof. By continuing to use the SDK following such modifications, You agree to be bound by such modifications.
|
|
44
|
+
2. The Confidential Information, Warranty Disclaimer, Limitation of Liability and Indemnification sections set out in this Agreement shall survive any termination or expiration of this Agreement.
|
|
45
|
+
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 KrutrimClient
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|