Skip to main content

nselite

Lean, async-first Python client for NSE India end-of-day reports and market data. Python 3.13+, two runtime dependencies (httpx[http2], orjson).

import asyncio
from datetime import date
from pathlib import Path
from nselite import NSE, ReportKey


async def main():
    async with NSE() as nse:
        # Latest file, located via NSE's own report metadata
        await nse.download_report(ReportKey.CM_UDIFF_BHAVCOPY, Path("data"))
        # Backfill: concurrent, throttled to 3 req/s, holidays come back as None
        days = [date(2026, 11, d) for d in range(16, 20)]
        await nse.download_reports(ReportKey.CM_52W_HIGH_LOW, days, Path("data"))


asyncio.run(main())

Blocking scripts can use SyncNSE, which has the same methods without await.

What it covers

Module Methods
reports daily_reports, download_report, download_reports (17 ReportKeys)
archives equity_bhavcopy, delivery_bhavcopy, indices_bhavcopy, priceband_report, pr_bhavcopy, cm_mii_security_report
corporate actions, announcements, board_meetings, event_calendar, annual_reports, circulars, download_document
filings financial_results, results_comparison, integrated_filing_results, financial_results_xbrl, download_xbrl, fetch_xbrl_filings
market status, lookup, holidays, equity_stocks_by_index, volume_gainers, traded_stocks, gainers, losers

Derivatives are out of scope.

Migrating from NseIndiaApi

Change one import; old method names and error handling keep working:

from nselite.compat import NSE  # was: from nse import NSE

See docs/SOP.md for setup, adding reports, testing and releases.

Licensed GPL-3.0-or-later (parts derive from NseIndiaApi by Benny Thadikaran).

Metadata

Release files for nselite 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nselite 0.1.0
File Size Uploaded Provenance Actions
nselite-0.1.0.tar.gz 53.9 kB Without provenance Details for nselite-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nselite 0.1.0
File Interpreter ABI Platform Actions
nselite-0.1.0-py3-none-any.whl Python 3 none any Details for nselite-0.1.0-py3-none-any.whl

Total release size: 89.7 kB

Release files / nselite-0.1.0.tar.gz

Download URL nselite-0.1.0.tar.gz
Size 53.9 kB
Tags Source
SHA-256 checksum
How to use checksums
29069d0e75e2b97adc28cec1d0e9a125456c3cf12675e643700427a8f333b2a9
BLAKE2b-256 checksum
How to use checksums
6b879cab071ef28430b549660833e9aad914d87317e68c12cb0b8fcd31706b10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nselite-0.1.0-py3-none-any.whl

Download URL nselite-0.1.0-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ee985fe293dc4e89778270e15fe118f62a10dba2c8476a6fed3baff45eb0411
BLAKE2b-256 checksum
How to use checksums
17320e5fc60ee3629efd8f980edaf815b40251073ee468f5a4b2bf6067edc914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for nselite 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page