Saravanan666/pypi-org huggingface dataset:
Package: nepali-municipality
Nepali MunicipalitiesThis is a simple and small python package contributed by me to get all list of municipalities of Nepal based on given districts of Nepal on latest version now you can autocomplete other info when municipalities name is given.ContentsInstallation
Use the package manager pip to install nepal-municipalities.To Autocomplete all info based on municipalities name provided
for example if you provide municipalities names then rest of district and province will be autocompleted.fromnepali_municipalitiesimportNepalMunicipalityprint(NepalMunicipality().all_data_info('Kathmandu'))[{'province':'Province 3','country':'Nepal','id':311,'district':'Kathmandu','name':'Kathmandu'}]If No matching municipalities are supplied The Exception is thrown as belowNomatchinginfoforprovidedmunicipalitiestrychangingspellingortryanothername.To get list of all districts of Nepalfromnepali_municipalitiesimportNepalMunicipalityprint(NepalMunicipality().all_districts())# ['Bhojpur', 'Dhankuta', 'Ilam', 'Jhapa', ......]To get list of all municipalities of Nepal based on District provided.fromnepali_municipalitiesimportNepalMunicipalityprint(NepalMunicipality('Kathmandu').all_municipalities())# ['Kathmandu', 'Kageshwori Manohara', 'Kirtipur', 'Gokarneshwor', 'Chandragiri', 'Tokha', 'Tarkeshwor', 'Dakchinkali', 'Nagarjun', 'Budhanilkantha', 'Shankharapur']print(NepalMunicipality('Kaski').all_municipalities())ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.#Update on new version
Autocomplete
This version has major update as you can autocomplete all remaining fields when municipalities name is provided.
you can now useNepali MunicipalitiesAPI too.LicenseMIT
Package: nepali-phone-number
Nepali Phone NumberNepali Phone Number is a Python library for dealing with nepali phone numbers with both nepali and english inputs.InstallationUse the package managerpipto install nepali-phone-number.pipinstallnepali-phone-numberUsageNepali Phone Numberfromnepali_phone_numberimportNepaliPhoneNumberphone_number=NepaliPhoneNumber(nepali_number_input='९८४६५११९६२')# for nepali inputphone_number.convert_to_english()# returns "9846511962"phone_number.is_valid_number()# returns "True" for valid number and "False" for invalid numberphone_number.get_number_detail()# returns number detail eg. {'number': '9846511962', 'network_provider': 'NTC'}phone_number.get_number_detail()# returns {'number': '9816154724', 'network_provider': 'NCELL', 'zone': 'Gandaki', 'sim_type': 'Prepaid'}# in case of ncell numberphone_number=NepaliPhoneNumber(english_number_input='9846511962')# for english inputphone_number.convert_to_nepali()# returns "९८४६५११९६२"Nepali LandLine Numberfromnepali_phone_numberimportNepaliLandLineNumberland_line_number=NepaliLandLineNumber(nepali_number_input='०६१५२८५१८')# for nepali inputland_line_number.convert_to_english()# returns "061538518"land_line_number.is_valid_number()# returns "True" for valid number and "False" for invalid numberland_line_number.get_number_detail()# returns number detail eg. {'number': '061538518', 'area': 'Kaski'}phone_number=NepaliLandLineNumber(english_number_input='061538518')# for english inputphone_number.convert_to_nepali()# returns "०६१५२८५१८"ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: nepali-roman
nepali-romanPackage to convert Nepali text to romanized English.Many a time, while working with data, either from government sector or from private sector, we encounter Nepali names of
VDCs, municipalities, local level units, districts and places. While merging such data with another datasheet consisting
names of units in English, we need to romanize the Nepali names to English before using some text similarity algorithms
to do string matching.This package helps in romanizing Nepali names using rudimentary script. It is worth mentioning that romanization of
Nepali text used in our daily life is inconsistent. For example, the popular romanization of "नेपाल" is "Nepal". It might
seem as the correct romanization but if we have to distinguish between "नेपाल" and "नेपल", we can't do that with this
romanization scheme. So, this package uses unique and standard romanization scheme such that no two Nepali words have
same romanization.Installationnepali-romanpackage is available forPython 3and can be installed usingpip.First make surepipis installed.Then, the package can be installed using this command.pip install nepali-romanUsageImport thenepali_romanmodule using the following command.importnepali_romanasnrThenepali_romanmodule has three functions:is_devanagari,romanize_textandromanize.is_devanagariThis function checks if the text is in Devanagari format.Detail description:
In the text, it ignores all the punctuations, white spaces and other non-alphanumeric characters and then counts the
number of devanagari characters. If the number of devanagari characters is more than or equal to 50% of the stripped
text, the function deems the text devanagari, otherwise not.Syntax:>>>nr.is_devanagari(text)Example:>>>importnepali_romanasnr>>>nr.is_devanagari("नगरपालिका")True>>>nr.is_devanagari("surajपालिक")False>>>nr.is_devanagari("suraj")Falseromanize_textThis function can be used to romanize the Nepali text to English.Syntax:>>>nr.romanize_text(nepali_text)Example:>>>importnepali_romanasnr>>>nr.romanize_text("नगरपालिका")nagarapaalikaaromanizeThis function takes Nepali text file as an input and saves the romanized text in specified output file.Syntax:>>>nr.romanize(input_file_path,output_file_path)Example:>>>importnepali_romanasnr>>>nr.romanize('nepali.txt','romanized_english.txt')# this takes Nepali text file nepali.txt and stores romanized English in the file romanized_english.txtContributionsThe package is licenced with The MIT License (MIT) about which details can be found in theLICENSEfile. As
the package is open sourced and requires many improvements and extensions, any contributions are welcome. Any other
feedback of any sort are highly welcome.
Package: nepali-stemmer
Nepali StemmerThis is a simple Nepali stemmer. It iteratively separates out the suffixes (postpositions) until no more separation can be processed. The algorithm is based on hindi-stemmer.Features:Iterative separationHandles the postposition attached with punctuations carefullyExample: नेपाललाई, -> नेपाल लाई,Basic text cleaningCross-verification with Nepali dictionaryHow to run>>> from nepali_stemmer.stemmer import NepStemmer
>>> nepstem = NepStemmer()
>>> nepstem.stem("नेपालको एमाले पार्टीका झोले, मण्डलेहरु अमेरिका आउने रे !")                                                                                                      

