Skip to main content

Modern CLI tool for Meroshare IPO automation and NEPSE market data with interactive TUI

Project description

Nepse CLI - Meroshare IPO Automation & Market Data

PyPI version Python Version

Nepse CLI

A professional command-line tool for NEPSE market analysis and automated Meroshare IPO applications.

Key Features:

  • Comprehensive market data and technical analysis
  • Automated IPO/FPO/Rights application (headless or GUI mode)
  • Multi-member portfolio tracking and management
  • Real-time stock information, signals, and announcements
  • Interactive shell with command palette and autocompletion
  • Fast API-based IPO application with concurrent processing

Requirements

  • Python 3.8 or higher
  • Windows, Linux, or macOS
  • Internet connection
  • Playwright (auto-installed)
  • Meroshare account for IPO features

Installation

PyPI (Recommended)

Important: Avoid Microsoft Store Python. Use python.org for proper PATH configuration.

pip install nepse-cli

Update:

pip install --upgrade nepse-cli

Run:

nepse

If command not found, use: python -m nepse_cli or see Troubleshooting.


From Source

Development Installation:

cd "Nepse CLI"
pip install -e .

Windows Quick Start: Double-click start_nepse.bat to auto-configure and launch.

Browser Setup: Playwright browsers install automatically on first run. Manual installation:

playwright install chromium

Usage

Interactive Shell (Recommended)

nepse

Shell features include command palette (/), autocompletion, command history, and inline help.

Command Categories

IPO Automation

nepse apply              # ⚡ Fast API-based application (single member)
nepse apply-all          # ⚡ Fast API-based apply for all members
nepse result             # Check IPO application results

# Legacy browser-based commands (deprecated)
nepse apply-legacy       # Browser-based application (will be removed)
nepse apply-all-legacy   # Browser-based apply all (will be removed)

Member Management

nepse add-member         # Add/update family member
nepse list-members       # View all members
nepse edit-member        # Edit member details
nepse delete-member      # Remove a member
nepse manage-members     # Interactive member management

Portfolio & Authentication

nepse get-portfolio      # View member portfolio
nepse test-login         # Test Meroshare login
nepse dplist             # List available depository participants

Market Data & Indices

nepse ipo                # Open IPOs/FPOs/Rights
nepse nepse              # NEPSE indices
nepse subidx BANKING     # Sector sub-indices
nepse mktsum             # Market summary
nepse topgl              # Top gainers/losers
nepse sectors            # All sector performance

Stock Analysis

nepse stonk NABIL        # Stock details and live price
nepse profile NABIL      # Company profile
nepse fundamental NABIL  # Fundamental analysis
nepse depth NABIL        # Market depth (order book)
nepse 52week             # 52-week high/low performers
nepse near52             # Stocks near 52-week marks

Trading Information

nepse floor              # Floor sheet (live trades)
nepse brokers            # Broker information
nepse signals            # Trading signals
nepse announce           # Latest announcements
nepse holidays           # Market holidays

Features

IPO Automation

  • Automated application for IPO, FPO, and Rights offerings
  • Multi-member support for family-wide applications
  • Browser-based (Playwright) and API-based (fast) modes
  • Headless operation with optional GUI for debugging
  • Automatic share quantity calculation and validation
  • Result checking and status tracking

Market Analysis

  • Real-time indices (NEPSE, Sensitive, Float, Sector)
  • Stock fundamentals, profiles, and technical indicators
  • Market depth and order book analysis
  • Trading signals and price alerts
  • Floor sheet with live trade data
  • 52-week performance tracking
  • Broker rankings and analysis

Portfolio Management

  • Multi-member portfolio tracking
  • Real-time P&L calculation with WACC
  • Secure credential storage
  • Interactive member management
  • Login verification and session handling

User Interface

  • Modern TUI with Rich tables and panels
  • Interactive shell with autocompletion
  • Command palette for quick navigation
  • Progress indicators for long operations
  • Formatted output with color coding

Configuration

Credential data is stored in: C:\Users\%USERNAME%\Documents\merosharedata\

Files:

  • family_members.json - Member credentials
  • ipo_config.json - Application settings
  • nepse_cli_history.txt - Command history

Member Data Structure:

{
  "members": [
    {
      "name": "identifier",
      "dp_value": "139",
      "username": "meroshare_username",
      "password": "meroshare_password",
      "transaction_pin": "1234",
      "applied_kitta": 10,
      "crn_number": "CRN_NUMBER"
    }
  ]
}

Multi-Member Management

Manage credentials for multiple family members to streamline IPO applications.

Setup

nepse add-member

