Skip to main content

Collection of scripts to interact with NEPSE related websites!

Project description

NEPSE Utils

Collection of scripts to interact with NEPSE related sites.

Installation instruction

For Windows:

  • Step 1: Download Python installer from here. Choose version greater than 3.9.
  • Step 2: Launch the installer, tick "Add Python 3.10 to PATH" on the first page and complete the installation.
  • Step 3: Search for command prompt and open it.
  • Step 4: Verify that you have python version greater than 3.9 by typing python --version
  • Step 5: Verify that you have pip installed by entering pip --version
  • Step 6: Install nepseutils by entering: pip install nepseutils
  • Step 7: Launch nepseutils by entering: python -m nepseutils

For Linux and Mac:

  • Step 1: Install Python (Version greater than 3.9) using your package manager.
  • Step 2: Pip might not come with python in some of the distros. To install it, you can use your package manager or enter the following command curl https://bootstrap.pypa.io/get-pip.py | python
  • Step 3: Verify that you have python version greater than 3.9 by typing python --version
  • Step 4: Verify that you have pip installed by entering pip --version
  • Step 5: Install nepseutils by entering: pip install nepseutils
  • Step 6: Launch nepseutils by entering: python -m nepseutils

Note: Some distros might default to python2 when both python2 and python3 are installed so you might need to enter python3 and pip3 instead of python and pip.

Commands:

Command Description
add Add an account
remove Remove an account
change lock Change unlock password
list accounts Show list of accounts
list results Show list of results
azcaptcha init Add azcaptcha token
apply Apply open issues
status Check IPO application status
result Check IPO result
exit Exit the shell

Usage

You can launch nepseutils by entering python -m nepseutils in your command line. On the first launch, it will ask you to set a new password for nepseutils (Not MeroShare). You will have to enter this next time you launch nepseutils.

Launching nepseutils:

python -m nepseutils

Adding an account

Command:

add {16_digit_dmat_number} {meroshare_password} {crn} {meroshare_pin}

You don't need to enter other infos. It will be automatically obtained.

Example:

NepseUtils > add 1234567891234567 myp@ssw0rd 02-R00222224 1234 

Sample Output:

Successfully obtained details for account: Ram Bahadur

Applying for IPO

Command:

apply

Then you will see this kind of output:

NepseUtils > apply
+----------+----------------+-------+------------+
| Share ID | Company Name   | Scrip | Close Date |
+----------+----------------+-------+------------+
|   401    | Sample Company |  SMPL | 2021-01-01 |
+----------+--------------+-------+--------------+
Enter Share ID:

Enter share ID of company that you want to apply for.

Enter Share ID: 401
Units to Apply:

Enter number of units (Not rupees) that you want to apply. This will apply IPO for all the added accounts.

Checking IPO Result

Note: MeroShare has added a captcha for checking result. AZCaptcha token is needed for automatically solving captchas. Add token with azcaptcha init!

Command:

result

Sample Output:

