Skip to main content

Command Line Interface (CLI) for bulk processing/loading data into RegScale

Project description

RegScale Command Line Interface (CLI)

This CLI application is for supporting advanced automation and bulk data processing related to the RegScale Compliance Automation Platform. This application is intended to run as a "side car" that be scheduled via CRON job or serverless function to perform sophisticated data processing. The CLI includes multiple libraries for processing data, connecting to RegScale Application Programming Interfaces (APIs), and commercial integrations. This software may be packaged and included in other commercial software to lower the level of effort associated with building RegScale integrations to other commercial tools.

See full documentation on regscale.readme.io.

Installation

Create a virtual environment and install required Python libraries.

MacOS/Linux

# create and activate python virtual environment
python -m venv venv

# initialize environment
source venv/bin/activate

# upgrade pip
pip install --upgrade pip

# install RegScale CLI
pip install regscale-cli

# optional: install application with "server" packages
pip install "regscale-cli[server]"

Windows

# create and activate python virtual environment
python -m venv venv

# initialize environment
.\venv\Scripts\Activate.ps1

# upgrade pip
pip install --upgrade pip

# install RegScale CLI
pip install regscale-cli

# optional: install application with "server" packages
pip install "regscale-cli[server]"

Initialization

Initialize your CLI environment with the init command:

# initialize RegScale CLI environment
regscale init

The CLI will generate a default init.yaml file and prompt you for RegScale domain and to log in:

Initializing your RegScale CLI environment...
Would you like to change your RegScale domain from https://regscale.yourcompany.com/? (Y/n): y

Please enter your RegScale domain.
Example: https://mydomain.regscale.com/
Domain: https://regscale.mycomapny.com
[2023/01/20 04:32;41] INFO     [2023/01/20 04:32;41] [INFO ]  Valid URL provided, regscale.py:349
                               init.yaml has been updated.
Would you like to log in to your RegScale instance? (Y/n): y
Please enter your username: rross
Please enter your password:

Leaving the Virtual Environment

When you are done working with the CLI, you can leave the virtual environment with the deactivate command. This will return you to your system's default Python environment and this will work on PowerShell or shell.

Use Cases

  • Sidecar for bulk processing compliance data such as vulnerability scans or continuous monitoring logs
  • Processing and ingest of data such as National Institute of Standards and Technology (NIST) Open Security Control Assessment Language (OSCAL)
  • Running CRON jobs to bulk-process data
  • Managing users and identities from external sources
  • Threat intelligence feeds

Specific Integrations

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

regscale_cli-6.29.16.0-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file regscale_cli-6.29.16.0-py3-none-any.whl.

File metadata

File hashes

Hashes for regscale_cli-6.29.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23b4e4dd28047a3fd00edc5d9578176bc05390b15bd05c5d5f1428a69c0ce965
MD5 e733450d2dc5b95e6679c818db10f01d
BLAKE2b-256 ae1f51b1d882d73af10de2531720b1cd0bab236d0c0137d583bc95c483aa783e

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