Skip to main content

Zerodha Login Automation - Selenium Based

Project description

Zerodha Login Automated; This package reads access token stored in dynamodb and provides KiteConnect / KiteTicker instances.

This package can only be used in conjunction with a dynamodb access_store that keeps access key stored

Context

This code is for a python package for automated login to Zerodha. The redirect URL is not handled here - Separate Repos with a container that runs as a lambda function saves the access token to dynamoDB

Check out zlogin-puppeteer (headless chrome based login to zerodha) [can be hosted for free in Google cloud functions] and zerodha-dynamodb-save-accesstoken [AWS lambda container] to save access token to dynamodb from redirect url.

How to productionalize

  • Get Zerodha (kite.trade) account for API based access to the platform.

  • Save the API key as env variable ZAPI

  • 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"

import zlogin
access_token = zlogin.fetch_access_token()

This repo is a sister repo with zerodha-dynamodb-save-accesstoken & zlogin-puppeteer tools which have a container code for lambda function that handles storage of access token to dynamodb and puppeteer based Google Cloud Function code to handle login process which redirects to the lambda.

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

zlogin-0.0.8.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

zlogin-0.0.8-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file zlogin-0.0.8.tar.gz.

File metadata

  • Download URL: zlogin-0.0.8.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0

File hashes

Hashes for zlogin-0.0.8.tar.gz
Algorithm Hash digest
SHA256 b02f0fb1e3cf474dc86d18ff3a4c695c034dedb6d1fadfd722c57ffd3485fe82
MD5 2d2a67eb01681521862a90f1008d17fe
BLAKE2b-256 2cad7cd6715518b6ddd9bf7994de46d61d3d2809466bce4754db31d9900f85bf

See more details on using hashes here.

File details

Details for the file zlogin-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: zlogin-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0

File hashes

Hashes for zlogin-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 172031c80f821e654ec9119ee5fe2131a5f5f344ff0b5a6e5b19d4e2b9ed7238
MD5 7903cd49830f30b40a83f306494cea27
BLAKE2b-256 b9701339bb70daf61b905fbadf76eaf03839e9b81a43b06b7102bde166cea4ab

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