NepseUtils > result
+----+------------+-------------------------------------------------+
| ID |   Scrip    |                      Name                       |
+----+------------+-------------------------------------------------+
| 1  |   MLBSL    |     MAHILA LAGHUBITTA BITTIYA SANSTHA LTD.      |
| 2  |    SBCF    |              Sunrise Bluechip Fund              |
| 3  |    JLIC    |            Jyoti Life Insurance Ltd             |
| 4  | NIBLSFUND  |             NIBL Samriddhi Fund -2              |
| 5  |    CHDC    |     CEDB Hydropower Development Company Ltd     |
| 6  |   PSFUND   |               Prabhu Select Fund                |
| 7  | NMBD209293 |           4% NMB Energy Bond 2092/93            |
| 8  | PRVUD2087  |            8.5 % PRVU Debenture 2087            |
| 10 |   MKJCL    |     Mailung Khola Jal Vidhyut Company Ltd.      |
| 11 |    SLIL    |          Sanima Life Insurance Limited          |
| 12 | NABILD2085 |             8% Nabil Debenture 2085             |
| 13 |   MALBSL   |   Manushi Laghubitta Bittiya Sanstha Limited    |
| 14 |   MEGAMF   |               Mega Mutual Fund -1               |
| 15 |    TPCL    |           Terhathum Power Company Ltd           |
| 16 |  NMBSBFE   |            NMB Saral Bachat Fund - E            |
| 17 |    NBF3    |              Nabil Balanced Fund 3              |
| 18 |    SUL     |                 Sahas Urja Ltd.                 |
| 19 |   BBNHCL   |     Buddhabhumi Nepal Hydro Power Co. Ltd.      |
| 20 |   NYADI    |            Nyadi Hydropower Limited             |
| 21 |   MBKJCL   |   Madhya Bhotekoshi Jalabidhyut Company Ltd.    |
| 22 |    SPCL    |           Samling Power Company Ltd.            |
| 23 |  CBLD2088  |            Civil Bank Debenture 2088            |
| 24 |   JSLBS    | Jalpa Samudayik Laghubitta Bittiya Sanstha Ltd. |
| 25 |    ENL     |             Emerging Nepal Limited              |
+----+------------+-------------------------------------------------+
Choose a company ID:

Enter ID of company that you want to check result for.

Choose a company ID: 21
+----------------------------+---------+----------+
|            Name            | Alloted | Quantity |
+----------------------------+---------+----------+
|       Ram  Bahadur         |  False  |   None   |
|       Hari  Bahadur        |  True   |    10    |
|       Shyam  Prasad        |  False  |   None   |
+----------------------------+---------+----------+

Removing account

Command:

remove

Sample Output

+----+----------------------------+------------------+------------------+--------------+
| ID |            Name            |       DMAT       |     Account      |     CRN      |
+----+----------------------------+------------------+------------------+--------------+
| 1  |       Ram  Bahadur         | 1201970008888888 | 0075757575757575 | 07-819284939 |
| 2  |      Hari  Bahadur         | 1201970007878887 |  8758752835478   |  M52394589   |
| 3  |      Shyam  Prasad         | 1201970002278282 | 5923459259243594 |  F59824935   |
+----+----------------------------+------------------+------------------+--------------+
Choose an account ID:

Then choose account to remove.

Show added accounts

Command:

list accounts

Sample Output

+----+----------------------------+------------------+------------------+--------------+
| ID |            Name            |       DMAT       |     Account      |     CRN      |
+----+----------------------------+------------------+------------------+--------------+
| 1  |       Ram  Bahadur         | 1201970008888888 | 0075757575757575 | 07-819284939 |
| 2  |      Hari  Bahadur         | 1201970007878887 |  8758752835478   |  M52394589   |
| 3  |      Shyam  Prasad         | 1201970002278282 | 5923459259243594 |  F59824935   |
+----+----------------------------+------------------+------------------+--------------+

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

nepseutils-0.3.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

nepseutils-0.3.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file nepseutils-0.3.2.tar.gz.

File metadata

  • Download URL: nepseutils-0.3.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure

File hashes

Hashes for nepseutils-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6730cad4308a2b2de98d75e7871c834d94ece287a0c1972b607a40d0eacdae50
MD5 9a76841effc98e33aba9499b08831c67
BLAKE2b-256 eb608e535acf08d560aaa5082f94b0294fa0f8914137ab5f675ad4ed65a625f8

See more details on using hashes here.

File details

Details for the file nepseutils-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: nepseutils-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure

File hashes

Hashes for nepseutils-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f90e5f7443569c304a5d918c6f68a6ed15a8c06668ba9140f6a2b129ee1326e3
MD5 4a548278414c3df109ab6ede873f1014
BLAKE2b-256 7ba8af193e7f1ae32872086a9cc2be0f8abaea4b77384fbf422086070b47cedb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page