'नेपाल को एमाले पार्टी का झोले, मण्डले हरु अमेरिका आउने रे !'To-do:Word transformation with stemming processIR evaluationCode-mixed dataReferences:Suffix list:https://github.com/birat-bade/NepaliStemmerNepali Dictionary :https://github.com/PraveshKoirala/stemmerAlgorithm :https://github.com/sainimohit23/hindi-stemmerContactEmail:oyashiNote: Project created during COVID-19 quarantine out-of-boredom and necessity
Package: nepalithar
Nepali TharThis is a simple Nepali Thar package. This package can be used to generate list of Nepali surnames and detect them.Features:Split name based on surname.Detects the position of Nepali Surname in a text.Checks if the words is Nepali Surname or not.Gives a list of Nepali Surname's.How to Import>>> pip install nepalithar

>>> import nepalithar

>>> thar = nepalithar.Caste()Check Nepali Surname>> thar.is_true("Rajesh")

False

>>> thar.is_true("Hamal")

TrueGet Random n number of Surname>> thar.get(3)

['Kutal', 'Shrestha', 'Rapacha']Get Position of Surname in a text>> thar.get_position("Rajesh Hamal Madhu Bhattarai")

[1, 3]Detect Position along with surname>> thar.detect('Rajesh Hamal Madhu Bhattarai')

