Reva CLI
==========
![image](https://user-images.githubusercontent.com/1402479/200783457-550bf8bc-4bc8-4571-b995-829bc2f9b2b1.png)
The Reva CLI is used to manage Lendsmart deployment from the command line.
[![PyPI](https://img.shields.io/pypi/v/lendsmart-reva.svg)](https://pypi.python.org/pypi/lendsmart-reva)
[![PyPI](https://img.shields.io/pypi/pyversions/lendsmart-reva.svg)](https://pypi.python.org/pypi/lendsmart-reva)
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`
```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.
<!-- commands -->
# Command Topics
* [`reva namespaces`](docs/namespaces.md) - manage namespaces on Lendsmart
* [`reva workflows`](docs/workflow.md) - manage workflow configuration
* [`reva loanproducts`](docs/loanproducts.md) - manage loanproducts configuration
* [`reva sitesettings`](docs/sitesettings.md) - manage sitesettings configuration
* [`reva worklet`](docs/worklet.md) - manage worklet configuration
<!-- commandsstop -->
References
==========
> [CLI](https://github.com/ceph/ceph-deploy)
> [Configuration conf/reva.py](https://github.com/ceph/ceph-deploy/blob/a16316fc4dd364135b11226df42d9df65c0c60a2/ceph_deploy/conf/ceph.py)
Raw data
{
"_id": null,
"home_page": "https://github.com/lendsmartlabs",
"name": "lendsmart-reva",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "lendsmart reva",
"author": "Lendsmart",
"author_email": "accounts@lendsmart.ai",
"download_url": "https://files.pythonhosted.org/packages/19/fa/c1896cd475d05e12c6e1a68ad2f173794ea8a308bef2807fa557081676f4/lendsmart_reva-2.14.tar.gz",
"platform": null,
"description": "Reva CLI\n==========\n![image](https://user-images.githubusercontent.com/1402479/200783457-550bf8bc-4bc8-4571-b995-829bc2f9b2b1.png)\n\n\n\nThe Reva CLI is used to manage Lendsmart deployment from the command line. \n\n[![PyPI](https://img.shields.io/pypi/v/lendsmart-reva.svg)](https://pypi.python.org/pypi/lendsmart-reva)\n[![PyPI](https://img.shields.io/pypi/pyversions/lendsmart-reva.svg)](https://pypi.python.org/pypi/lendsmart-reva)\n\nThe primary intent is:\n\n- mirror prod and QA\n- make the deploys smooth with no manual intervention.\n\n\nOverview\n========\n\nThe goals of this project is to make deployments more flexible, and make the deployments faster.\n\nInstallation\n============\n\n```\npip install lendmart_reva\n```\n\nConfiguration\n=============\n\n### Step 1: export\n\n```\n\n# Here the home is the root user home directory\nexport LENDSMART_REVA_HOME=$HOME (or)\n\n# Here the home is the directory `/home/makesh`\nexport LENDSMART_REVA_HOME=\"/home/makesh\"\n\n# Here the ui home is the path to where the code of ui exists\nexport LENDSMART_REVA_UI_HOME='/home/makesh/ui'\n\n# Here the ui home is the path to where the code of worklet exists\nexport LENDSMART_REVA_WORKLET_HOME=\"/home/makesh/worklet\"\n\n```\n\n### Step 3: mkdir reva\n\n```\n\ncd $LENDSMART_REVA_HOME\n\nmkdir $LENDSMART_REVA_HOME/reva\n\n```\n\n### Step 3: reva.conf \n\nCopy the conf file to location `$LENDSMART_REVA_HOME/reva/config.json`\n\n```json\n{\n \"dev\": {\n \"api_root\": \"https://devapi.lendsmart.ai/api/v1\",\n \"application_graphql_endpoint\": \"https://devappgraphql.lendsmart.ai/v1/graphql\",\n \"application_graphql_auth_token\": \"\",\n \"lendsmart_access_token\": \"<dev-lendsmart-access-token>\"\n },\n \"uat\": {\n \"api_root\": \"https://testapi.lendsmart.ai/api/v1\",\n \"application_graphql_endpoint\": \"https://devappgraphql.lendsmart.ai/v1/graphql\",\n \"application_graphql_auth_token\": \"\",\n \"lendsmart_access_token\": \"<dev-lendsmart-access-token>\"\n },\n \"prod\": {\n \"api_root\": \"https://apiprod.lendsmart.ai/api/v1\",\n \"application_graphql_endpoint\": \"https://devappgraphql.lendsmart.ai/v1/graphql\",\n \"application_graphql_auth_token\": \"\",\n \"lendsmart_access_token\": \"<prod-lendsmart-access-token>\"\n }\n}\n```\n\n\ud83d\udc81 Please update the aut_token, namespace and lendsmart_access_token for the appropriate environments. This is purposefully left out for security reasons.\n\n\n<!-- commands -->\n# Command Topics\n\n* [`reva namespaces`](docs/namespaces.md) - manage namespaces on Lendsmart\n* [`reva workflows`](docs/workflow.md) - manage workflow configuration\n* [`reva loanproducts`](docs/loanproducts.md) - manage loanproducts configuration\n* [`reva sitesettings`](docs/sitesettings.md) - manage sitesettings configuration\n* [`reva worklet`](docs/worklet.md) - manage worklet configuration\n\n\n\n<!-- commandsstop -->\n\nReferences\n==========\n\n> [CLI](https://github.com/ceph/ceph-deploy)\n> [Configuration conf/reva.py](https://github.com/ceph/ceph-deploy/blob/a16316fc4dd364135b11226df42d9df65c0c60a2/ceph_deploy/conf/ceph.py)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Lendsmart opinionated tool to mirror QA to Prod. Deploy with ease.",
"version": "2.14",
"project_urls": {
"Homepage": "https://github.com/lendsmartlabs"
},
"split_keywords": [
"lendsmart",
"reva"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "49b8b985fef0d70bad3e136666b4e12c24b95a9f965c5a75cb777b578dc585cf",
"md5": "5996670c0d54b7addb49a5240a2c683f",
"sha256": "074955ceb78c6cb722a692d153a7bbf8eb5bf4bf0164ce387d59af1b06998482"
},
"downloads": -1,
"filename": "lendsmart_reva-2.14-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5996670c0d54b7addb49a5240a2c683f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 58571,
"upload_time": "2024-11-19T08:48:30",
"upload_time_iso_8601": "2024-11-19T08:48:30.975435Z",
"url": "https://files.pythonhosted.org/packages/49/b8/b985fef0d70bad3e136666b4e12c24b95a9f965c5a75cb777b578dc585cf/lendsmart_reva-2.14-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "19fac1896cd475d05e12c6e1a68ad2f173794ea8a308bef2807fa557081676f4",
"md5": "c724d02058ded3dd9c4fdb4f1367687b",
"sha256": "72efd3dc8c20c3b002ecefd0e3a596cb88270ba0b1b5d0b905f1b663b532524e"
},
"downloads": -1,
"filename": "lendsmart_reva-2.14.tar.gz",
"has_sig": false,
"md5_digest": "c724d02058ded3dd9c4fdb4f1367687b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 31061,
"upload_time": "2024-11-19T08:48:33",
"upload_time_iso_8601": "2024-11-19T08:48:33.021724Z",
"url": "https://files.pythonhosted.org/packages/19/fa/c1896cd475d05e12c6e1a68ad2f173794ea8a308bef2807fa557081676f4/lendsmart_reva-2.14.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-19 08:48:33",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "lendsmart-reva"
}