An open API service indexing awesome lists of open source software.

https://github.com/suse/shaptools

Project to expose SAP HANA and Clusterlabs HA cluster features easily and in a standardized way.
https://github.com/suse/shaptools

Last synced: 5 months ago
JSON representation

Project to expose SAP HANA and Clusterlabs HA cluster features easily and in a standardized way.

Awesome Lists containing this project

README

        

[![Package CI](https://github.com/SUSE/shaptools/actions/workflows/shaptools-ci.yml/badge.svg)](https://github.com/SUSE/shaptools/actions/workflows/shaptools-ci.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/7521df0f216bd2dbed73/maintainability)](https://codeclimate.com/github/SUSE/shaptools/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/7521df0f216bd2dbed73/test_coverage)](https://codeclimate.com/github/SUSE/shaptools/test_coverage)

# SHAPTOOLS

Project created to expose an API with the SAP HANA platform major functionalities.
The main idea is to have an easy and friendly environment to deploy and configure
the SAP HANA environment and enable System replication feature.

Example of how to use the package:

```python
from shaptools import hana

h = hana.HanaInstance('prd', '00', 'Qwerty1234')

if not h.is_installed():
conf_file = hana.HanaInstance.create_conf_file(
'/sap_inst/51052481', '/home/myuser/hana.conf', 'root', 'root')
hana.HanaInstance.update_conf_file(
conf_file, sid='PRD', password='Qwerty1234', system_user_password='Qwerty1234')
hana.HanaInstance.install('/sap_inst/51052481', conf_file, 'root', 'root')

if not h.is_running():
h.start()

state = h.get_sr_state()

h.create_user_key(
'backupkey', 'hana01:30013', 'SYSTEM', 'Qwerty1234', 'SYSTEMDB')
h.create_backup('SYSTEMDB', 'backup', 'backupkey', 'SYSTEM', 'Qwerty1234')
h.sr_enable_primary('NUREMBERG')
```

## Installation

To install the **shaptools** package run the pip command:

pip install .

To install it in a development state run:

pip install -e .

## Dependencies

List of dependencies are specified in the ["Requirements file"](requirements.txt). Items can be installed using pip:

pip install -r requirements.txt

## License

See the [LICENSE](LICENSE) file for license rights and limitations.

## Author

Xabier Arbulu Insausti ([email protected])

## Reviewers

_Pull request_ preferred reviewers for this project:

- Xabier Arbulu Insausti ([email protected])