[(1, 'Hamal'), (3, 'Bhattarai')]Split a group of name based on surname>> thar.split_name("Rajesh Hamal Madhu Bhattarai")
['Rajesh Hamal', 'Madhu Bhattarai']References:Nepali Thar Dataset :https://github.com/amitness/tharOthers:Note: Package created during COVID-19 quarantine out-of-boredom.
Package: nepalitokenizer
Tokenizing Nepali Text SentencesInstallation Guidepipinstallnepali_tokenizerUsagefromnepali_tokenizerimportNepaliTokenizertokenize=NepaliTokenizer()print(tokenize.tokenizer('के छ खबर तिम्रो ? '))# output--> ['खबर','तिम्रो']We can use it with pandas dataframe too#for exampledf.head()#---> List of nepali corpora with 100 rowstokenize=NepaliTokenizer()df=df[0].apply(tokenize.tokenizer)#output--> All the text in tokenized formsFeel Free to Contribute.
Package: nepali-to-roman
Nepali-to-Roman 🌐Elegantly transform Nepali text into Romanized English with precision using the powerfulnepali-to-romanPython package. Overcoming the limitations of existing solutions, this package meticulously maps Nepali literals and words to their precise Romanized counterparts.🚀 InstallationInstallnepali-to-romaneffortlessly usingpip. Ensure you havepipinstalled and run:pipinstallnepali-to-roman🎨 UsageImport thentrmodule into your Python script or interactive environment:importntrThentrmodule exposes thenep_to_romfunction, designed for transliterating Nepali text. Each word in a sentence is individually transliterated, and the results are seamlessly merged into a single string.Syntax:ntr.nep_to_rom(text)Example:importntrprint(ntr.nep_to_rom("म नेपाल मा बस्छु ।"))# Output: ma nepal ma baschhu .🌱 ContributionsThis package is licensed under The MIT License (MIT), details of which can be found in theLICENSEfile. As an open-source project, we enthusiastically welcome contributions and feedback. If you have ideas for improvements or extensions, please feel free to contribute.👥 About ContributorsDiwas PandeyIshparsh Uprety
Package: nepali-unicode-converter
Nepali Unicode ConverterA tool to convert Romanized text to corresponding Nepali unicode.Installationpip install nepali-unicode-converterUsagefromnepali_unicode_converter.convertimportConverterconverter=Converter()mystring='ke chha hajura?'print(converter.convert(mystring))## Output: 'के छ हजुर?'Mapping TableBasic vowelsRomanUnicodeRomanUnicodeaअooऊaaआRiॠeeईReeॠiइeएuउaiऐoओBasic AkaarsRomanUnicodeRomanUnicodeRomanUnicodekaकTaटpaपkhaखThaठphaफgaगDaडfaफghaघDhaढbaबNgaङNaणbhaभNGaङ्गtaतvaभchaचthaथmaमchhaछdaदyaयjaजdhaधraरjhaझnaनlaलyNaञpaपshaशwaवsaसShaषhaहkshaक्षtraत्रgyaज्ञgYaग्यHalantasJust omit the 'a' at the end.Kaar and other suffixesRomanUnicodekaaकाkiकिkeeकीkuकुkooकूkeकेkaiकैkoकोkauकौkaMकंkaNNकँka:क:mRIमृNumbersThere is a natural mapping.TODOMake it more intelligent.
Package: nepal-stock-price
nepal-stock-priceThis is a python package to download the stock price data of the companies listed in Nepal Stock Exchage(NEPSE).Installationpipinstallnepal-stock-priceUsagefromnepse_dataimportNepseData#scripts nameprice_history=NepseData("nica")data_df=price_history.price_history()#filepath to save price history in csv formatfile_name="nica.csv"data_df.to_csv("data/"+file_name,encoding='utf-8',index=False)Hurray!!! Now you will be able to get the stock price data of any companies which are listed on NEPSE...TODOadd visualizationadd features like to get todays_price, broker_list, news, dividend_history etc.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.ContactIf you have any queries then drop amessage hereorvisit here.
Package: nepal-stonks
STONKInstallationpip install nepal_stonksAfter the installation you can use the cli application with the priceof commandUsageusage: priceof [-h] [-c [...]] [-f] [-n] [-m] [-ms] [-d] [-cu] [-ci][--losers] [--gainers] [--supply] [--demand] [--turnover][--volume] [--transactions]STONK, complete NEPSE solution in command lineoptional arguments:-h, --help            show this help message and exit-c [ ...], --company [ ...]symbols of companies seperated by space-f, --floorsheet      get floorsheet-n, --nepse           get NEPSE index and subindices-m , --market_depth   get market depth of the company(enter symbol)-ms, --market_summary get market summary-d , --get_detail     get the non price related detail of the company-cu , --custom        custom list in data.py-ci , --change_index  change the value of id sent as a payload in the postrequest--losers              get the top losers--gainers             get the top gainers--supply              get the scripts with maximum supply--demand              get the scripts with maximum demand--turnover            get the scripts with maximum turnover--volume              get the scripts with maximum volume--transactions        get the scripts with maximum transactions
Package: nepattern
NEPatternNEPattern(Not-Enough-Pattern) 是一个高效的负责类型验证与类型转换的库，独立自Alconna简单实例fromnepatternimportBasePatternpat=BasePattern.of(int)assertpat.validate(13).successassertnot13.0>>pat特点高效的类型转化功能多种预置的实例良好的 typing 支持自由的环境控制
Package: nepc
NEPCThe goals of the nepc project are to provide tools to:parse, evaluate, and populate metadata for electron scattering cross sections;build a NEPC MySQL database of cross sections;curate, access, visualize, and use cross section data from a NEPC database; andsupport verification and validation of electron scattering cross section data.The database schema and Python module are designed
for anyone interested in plasma chemistry with a background in physics at the graduate level.Documentation for the nepc project:https://nepc.readthedocs.io.OrganizationThe project is organized in the following directories:tests - unit and integration testingtests/data - data directory for thenepc_testdatabase--an example NEPC database containing fictitious electron scattering cross section data used in unit and integration testingtests/data/eda - example exploratory data analysis (EDA) of a NEPC database that is possible with the nepc Python moduletests/data/curate - code used to curate fictitious cross section data inLXCatformat and create various NEPCModels for thenepc_testdatabasedocs - files used by Sphinx to generate theNEPC documentationnepc - the Python code for the nepc package and building a NEPC databasenepc/mysql - the Python code for creating a NEPC database from data inNEPC_CS_HOMEenvironment variable; also creates thenepc_testdatabase from data inNEPC_HOME/tests/data(must have theNEPC_HOMEenvironment variable set)Getting StartedTo installnepcwith pip, run:$pipinstallnepcEstablish a connection to the database namednepcrunning on a
production server (you must set an environment variableNEPC_PRODUCTIONthat
points to the production server):>>>cnx,cursor=nepc.connect()If you've built thenepc_testdatabase on your local machine
(see instructionshere), establish a connection to it:>>>cnx,cursor=nepc.connect(local=True,test=True)Access the pre-defined plasma chemistry model,fict_min2, in thenepc_testdatabase:>>>fict_min2=nepc.Model(cursor,"fict_min2")Print a summary of thefict_min2model, including a stylized Pandas dataframe:>>>fict_min2.summary()Plot the cross sections infict_min2.>>>fict_min2.plot(ylog=True,xlog=True,width=8,height=4)Additional examples of EDA using nepc are intests/data/eda. Examples of scripts for
curating raw data for thenepc_testdatabase, including parsingLXCatformatted data,
are intests/data/curate.Built WithPythonMySQLLaTeXJupyter NotebookPronunciationNEPC rhymes with the loser of theCola War.
If NEPC were in theCMU Pronouncing Dictionary,
its entry would beN EH P S IY ..Approved for public release, distribution is unlimited.
Package: nephelai
nephelaiA helper library to upload/download files to/from a password-protected shared nextcloud folder. The link and password are read from your.envto enable project-specific shared folders.
Because Nextcloud does not enable chunked uploads for shared folders and your files can hit the size limit, your files are uploaded in chunks if needed and reconstructed after download.UsageCreate a.envfile in your project root.
Remember to add this file to your.gitignoreand always keep it secure to keep your secrets!
Your.envshould contain:NEXTCLOUD_FOLDER_URI="uri_of_the_shared_folder"NEXTCLOUD_FOLDER_PW="pw_of_the_folder"Then you can interact with the folder in a variety of ways.
Alternatively, you can set this environment variables yourself with your preferred method.Via CLI:nephelaiuploadmytestfile.txtanextcloud/path/thatwillbecreatedifneeded/
nephelaidownloadanextcloud/path/thatwillbecreatedifneeded/mytestfile.txtYou can also upload folders including the file structure:tests/resources
├──mymatrix.npy
└──subfolder└──testfile.txtUsing theupload-with-fscommand:nephelaiupload-with-fstests/resourcesWhich is just syntactic sugar for:nephelaiuploadtests/resourcestests/resourcesDownloading can be done accordingly:nephelaidownloadtestsWhich will download it to your current directory. You can also specify the download path:nephelaidownloadtests--local-path/tmp/This download the folder as:/tmp/tests
└──resources├──mymatrix.npy└──subfolder└──testfile.txtUsingnephelailstestsyou can show the files in thetestsdirectory.You can get help for each command via the--helpflag.Via Python:fromnephelaiimportupload,downloadupload("tests/resources","tests/resources")file_dl_path="/tmp/mymatrix.npy"download("tests/resources/mymatrix.npy",file_dl_path)importnumpyasnpmymatrix=np.load(file_dl_path)Installationpip install nephelai
Package: nepho
Nepho is a command-line tool that orchestrates the creation of complete
working application stacks on virtual infrastructure. Initially
targeting Amazon Web Services as well as Vagrant, Nepho abstracts
datacenter creation, instance configuration, and application deployment
into portable “cloudlets” that can be shared between developers and
teams.With Nepho, DevOps engineers can construct complete
infrastructure-as-code bundles (“cloudlets”) that anyone can easily spin
up with a single command. Nepho is in active development.To learn more about the key concepts and vocabulary of Nepho, please
view thestructure of a cloudletpage.StatusThis project is new but being actively developed by the Cloud
Engineering team within Harvard University Information Technology. We
have released a stable 1.0 release that is being used by teams within
Harvard. We welcome your feedback and contributions!Currently there are two main code branches:master- refactoring into a genericcore, vendor-specificproviders, andcloudletsfor each individual application/service
environment.legacy- legacy code for constructing CloudFormation stacks using
Jinja2 templated JSON files, slowly being merged into master.InstallationStandard installationView ourgetting started guidefor complete instructions for setting
up Nepho and its dependencies.On Windows, you will need toinstall Pythonin addition to the other
requirements, more detailed instructions for Windows users are coming
soon.Installation for developing NephoIf you plan to develop on the Nepho codebase you will want to follow the
instructions fordeveloper setupusing virtualenv.ConfigurationBy default Nepho will create a hidden configuration directory in your
home directory (~/.nepho) although you can specify a different
location in the configuration file. Running thenepho scopecommand
will create a configuration file for you (~/.nepho/config) if one
does not exist, but in general you will not need to modify any of the
default configuration options.Nepho passed configuration information into providers (i.e. AWS,
Vagrant) through a parameter management system. Each provider, cloudlet,
and blueprint may specify required or optional parameters. You can view
and manipulate parameters using thenepho parametersubcommand.Examples of some common parameters (which use the CamelCase format):AWSRegion: us-east-1VagrantBackend: virtualboxUpdatePackages: FalseUsageConsult the built-in documentation (nepho--help) for the latest
information about commands and arguments. Nepho supports the following
five subcommands:nepho cloudlet- find, download, and manage cloudletsnepho blueprint- list and view individual cloudlet deployment
blueprintsnepho stack- create, manage, and destroy stacks built from
blueprintsnepho parameter- list, view and modify parameter settingsnepho scope- set a cloudlet (and optionally blueprint) scope for
future commandsFind out more about each subcommand by runningnepho <subcommand>--help
Package: neplocalgov
Nepal Local GovernmentsThis is a simple package to get a list of local levels in Nepal (Rural Municipality,  Municipality and Metropolitian City) based on a given Province number/name or District name.InstallationYou can install the package from PyPI using pip:pip install neplocalgovUsageThe package contains only two simple functions  shown belowfrom neplocalgov import by_province, by_district

