Skip to main content

Lendsmart opinionated tool to mirror QA to Prod. Deploy with ease.

Project description

Reva CLI

image

The Reva CLI is used to manage Lendsmart deployment from the command line.

PyPI PyPI

The primary intent is:

  • mirror prod and QA
  • make the deploys smooth with no manual intervention.

Overview

The goals of this project is to make deployments more flexible, and make the deployments faster.

Installation

pip install lendmart_reva

Configuration

Step 1: export


# Here the home is the root user home directory
export LENDSMART_REVA_HOME=$HOME (or)

# Here the home is the directory `/home/makesh`
export LENDSMART_REVA_HOME="/home/makesh"

# Here the ui home is the path to where the code of ui exists
export LENDSMART_REVA_UI_HOME='/home/makesh/ui'

# Here the ui home is the path to where the code of worklet exists
export LENDSMART_REVA_WORKLET_HOME="/home/makesh/worklet"

Step 3: mkdir reva


cd $LENDSMART_REVA_HOME

mkdir $LENDSMART_REVA_HOME/reva

Step 3: reva.conf

Copy the conf file to location $LENDSMART_REVA_HOME/reva/config.json

{
  "dev": {
    "api_root": "https://devapi.lendsmart.ai/api/v1",
    "application_graphql_endpoint": "https://devappgraphql.lendsmart.ai/v1/graphql",
    "application_graphql_auth_token": "",
    "lendsmart_access_token": "<dev-lendsmart-access-token>"
  },
  "uat": {
    "api_root": "https://testapi.lendsmart.ai/api/v1",
    "application_graphql_endpoint": "https://devappgraphql.lendsmart.ai/v1/graphql",
    "application_graphql_auth_token": "",
    "lendsmart_access_token": "<dev-lendsmart-access-token>"
  },
  "prod": {
    "api_root": "https://apiprod.lendsmart.ai/api/v1",
    "application_graphql_endpoint": "https://devappgraphql.lendsmart.ai/v1/graphql",
    "application_graphql_auth_token": "",
    "lendsmart_access_token": "<prod-lendsmart-access-token>"
  }
}

💁 Please update the aut_token, namespace and lendsmart_access_token for the appropriate environments. This is purposefully left out for security reasons.

Command Topics

References

CLI Configuration conf/reva.py

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

lendsmart_reva-2.15.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

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

lendsmart_reva-2.15-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

Details for the file lendsmart_reva-2.15.tar.gz.

File metadata

  • Download URL: lendsmart_reva-2.15.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.6

File hashes

Hashes for lendsmart_reva-2.15.tar.gz
Algorithm Hash digest
SHA256 8af7a6ea7264ba1ccfab1d4d7d58eb9307024523894e90d5504b7c39a2d733b0
MD5 90a949c9b45a33e3a8c5f5bb08231ea9
BLAKE2b-256 6db522b7d36b2d949f31e07fac8bac3104b624a39e7a22fdfded6e0a2df16f82

See more details on using hashes here.

File details

Details for the file lendsmart_reva-2.15-py3-none-any.whl.

File metadata

  • Download URL: lendsmart_reva-2.15-py3-none-any.whl
  • Upload date:
  • Size: 58.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.6

File hashes

Hashes for lendsmart_reva-2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 6a5956456655494ff81518f003f5a76f690ba20f9fffc1d1c64c499bbb2f6506
MD5 878b7c91218533cf6ffdfe150c1d3682
BLAKE2b-256 f7111d0025248129f5c45107f0911b837fc4797207682ffc3ba4991508b18404

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