Required information:

  • Name identifier (e.g., "Dad", "Mom", "Self")
  • DP number and account credentials
  • Meroshare username and password
  • Transaction PIN (4-digit)
  • Default kitta amount
  • CRN number

Operations

nepse list-members           # View all members
nepse edit-member            # Modify member details
nepse delete-member          # Remove a member
nepse manage-members         # Interactive management menu

Batch Operations

nepse apply-all              # Apply IPO for all members
nepse fast-apply-all         # Fast apply for all members

Command Reference

Most Used Commands

nepse apply                  # Apply for IPO
nepse fast-apply             # Fast API-based IPO apply
nepse result                 # Check IPO results
nepse stonk <SYMBOL>         # Stock information
nepse mktsum                 # Market overview
nepse ipo                    # Open offerings
nepse get-portfolio          # View portfolio

Available Sector Indices

BANKING, DEVBANK, FINANCE, HOTELS AND TOURISM, HYDROPOWER, INVESTMENT, LIFE INSURANCE, MANUFACTURING AND PROCESSING, MICROFINANCE, MUTUAL FUND, NONLIFE INSURANCE, OTHERS, TRADING

Command Flags

  • --gui: Show browser window (for browser-based commands)
  • --verbose: Show detailed output
  • Type help <command> in shell for command-specific help

Security

  • Credentials stored locally in JSON format
  • User-level file permissions (600 on Unix)
  • Data stored in user's Documents directory
  • Never commit credential files to version control
  • Use environment variables for CI/CD if needed

Troubleshooting

Windows: 'nepse' Command Not Found

Most Common Issue: Microsoft Store Python has PATH configuration problems.

Recommended Solution:

  1. Uninstall Python from Microsoft Store
  2. Install from python.org
  3. Check "Add Python to PATH" during installation
  4. Reinstall: pip install nepse-cli

Alternative Solutions:

  1. Use module syntax:

    python -m nepse_cli
    
  2. Add Scripts to PATH manually:

    # Find Scripts path:
    python -c "import sys; import os; print(os.path.join(sys.prefix, 'Scripts'))"
    
    # Add output path to System Environment Variables (Win+R → sysdm.cpl → Advanced → Environment Variables)
    
  3. Reinstall with --user flag:

    pip uninstall nepse-cli
    pip install --user nepse-cli
    

Linux/Mac: Command Not Found

  • Ensure ~/.local/bin is in PATH
  • Use pip install --user nepse-cli
  • Restart terminal after installation

Browser Installation

playwright install chromium

Login Issues

nepse test-login         # Verify credentials
nepse list-members       # Check stored data
nepse edit-member        # Update credentials

Common Errors

  • Timeout errors: Check internet connection or use --gui to see what's happening
  • Element not found: Update playwright browsers or report issue
  • API errors: Service may be temporarily down, retry later

Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

License

This project is licensed under the MIT License. See LICENSE file for details.

Disclaimer

This tool is for educational and personal use only. Users are responsible for complying with Meroshare's terms of service and applicable regulations. The developers are not liable for any misuse or issues arising from the use of this tool.


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

nepse_cli-3.1.11.tar.gz (66.0 kB view details)

Uploaded Source

Built Distribution

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

nepse_cli-3.1.11-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

Details for the file nepse_cli-3.1.11.tar.gz.

File metadata

  • Download URL: nepse_cli-3.1.11.tar.gz
  • Upload date:
  • Size: 66.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nepse_cli-3.1.11.tar.gz
Algorithm Hash digest
SHA256 e552ae9ab92afea1c2eca29922f99c1ebfc12ffb4405c847956173646d09538a
MD5 b975c8f1b7d087555ae9d52a9cf8e8a4
BLAKE2b-256 a5281e6dd79e08e1a90903cec460cc3304ab66c62485fd6fd828440c956877b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for nepse_cli-3.1.11.tar.gz:

Publisher: python-publish.yml on menaceXnadin/nepse-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nepse_cli-3.1.11-py3-none-any.whl.

File metadata

  • Download URL: nepse_cli-3.1.11-py3-none-any.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nepse_cli-3.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 f0ae8045dd8b5a7fa2a5c19dd6f0d312a74def64389c2fafa264079b229c151f
MD5 316e3bc7c64043bffe905f20f5052e27
BLAKE2b-256 86c419a560f609aedf827048cb1542349c23664c0d9607b5922e6e647261c447

See more details on using hashes here.

Provenance

The following attestation bundles were made for nepse_cli-3.1.11-py3-none-any.whl:

Publisher: python-publish.yml on menaceXnadin/nepse-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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