Skip to main content

CLI Utility for SAP CX (Hybris) developers

Project description

SAPCX (SAP CX CLI utility)

Deploy to Test PyPI Deploy to PyPI

Introduction

Why I built this ?? AS a SAP CX (Hybris) developer I found myself using HAC (Hybris adminstration console) a lot, and it's time consuming to open the browser, select each tab, then run simple groovy or some flexible search queries, or whatever is the task to be done.

And since I'm always on my terminal, I thought about looking for a cli for this, but unfortunately didn't find any, then I decided to build it myself for my specific needs, & I think this is it :sweat_smile:

For whoever reading this

This tools is not yet stable, and still in beta version, I'm still working on it while using it in work, please feel free to contribute, create some pull requests or open some issues for improvement, they are always welcome

Get started

Prerequisites

Obviously you need a local or remote running Hybris server, and an account to access it, & Python installed on your machine.

Installation

Install CLI through pip:

$ pip3 install --user --upgrade sapcx

Configure default server instance

$ sap configure
Profile identifier (default): 
Profile username (admin): 
Profile password (nimda): 
Profile server (127.0.0.1): 
Profile port (9002) :
Is secured with ssl [Y/n]: Y
Profile webroot (/): 

Usage

usage: sap [-h] [-i IMPORT_IMPEX] [-e EXECUTE_GROOVY] [-q QUERY]
           [--profile PROFILE]
           {configure} ...

positional arguments:
  {configure}           Sub commands help
    configure           Configure different profiles for your servers

optional arguments:
  -h, --help            show this help message and exit

console:
  -i IMPORT_IMPEX, --import IMPORT_IMPEX
                        Impex file to import
  -e EXECUTE_GROOVY, --execute EXECUTE_GROOVY
                        Groovy script file to execute
  -q QUERY, --query QUERY
                        Run flexible search query

server:
  --profile PROFILE

Contribution

Please switch to dev branch since most of the work is done there, and there is a github action that automatically push the current vesion to Test PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sapcx-0.1.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sapcx-0.1.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file sapcx-0.1.2.tar.gz.

File metadata

  • Download URL: sapcx-0.1.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for sapcx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 70e9c9beaae21304a5fd543802292a93d3de6830b6a1dbe029c8a19de2274e01
MD5 25e873772c31214478c44a21e6144cbb
BLAKE2b-256 f49f5104f089a0b61d3c7ec3fe3df8be02e4350878a105ab9fc69468e006d1fb

See more details on using hashes here.

File details

Details for the file sapcx-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sapcx-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for sapcx-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22668a33e5c0aee3e602d69d5d6c3515f861f4531d8c04191f70900f8f295090
MD5 ff03664938e2354fb0d74764815c0278
BLAKE2b-256 ee145eff03dd465e9bc9b13e7a270300341ad69421be7204e35e5a128da6104d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page