Skip to main content

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

Project description

Nesco Prepaid CLI

A command-line interface (CLI) tool to collect information about Nesco Prepaid 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-0.0.2.tar.gz (3.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-0.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nesco-0.0.2.tar.gz
Algorithm Hash digest
SHA256 81d943e6b10a0f53c54918d523d046699a328ad21aabf4a9e7d7004dac48ce09
MD5 1f5a25e4a65e8b3d4904ca9b115306b0
BLAKE2b-256 a55be499a11d8e658c638ea939a9d490bd8208b52b91801d5b5e9a4174846475

See more details on using hashes here.

Provenance

The following attestation bundles were made for nesco-0.0.2.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-0.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for nesco-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ebfe3bc4852c7988b45408fcdbc95903380e814e7de1313d6e441a07f60a446
MD5 6ff6fc6afb5ac1757fd61dc9c4e95d7e
BLAKE2b-256 970c9d35753bab8a62f2fa6b2f3118f2602616fb1f5193e698f9adb97a9ca613

See more details on using hashes here.

Provenance

The following attestation bundles were made for nesco-0.0.2-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