Skip to main content

A Python module for Northern Electric Supply Company Limited (NESCO) Smart Meters

Project description

🔌 NESCO Prepaid CLI

PyPI version Python Versions License: MIT Downloads

A command-line interface (CLI) tool to collect information about Northern Electric Supply Company Limited (NESCO) prepaid electricity accounts.

Installation

Install the package using pip:

pip install nesco

Usage

Get Balance

Retrieve the current balance for a specific account:

nesco-cli get-balance -c <customer_number>

Example:

$ nesco-cli get-balance -c 12345678
987.43

Get Recharge History

View the recharge history for a specific account:

nesco-cli get-recharge-history -c <customer_number>

Example:

$ nesco-cli get-recharge-history -c 12345678
  ID  Token                     Power    Amount    Via     Date                  Status
----  ------------------------  -------  --------  ------  --------------------  --------
   1  0183-4597-1724-6908-6354   957.12   1000     ROCKET  01-JAN-2025 11:00 AM   Success
   2  4815-9365-5179-7943-3266   258.65    400     BKASH   01-FEB-2025 11:00 PM   Success
   3  2265-9417-3127-5691-9994   134.45    400     BKASH   01-MAR-2025 11:00 PM   Success
   ...

Get Monthly Consumption

Retrieve monthly consumption details for a specific account:

nesco-cli get-monthly-consumption -c <customer_number>

Example:

$ nesco-cli get-monthly-consumption -c 12345678
  Year  Month        Recharge    Discount    Usage
------  ---------  ----------  ----------  -------
  2025  March            2000       -20    1875.22
  2025  February          500        -5     433.15
  2025  January          1000       -10     812.08
  ...

Replace <customer_number> with your actual account number to use the commands.

Get Customer Info

$ nesco-cli get-customer-info -c 12345678
Name                Address   Electricity Office  Feeder Name      Meter Number    Approved Load (kW)
------------------  --------  ------------------  -------------  --------------  --------------------
MD. MINHAZUL HAQUE  RAJSHAHI  Rajshahi S&D4       GREATER ROAD      12345678901                     2

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

nesco-1.5.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

nesco-1.5.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file nesco-1.5.0.tar.gz.

File metadata

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

File hashes

Hashes for nesco-1.5.0.tar.gz
Algorithm Hash digest
SHA256 d93f695e5e3e913b5edf48370a451ca31ca0b235d49388d84734ce2e94f38313
MD5 670db49dcd7a14e0d661c8b3a92354d0
BLAKE2b-256 0b5b287998063e7d4767a569ae8945daf0bcb8581eec685d4e296537309d20fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for nesco-1.5.0.tar.gz:

Publisher: pypi.yml on mdminhazulhaque/python-nesco

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

File details

Details for the file nesco-1.5.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for nesco-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3325abf567907ea335f1f8be1f8382a2678c7a85b688015f56ab083daf03888
MD5 0a4c39ae3eab5dde945134cee18fee5b
BLAKE2b-256 71a3b431270aed15e12d269a540876c1086225dc251a1b38e4c0be37002e7fca

See more details on using hashes here.

Provenance

The following attestation bundles were made for nesco-1.5.0-py3-none-any.whl:

Publisher: pypi.yml on mdminhazulhaque/python-nesco

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