Coder Social home page Coder Social logo

meaksh / shaptools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from suse/shaptools

0.0 1.0 0.0 318 KB

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

License: Apache License 2.0

Shell 0.01% Python 98.79% Makefile 1.20%

shaptools's Introduction

Package CI Maintainability 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:

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". Items can be installed using pip:

pip install -r requirements.txt

License

See the LICENSE file for license rights and limitations.

Author

Xabier Arbulu Insausti ([email protected])

Reviewers

Pull request preferred reviewers for this project:

shaptools's People

Contributors

arbulu89 avatar ayoub-belarbi avatar diegoakechi avatar emaksy avatar krig avatar mallozup avatar s-t-e-v-e-n-k avatar suntorytimed avatar yeoldegrove avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.