Registry / data / nsepython

nsepython

JSON →
library2.97pypypi✓ verified 79d ago

nsepython is a Python library that provides an interface to NSE India APIs, allowing users to fetch stock quotes, indices, derivatives, and other market data. The version is 2.97 with ongoing updates. Release cadence is irregular but frequent.

pip install nsepython
INSTALL
IMPORT
SIG · NSEPYTHON
N
nsepython
datapythonv2.97
Install
12.0s avg
Import
Disk
308MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.97 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 309.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 12.0s · import 0.000s · 297MB
308MB installed
● package 308MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

black_scholes_dexter
from nsepython import black_scholes_dexter
from nsepython import nsequote
equity_history
from nsepython import equity_history
from nsepython import nsequote
derivative_history
from nsepython import derivative_history
from nsepython import nsequote

Fetch stock quote for INFY

from nsepython import nsequote quote = nsequote('INFY') print(quote)
Debug
Known issues
breakingIn v2.0, the import path changed from `nsepython.nsequote` to `nsepython`. Old code using `from nsepython.nsequote import nsequote` will break.
fix
Use `from nsepython import nsequote`.
affects: >=2.0
gotchaNSE API rate limiting: frequent requests may lead to temporary IP bans or CAPTCHA blocks.
fix
Add delays between requests (e.g., `time.sleep(0.5)`).
affects: all
deprecatedThe function `nseget` is deprecated in favor of `nsefetch`.
fix
Replace `nseget` with `nsefetch`.
affects: >=2.8
Upgrade
Version history
2.97latest on PyPI · released May 26, 2025
Audit
Dependencies
requestsrequiredHTTP requests to NSE API
Agent activity
2 hits · last 30 days
node
2
Resources
nsepython — pip install nsepython · libregistry