print(by_province(province="1")
print(by_district(district="Kathmandu")If the supplied province / district is not valid, it returns Null. If data is found, it is returned as a list of dictionariesContributionsContributions to this project are welcome! Please fork the repository and submit a pull request with your changes.LicenseThis project is licensed under the MIT LICENSE.ContactFor any queries or feedback, please contactShalin Devkota.
Package: ne-pretty
ne_pretty rule find entity# -*- coding: utf-8 -*-# @Time    : 2022/3/17 14:39# @Author  : wyw#增加实体fromne_prettyimporte_add_context#正则添加实体fromne_prettyimporte_add_rule_context#连接相邻实体fromne_prettyimporte_do_connect#连接交叉实体，保留最大fromne_prettyimporte_cross_do_connect#扩展前缀fromne_prettyimporte_extend_prefix#扩展后缀fromne_prettyimporte_extend_suffix#删除前缀fromne_prettyimporte_remove_prefix#删除后缀fromne_prettyimporte_remove_suffix#删除实体包含fromne_prettyimporte_remove_contain#删除指定实体fromne_prettyimporte_remove_eq#去重fromne_prettyimporte_remove_dup#比较不同fromne_prettyimportentity_difffilename=r'C:\Users\acer\Desktop\demo\text.txt'e_add_rule_context(filename,filename,'地点','(北京)')#e_add_context(filename,filename,'地点','北京')#e_remove_eq(filename,filename,'地点','北京')#e_remove_suffix(filename,filename,'地点','北京')#e_remove_prefix(filename,filename,'地点','北京')#e_remove_contain(filename,filename,'作案手段')#e_remove_dup(filename,filename)
Package: neps
Python Project CreatorThis project generates Python code to start a new project.In the current state it supports well the following templates:basic: A basic project with a main.py filecp: Contains the files used to solve competitive programming problems.Still need some testing:pip: A template to create a package that will be uploaded to PIP.In the future, I expect to create templates that need more sophisticated code generation, such as:flask: A template to be used when starting a Flask project.Build and Uploadpython setup.py sdist
python setup.py bdist_wheeltwine upload dist/*
Package: neps-academy
Python Project CreatorThis project generates Python code to start a new project.In the current state it supports well the following templates:basic: A basic project with a main.py filecp: Contains the files used to solve competitive programming problems.Still need some testing:pip: A template to create a package that will be uploaded to PIP.In the future, I expect to create templates that need more sophisticated code generation, such as:flask: A template to be used when starting a Flask project.Build and Uploadpython setup.py sdist
python setup.py bdist_wheeltwine upload dist/*