Skip to main content

No project description provided

Project description

ZerodhaClient

ZerodhaClient is a Python package designed to automate the login process and scrape dashboard details from Zerodha Coin using Playwright. This package is intended for personal use to fetch investment details programmatically.

Features

  • Automates login to Zerodha Coin using Playwright.
  • Supports TOTP-based two-factor authentication.
  • Fetches investment details from the dashboard.

Installation

Ensure you have Python installed (Python 3.7+ recommended). Install the required dependencies before using the package:

pip install playwright pyotp

You also need to install Playwright’s browsers:

playwright install

Usage

Import and Initialize

from zerodha_client.main import ZerodhaClient


## Provide your TOTP authentication URL, username, and password
totp_auth_url = "otpauth://totp/YourAccount?secret=YOUR_SECRET"
username = "your_user_id"
password = "your_password"

client = ZerodhaClient(totp_auth_url, username, password)

Login to Zerodha Coin

client.login()

Fetch Dashboard Details


dashboard_details = client.get_dashboard_details()
print(dashboard_details)

Close the Session

client.close()

Dependencies

  • playwright: Used for browser automation.
  • pyotp: Generates TOTP-based OTPs for authentication.

Notes

  • This package is intended for personal use only.
  • Using automated tools to access financial services may violate terms of service. Ensure compliance before use.

Disclaimer

This tool is not affiliated with or endorsed by Zerodha. Use it responsibly and at your own risk.

Reference

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

zerodha_client-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

zerodha_client-0.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file zerodha_client-0.0.4.tar.gz.

File metadata

  • Download URL: zerodha_client-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for zerodha_client-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a231c4135cfdf2897d8c492da6ec1c1389b39a37ccebe31979bef21c5f26db39
MD5 0dacdfdc253de7d4859781ebfef774de
BLAKE2b-256 535ea355ab100cf6b3e4b6f54a523ec03be434988100a9d7d3b194902ae80a4e

See more details on using hashes here.

File details

Details for the file zerodha_client-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: zerodha_client-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for zerodha_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd297669b4237477bb5a1ad47ab7c79067f7bbefa77b2470e7bdcd269cd8a04f
MD5 f6a3c0d2122f8c2433be05bc30eb691f
BLAKE2b-256 fd4ba2498e0056c9d4ba2068cb44600fe7972688a075a8700832d69c0ebdad16

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