# Zerodha Login Automated; Supported by Lambda function that processes the redirect rul and stores accessk key to DynamoDB AND GCP function that automates login through headless chrome
## Context
This code is for a python package for automated login to Zerodha. The redirect URL is not handled here - Separate Repo with a container that runs as a lambda function saves the access token to dynamoDB
## How to productionalize
- Get Zerodha (kite.trade) account for API based access to the platform.
- Create a '.zerodha' file in your home directory (Sample provided - check .zerodha.sample file)
- Needed Variables in File are Zerodha API keys/secret
- Checkout zlogin-puppeteer repository that automates login process (using headless chrome)
- Check out the zerodha-dynamodb-save-accesstoken repository to set up a lambda function to handle Zerodha redirect url (it saves the access token in the save_access table in dynamodb)
- Install zlogin package from pypi, "pip install zlogin"
```python
import zlogin
access_token = zlogin.fetch_access_token()
```
## This repo is a sister repo with zerodha-dynamodb-save-accesstoken & zlogin-puppeteer tools which has a container code for lambda function that handles storage of access token to dynamodb;
Raw data
{
"_id": null,
"home_page": "https://github.com/prabhatrastogik/zlogin",
"name": "zlogin",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "Zerodha,Automated Login,Selenium Login",
"author": "Prabhat Rastogi",
"author_email": "prabhatrastogik@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b1/07/d35012809d8c5a9af7f0778f4c82967abdc938ae08fcb057bffe87cce137/zlogin-0.0.7.tar.gz",
"platform": null,
"description": "# Zerodha Login Automated; Supported by Lambda function that processes the redirect rul and stores accessk key to DynamoDB AND GCP function that automates login through headless chrome\n\n## Context\nThis code is for a python package for automated login to Zerodha. The redirect URL is not handled here - Separate Repo with a container that runs as a lambda function saves the access token to dynamoDB\n\n## How to productionalize\n- Get Zerodha (kite.trade) account for API based access to the platform.\n- Create a '.zerodha' file in your home directory (Sample provided - check .zerodha.sample file)\n - Needed Variables in File are Zerodha API keys/secret\n\n\n- Checkout zlogin-puppeteer repository that automates login process (using headless chrome)\n- Check out the zerodha-dynamodb-save-accesstoken repository to set up a lambda function to handle Zerodha redirect url (it saves the access token in the save_access table in dynamodb)\n- Install zlogin package from pypi, \"pip install zlogin\"\n\n```python\nimport zlogin\naccess_token = zlogin.fetch_access_token()\n```\n\n## This repo is a sister repo with zerodha-dynamodb-save-accesstoken & zlogin-puppeteer tools which has a container code for lambda function that handles storage of access token to dynamodb; \n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Zerodha Login Automation - Selenium Based",
"version": "0.0.7",
"split_keywords": [
"zerodha",
"automated login",
"selenium login"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "95b109b01cb77fb6194c8a50adb13f68",
"sha256": "0a746d52e852ad64b5a2615f128fc28ec7770d86e020b1240cc1080cb68c45bf"
},
"downloads": -1,
"filename": "zlogin-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "95b109b01cb77fb6194c8a50adb13f68",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 3990,
"upload_time": "2022-12-07T15:23:03",
"upload_time_iso_8601": "2022-12-07T15:23:03.458441Z",
"url": "https://files.pythonhosted.org/packages/8c/d3/34e5fae75e20c8d9306832d2cafb35fa557e63169398781eab999b9f3eff/zlogin-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "4ebeaf91cafcf0a0d7d4e0c7ec8169c4",
"sha256": "d1415e216863d2c13fa33d729f4d6dc16669259aae9cb3bb43c08f7fa06fd58d"
},
"downloads": -1,
"filename": "zlogin-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "4ebeaf91cafcf0a0d7d4e0c7ec8169c4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 3780,
"upload_time": "2022-12-07T15:23:05",
"upload_time_iso_8601": "2022-12-07T15:23:05.313625Z",
"url": "https://files.pythonhosted.org/packages/b1/07/d35012809d8c5a9af7f0778f4c82967abdc938ae08fcb057bffe87cce137/zlogin-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-07 15:23:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "prabhatrastogik",
"github_project": "zlogin",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "zlogin"
}