Skip to content

vinodiit/YbEasyCli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

325 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

YbEasyCli

An extensible collection of utilities used to interact with a Yellowbrick Data Warehouse instance through an command line interface.

Installation / Requirements

Prerequisites

  1. ybtools: Yellowbrick client tools package
  2. Python
    • Users are encouraged to use Python 3.latest, but all utilities are currently compatible with Python 2.7 as well. -- to use Python 2.7 explicitly place the python command at the beginning of the command-line.
    • Executing any utility in this project as a standalone executable will default to Python 3.

Setting Environment Variables (Optional)

All utilities rely on establishing a connection with a Yellowbrick instance. Connection parameters are typically specified using command line flags. Optionally, a user may save these parameters in environment variables.

See the Yellowbrick documentation for more information about setting environment for ybsql connections.

Overview

Runnable Utilities

Other Files

  • yb_util: Parent class for all utilities

  • yb_common: Performs functions such as argument parsing, login verification, logging, and command execution that are common to all utilities in this project.

  • yb_ddl_object: Dump out the SQL/DDL that was used to create any database object.

  • test_create_host_objects: Create test user, database, and database objects.

  • test_drop_host_objects: Drop test user, database, and database objects.

  • test_run: Runs the test created for all utilities or a given utility.

Contributing

Contributors will be expected to sign the Contributors License Agreement associated with this project. A bot will evaluate whether the CLA has been signed when you create a pull request. If necessary, the bot will leave a comment prompting you to accept the agreement.

Before creating a pull request, ensure that changes are properly tested. See the guide for running and developing tests for more information.

License

YbEasyCli is distributed under the MIT License. Using and modifying these utilities should be done at your own risk.

About

Easy CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PLpgSQL 56.1%
  • Python 43.4%
  • Shell 0.5%