Saravanan666/pypi-org huggingface dataset:
Package: nsdotpy
NSDotPyA Python wrapper around httpx for legally interacting with the HTML NationStates site, as well as a barebones API client. Built for legality first and foremost, as well as ease of use.Installationpip install nsdotpySimple Examplefromnsdotpy.sessionimportNSSessionsession=NSSession("NSDotPy Example","1.0.0","Script Author's nation","Script User's nation")ifsession.login("User Nation","Password"):# logs in and checks if login was successfulsession.move_to_region("Lily")# only moves if you successfully logged in# an API client is also available, here's a simple exampledata=session.api_request("world",shard="nations")# it returns a benedict object (https://github.com/fabiocaccamo/python-benedict), which is a dict with some extra features# you can access the data like a normal dictnations=data["nations"].split(",")# or you can use a keyattribute (my personal favorite)nations=data.nations.split(",")TODO:Region Admin ControlsDossier and reports handlingMore fleshed out API ClientCards supportShoutouts to 9003Migrate automatic docs generation, code formatting, and PyPI uploading to GitHub Actions for better CIDocshttps://audreyreal.github.io/NSDotPy/nsdotpy/session.html#NSSessionGenerating DocsEnsure poetry is installed, or your system's package manager if applicable.Runpoetry installin the root directory of the project to install dependencies if you haven't already.Runpoetry run pdoc nsdotpy/session.py -d=google -o=docs/to generate the docsPublishing to PyPi (for maintainers)Ensure poetry is installed, or your system's package manager if applicable.Runpoetry installin the root directory of the project to install dependencies if you haven't already.Runpoetry buildto build the package. Ensure the version number inpyproject.tomlis correct against the version number insession.py.Runpoetry publishto publish the package to PyPi. You will need to have a PyPi account have supplied your API key to poetry.ContributingPull requests are welcome. Ensure all code is formatted withblack, that functions are type annotated (type annotating function variables not necessary), and docstrings are present using the Google style. If you use VSCode,you can use this extension for easy docstring generation.LicenseAGPL3.0-or-later. Any project that uses this library must be licensed under AGPL3.0-or-later as well. If being used in a web application, the source code must be prominently made available to users.
Package: nsdpy
nsdpyYour support means the world to me and helps me continue developing and maintaining this repository to benefit the entire community. Thank you for making a difference in the open-source world!IntroductionWorkfolwQuick startUsageGoogle ColabCommand lineAuthors and acknowledgmentSupportLicenceMore DocumentationIntroductionnsdpy (nucleotide or NCBI sequence downloader) aims to ease the download and sort of big bacth of DNA sequences from the NCBI database.
It can also be usefull to filter the sequences based on their annotations.
Using nsdpy the user can:SearchNCBI nucleotide databaseDownloadthe fasta files or the cds_fasta files corresponding to the result of the searchSortthe sequences based on their taxonomySelectcoding sequences from cds files based on the gene names using one or more regular expressions.
This can help the user retrieve some sequences for which the gene name is annotated in another field.Retrievethe taxonomic information and add it to the output sequences.Quick startClone the repo from Github:gitclonehttps://github.com/RaphaelHebert/nsdpy.gitpip:depending on the user environment pip may be replaced by pip3 if pip3 is usedpipinstallnsdpyminimum python version for nsdpy: 3.8.2Google Colab: save a copy ofthis notebookin your drive.WorkflowUsageGoogle colabnsdpy colab notebookCommand linensdpy-r"USER'S REQUEST"[OPTIONS]Authors and acknowledgmentRaphael HebertEmese MegleczSupportLicenseCode and documentation copyright 2021 the nsdpy authors. Code released under the MIT License.More DocumentationOfficial documentation:Readthedocs
Package: nse
💰 NseIndiaApiAn unofficial Python API for the NSE India stock exchange.Python version: >= 3.8If you ❤️ my work so far, please 🌟 this repo.👽 Documentationhttps://bennythadikaran.github.io/NseIndiaApiUpdatesPrior to v0.2.6, NSE class would exit on unhandled errors. This undesirable behavior has changed. It is left to the user to catch and handle these errors.Added a new method: NSE.getFuturesExpiry (See Documentation for details)🔥 UsageInstall with Pippipinstall-UnseThe class accepts a single argumentdownload_folder, astrfilepath, or apathlib object. The folder stores cookie and any downloaded files.Simple examplefromnseimportNSEfrompathlibimportPath# Working directoryDIR=Path(__file__).parentnse=NSE(download_folder=DIR)status=nse.status()advDec=nse.advanceDecline()nse.exit()# close requests sessionUsing with statementwithNSE(download_folder=DIR)asnse:status=nse.status()advDec=nse.advanceDecline()Catching errorsfromnseimportNSEfromdatetimeimportdatetimewithNSE('./')asnse:try:bhavFile=nse.equityBhavcopy(date=datetime.now())dlvFile=nse.deliveryBhavcopy(date=datetime.now())raiseRuntimeError('Some error')# force an exceptionexceptRuntimeErrorase:# continue execution or exit the scriptprint(repr(e))# execution continues if handled without exitactions=nse.actions()# NSE request session closed - continue processingSamples folderThesrc/samplesfolder contains sample outputs of various methods. The filenames match the method names. The output has been truncated in some places but demonstrates the overall structure of responses.
Package: nse50bse30
Nifty50BSE30This Python package helps developers scrap NSE 50 and BSE 30 tickersQuick StartUse the following command for installationPython2:pip install nse50bse30Python3:pip3 install nse50bse30Usageimport nse50bse30
nse50 = nse50bse30.getNSE50()
bse30 = nse50bse30.getBSE30()Have much more planned in future
Package: nseazy
NSEazyNSEazy Is A Python Library To Get Publicly Available Data NSE India and NIFTY IndicesInstallationpipinstall--upgradenseazyNSEazy requirespandas⇾Latest Release Information⇽⇾Older Release InformationUnoffical NSE (National Stock Exchange) of India APIThis repository,DrChandrakant/NSEazy, contains a newNSE (National Stock Exchange)API that makes fetching financial nse listed companies easier.  It interfaces nicely withPandasDataFrames.More importantly,the NSEazy API automatically does the extra work that the user previously had to do "manually" with the other API..The conventional way to import the new API is as follows:importnseazyasnseThe most common usage is then to callnse.help('show_data')where thehelpmethod andshow_datafunction for which the user seeks help.data_required={'Info':True}# LTP : True By Defaultnse.show_data('L&T',data_required)Details on how to call the new API can be found below underBasic Usage, as well as in the jupyter notebooks in theexamplesfolder.I am very interested to hear from you regarding what you think of the new NSE APInseazy, plus any suggestions you may have for improvement.  You can reach me atDrChandrakant.github@gmail.comor, if you prefer, provide feedback or a ask question on ourissues page.
Package: nse-fno-expiry-calculator
Introduction to NSE-FNO-expiry-calculatorThis package gives you an easy methods to calculate near and far weekly and monthly expiry dates which also considers NSE holiday calendar.Installationpip install nse_fno_expiry_calculator
// if you are using pipenv, then execute below
pipenv install nse_fno_expiry_calculatorUsageThere are 4 methods which reurns near and far weekly and monthly expiry dates# print('today is '+str(pendulum.now().date()))
# print('nearest weekly exp is '+str(getNearestWeeklyExpiryDate()))
# print('next weekly exp is '+str(getNextWeeklyExpiryDate()))
# print('nearest monthly exp is '+str(getNearestMonthlyExpiryDate()))
# print('next month exp is '+str(getNextMonthlyExpiryDate()))
Package: nse-info
# NSEInfoNSEInfo is a tool to# Sample usages## SearchFind all NSE scripts related to NFS:` xxx search nfs `Find all NSE exploit scripts related to SMB:` xxx search smb--categoryexploit `Display all the NSE scripts in the categorybrute(bruteforce):` xxx--show-all--categorybrute `Show the first 5 NSE scripts in the categorydiscover:` xxx--show-all--categorydiscovery--limit5 `Display all the NSE scripts installed:` xxx--show-all`If your NSE scripts are not the standard location/usr/share/nmap/scripts/, you can use the-lor–locationoption to provide your customized path.## Usage samplesShow a quick description and sample usages (if available) of the NSE scripthttp-wordpress-enum:` xxx usagehttp-wordpress-enum`# Running the tests` $ python-munittest discover test `
Package: nselib
NSElib 0.6Python Library to get publicly available data on new NSE india website.Release NotesCompatible and Tested with Python 3.8 and aboveFuture release will be done on requirement basicLibraries RequiredrequestsbeautifulsoupnumpyscipypandaslxmlFor Windows systems you can install Anaconda, this will cover many dependencies (You'll have to install requests and beautifulsoup additionally though)InstallationFresh installation$pip install nselibUpgrade$pip install nselib --upgradeFunction listnselibtrading_holiday_calendarExample :import nselibdata = nselib.trading_holiday_calendar()Capital Marketprice_volume_and_deliverable_position_dataprice_volume_datadeliverable_position_databulk_deal_datablock_deals_datashort_selling_databhav_copy_with_deliverybhav_copy_equitiesequity_listfno_equity_listnifty50_equity_listindia_vix_dataindex_datamarket_watch_all_indicesfii_dii_trading_activityExample :from nselib import capital_marketdata = capital_market.price_volume_and_deliverable_position_data(symbol='SBIN', from_date='01-06-2023', to_date='10-06-2023')ORdata = capital_market.price_volume_and_deliverable_position_data(symbol='SBIN', period='1M')More functions will be available in future releases...Derivativefuture_price_volume_dataoption_price_volume_datafno_bhav_copyparticipant_wise_open_interestparticipant_wise_trading_volumeexpiry_dates_futureexpiry_dates_option_indexnse_live_option_chainfii_derivatives_statisticsExample :from nselib import derivativesdata = derivatives.future_price_volume_data(symbol='SBIN', instrument='FUTSTK', from_date='01-06-2023', to_date='10-06-2023')ORdata = derivatives.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')Note: instrument type ( future index = FUTIDX, future stocks = FUTSTK, option index = OPTIDX, option stocks = OPTSTK)More functions will be available in future releases...DebtMore functions will be available in future releases...How can I contribute?There are multiple ways in which you can contribute-Write about your projectThere are working on to add many function to this library. NSElib at the moment is short of good documentation. There are lot of features in NSElib yet to come :( , so till we complete the documentation, I'll need support from the community.Please write about your projects in blogs, quora answers and other forums, so that people find working examples to get started.Raising issues, bugs, enhancement requestsFor quick resolution please raise issues bothhere on issue page. I'll try my best to address the issues quickly on github as and when I get notified, but raising it on stackoverflow will provide you access to a larger group and someone else might solve your problem before I do.Submit patchesIf you have fixed an issue or added a new feature, please fork this repository, make your changes and submit a pull request.Here's good article on how to do this.Looking forward for healthy participation from community.
Package: nsenter
This Python package allows entering Linux kernel namespaces (mount, IPC, net, PID, user and UTS) by doing the “setns” syscall.
The command line interface tries to be similar to thensenterC program.Requires Python 2.6 or higherSee the introductoryblog post “Entering Kernel Namespaces from Python”.Install from PyPI:sudo pip3 install nsenterInstall from git source:python3 setup.py installExample command line usage:docker run -d --name=redis -t redis
sudo nsenter --all --target=`docker inspect --format '{{ .State.Pid }}' redis` /bin/bashExample usage from Python:importsubprocessfromnsenterimportNamespacewithNamespace(mypid,'net'):# output network interfaces as seen from within the mypid's net NS:subprocess.check_output(['ip','a'])# or enter an arbitrary namespace:withNamespace('/var/run/netns/foo','net'):# output network interfaces as seen from within the net NS "foo":subprocess.check_output(['ip','a'])
Package: nsepython
NSEPython is a Python library to get publicly available data on the currentNSEIndiaandNIFTY Indicessite by communicating with their REST APIs.Support and Beta FunctionsIf you have other doubts or want to check out the beta functions, visit theNSEPython Discussionsforum.If you have feature requests, you can submit them at theNSEPython Feature Requestforum.VersionsThere are two versions of NSEPython depending on the execution environment. While it's technically feasible to combine these versions into a single program, doing so could introduce latency. Given the financial nature of this program, time is of the essence.NSEPython EditionCompatibilityTested EnvironmentsLocal EditionLaptops (Windows 9, 10)Windows 9, Windows 10Server EditionServers (AWS, Google Colab, DigitalOcean)AWS, Google Colab, DigitalOceanInstallationUse the package managerpipto install nsepython.NSEPython Local EditionAccess NSEPython for laptops, specifically tailored for Windows 9 and Windows 10 compatibility.pipinstallnsepythonNSEPython Server EditionLeverage NSEPython designed for server environments, seamlessly functioning on AWS, Google Colab, and DigitalOcean.pipinstallnsepythonserverCross Library MigrationAll the functions from the two renowned packages, NsepY and NSETools, have been migrated here with the same function names. Both of these packages had been left unmaintained for a considerable period.Advanced UsecasesMastering AlgoTrading: A Beginner's Guide using NSEPythonCandlestick Charts in Python with NSEPython and PlotlyCalculate any Option Greek using Black Scholes Formula in PythonHow to find the beta of Indian stocks using Python?How to get Historical PE, PB and Dividend Ratio of any index using PythonDesigning an Index Fund From Scratch in Indian Share MarketBuilding An Market-Weight Adjusted N50 Index Fund â€“ Part IBuilding An Market-Weight Adjusted N50 Index Fund â€“ Part IIHow to calculate NIFTY 50 value from the stock prices in PythonCoding Heatmap and ORBCreating Dynamic Heatmap for Indian Stock MarketCoding Heatmap Opening Range Breakout Strategy in Python â€“ Part 1Coding Heatmap Opening Range Breakout Strategy in Python â€“ Part 2Markov ChainStochastic Modeling in Stock MarketApplication of Markov Chains in Stock MarketMarkov Chains in Stock Market Using Python â€“ Getting Transition Matrixâ€‹How to do Random Walk using NSEPython in Indian Stock MarketMarkov Chain and Linear Algebra â€“ Calculation of Stationary Distribution using Pythonâ€‹Find the Equilibrium Matrix in Markov Chain using Python in Indian Stock MarketLeverageInLeverage, a plethora of trader-focused tools has been meticulously crafted using NSEPython.Here's an illustration of aSectoral Heatmap, showcasing the extent of complexity that NSEPython API can effortlessly handle.
Package: nsepythonserver
NSEPython is a Python library to get publicly available data on the currentNSEIndiaandNIFTY Indicessite by communicating with their REST APIs.Support and Beta FunctionsIf you have other doubts or want to check out the beta functions, visit theNSEPython Discussionsforum.If you have feature requests, you can submit them at theNSEPython Feature Requestforum.VersionsThere are two versions of NSEPython depending on the execution environment. While it's technically feasible to combine these versions into a single program, doing so could introduce latency. Given the financial nature of this program, time is of the essence.NSEPython EditionCompatibilityTested EnvironmentsLocal EditionLaptops (Windows 9, 10)Windows 9, Windows 10Server EditionServers (AWS, Google Colab, DigitalOcean)AWS, Google Colab, DigitalOceanInstallationUse the package managerpipto install nsepython.NSEPython Local EditionAccess NSEPython for laptops, specifically tailored for Windows 9 and Windows 10 compatibility.pipinstallnsepythonNSEPython Server EditionLeverage NSEPython designed for server environments, seamlessly functioning on AWS, Google Colab, and DigitalOcean.pipinstallnsepythonserverCross Library MigrationAll the functions from the two renowned packages, NsepY and NSETools, have been migrated here with the same function names. Both of these packages had been left unmaintained for a considerable period.Advanced UsecasesMastering AlgoTrading: A Beginner's Guide using NSEPythonCandlestick Charts in Python with NSEPython and PlotlyCalculate any Option Greek using Black Scholes Formula in PythonHow to find the beta of Indian stocks using Python?How to get Historical PE, PB and Dividend Ratio of any index using PythonDesigning an Index Fund From Scratch in Indian Share MarketBuilding An Market-Weight Adjusted N50 Index Fund â€“ Part IBuilding An Market-Weight Adjusted N50 Index Fund â€“ Part IIHow to calculate NIFTY 50 value from the stock prices in PythonCoding Heatmap and ORBCreating Dynamic Heatmap for Indian Stock MarketCoding Heatmap Opening Range Breakout Strategy in Python â€“ Part 1Coding Heatmap Opening Range Breakout Strategy in Python â€“ Part 2Markov ChainStochastic Modeling in Stock MarketApplication of Markov Chains in Stock MarketMarkov Chains in Stock Market Using Python â€“ Getting Transition Matrixâ€‹How to do Random Walk using NSEPython in Indian Stock MarketMarkov Chain and Linear Algebra â€“ Calculation of Stationary Distribution using Pythonâ€‹Find the Equilibrium Matrix in Markov Chain using Python in Indian Stock MarketLeverageInLeverage, a plethora of trader-focused tools has been meticulously crafted using NSEPython.Here's an illustration of aSectoral Heatmap, showcasing the extent of complexity that NSEPython API can effortlessly handle.
Package: nsequoter
nsequoter DocumentationAuthor:Aditya KeidaVersion:1.0.0Date:7th Jul, 2016License:MITMotivationPython is fast becoming the programing language of choice for Quantsand Data Analysts, and an easy way to fetch data from the mostimportant sources is needed. The power and popularity of Python residein the ability to reuse code on through over 40000 libraries and modules.That said, getting quotes from the National Stock Exchange of India (NSE)is quite hard in python, and most other languages for that matter.nsequoter is a module that aims to make it trivially easy to get thesequotes from the NSE, by simply reading the data off the exchange’s websitehttp://www.nseindia.comand importing it into python. The current versionSupports equity and equity futures. equity options and currency derivativeswill be added in the next version. Indexes will follow after that.UsageThe simplest way to use the library is as follows:>>import nsequoter #imports the module and all the functions in it



>>#to get a float value of the quote for '3M India'

>>nsequoter.get_equity_quote('3MINDIA') #use the listed symbol as argument



>>#to get a float value of the quote for '3M India' July futures

>>nsequoter.get_futures_quote('3MINDIA', 'JUL') #use symbol and month as argumentNote that the arguments are not case sensitive. However, the symbol/codeshould be as listed. Months can be entered as three letter months (String)or their calendar number (Jul = 7, Aug = 8, etc.)Futures contracts expire on the Thursday of each month. Queries afterthat date will result in an exception.
Package: nserver
NServer: a high-level Python DNS Name Server Framework.NServer is a Python framework for building customised DNS name servers with a focuses on ease of use over completeness. It implements high level APIs for interacting with DNS queries whilst making very few assumptions about how responses are generated.DocumentationDocumentationQuickstart GuideChange LogLicenceThis project is licenced under the MIT Licence - seeLICENCE.This project may include other open source licenced software - seeNOTICE.AuthorsA project by Nicholas Hairs -www.nicholashairs.com.
Package: nsescraper
nsescraperis a an open-source python package to clean raw text data.InstallationTo install using pip, usepipinstallnsescrapernsescraperrequiresPython 3andPandasto execute.Features:nsescraperpackage contains different functions such as:intraday_index: Scrapes intra day data for any index from NSEintraday_stock: Scrapes intra day data for any listed stock from NSEUsageImport the library:fromnsescraperimport*Choose a method:To scrap current days nse index/stock data as 1 minute candle formatintraday_index("nifty 50")intraday_stock("britannia")To scrap current days nse index/stock data as 1 second tick formatintraday_index("nifty midcap 100",tick=True)intraday_stock("dr reddy",tick=True)To scrap current days nse index/stock data as required length minute candleintraday_index("nifty energy",candlestick=10)intraday_stock("Zomato",candlestick=69)To scrap historical nse index/stock datahistorical_index('NIFTY 50')historical_stock('ABB')
Package: nsetools
Project Pagehttp://nsetools.readthedocs.ionsetoolsPython library for extracting realtime data from National Stock Exchange (India)Introduction.nsetools is a library for collecting real time data from National Stock Exchange (India). It can be used in various types of projects which requires getting live quotes for a given stock or index or build large data sets for further data analytics. You can also build cli applications which can provide you live market details at a blazing fast speeds, much faster that the browsers. The accuracy of data is only as correct as provided on www.nseindia.com.Main Features:Getting live quotes for stocks using stock codes.Return data in both json and python dict and list formats.Getting quotes for all the indices traded in NSE, e.g CNX NIFTY, BANKNIFTYetc.Getting list of top losers.Getting list of top gainers.Helper APIs to check whether a given stock code or index code is correct.Getting list of all indices and stocks.Cent percent unittest coverage.DependenciesTo keep it simple and supported on most of the platforms, it uses only core python libraries, hence there are no external dependencies. It can be used out of box and absolutely not set up is required except an internet connection.Detailed DocumenationFor complete documenation, please referhttp://nsetools.readthedocs.io
Package: nsfc
国家自然科学基金数据查询系统安装pip3installnsfc数据下载数据库文件较大，可通过百度网盘进行下载
(下载链接提取码:2nw5)下载所需的数据库文件，如project.A.sqlite3, 或全部数据project.all.sqlite3保存至nsfc的安装路径下的data目录下, 如：/path/to/site-packages/nsfc/data/project.db或者保存至HOME路径下的nsfc_data目录下，如~/nsfc_data/project.db也可以通过-d参数指定要使用的数据库文件使用示例本地查询# 查看帮助nsfcquery# 列出可用的查询字段nsfcquery-K# 输出数量nsfcquery-C# 按批准年份查询nsfcquery-C-sapproval_year2019# 按批准年份+学科代码(模糊)nsfcquery-C-sapproval_year2019-ssubject_code"%A%"# 批准年份也可以是一个区间nsfcquery-C-sapproval_year2015-2019-ssubject_code"%C01%"# 结果输出为.jl文件nsfcquery-sapproval_year2019-ssubject_code"%C0501%"-oC0501.2019.jl# 结果输出为xlsx文件nsfcquery-sapproval_year2019-ssubject_code"%C0501%"-oC0501.2019.xlsx-Fxlsx# 限制最大输出条数nsfcquery-L5-sapproval_year2019结题报告下载nsfcreport20671004nsfcreport20671004-oout.pdf其他功能LetPub数据获取nsfccrawl本地数据库构建/更新nsfcbuild其他说明目前基本上只有2019年之前的数据，2020年的数据很少后续有数据时会再更新更新记录[2021-11-10] version 2.0.3update base_url of Officialupdate url of Official.get_conclusion_data
Package: nsfds2
nsfds2is 2D Navier-Stokes Solver that uses finite difference method.nsfds2is specialized in acoustic simulations.nsfds2is still in developpement. It is still full of bugs and comes withABSOLUTELY NO WARRANTY.Dependenciespython:>= 3.6numpy:>= 1.1matplotlib:>= 3.0h5py:>= 2.8progressbar33:>= 2.4ofdlib2:>= 0.11.0fdgrid:>= 0.11.0mplutils:>= 0.4.2Important:To create animations usingnsfds2 make movie, you also need to
haveffmpeginstalled on your system.InstallationTo installnsfds2:$pipinstallnsfds2Note:To compileofdlib2, OS X users may recquire:$xcode-select--installLinksDocumentation:http://perso.univ-lemans.fr/~cdesjouy/nsfds2/Source code:https://github.com/ipselium/nsfds2Bug reports:https://github.com/ipselium/nsfds2/issuesfdgrid:https://github.com/ipselium/fdgrid