Saravanan666/pypi-org huggingface dataset:
Package: py-countreg
IntroductionThe package py_countreg is a collection of functions to estimate various regression models for count outcomes.It is an ongoing project. More functionalities will come later.Core FunctionsCount Outcome Regressions
  |
  |-- Equi-Dispersion (Baseline)
  |     |
  |     `-- stdpoisson() : Standard Poisson 
  |
  |-- Over-Dispersion
  |     |
  |     `-- negbinom2()  : Negative Binomial (NB-2)
  |
  |-- Over- and Under-Dispersions
  |     |
  |     |-- genpoisson() : Generalized Poisson
  |     |
  |     `-- compoisson() : Conway-Maxwell Poisson 
  |
  |-- Zero-Inflation
  |     |
  |     |-- hdlpoisson() : Hurdle Poisson 
  |     |
  |     |-- hdgpoisson() : Hurdle Generalized Poisson 
  |     |
  |     |-- hdlnegbin2() : Hurdle Negative Binomial (NB-2)
  |     |
  |     |-- zifpoisson() : Zero-Inflated Poisson 
  |     |
  |     |-- zigpoisson() : Zero-Inflated Generalized Poisson 
  |     |
  |     `-- zifnegbin2() : Zero-Inflated Negative Binomial (NB-2)
  |
  `-- Zero-Truncation
        |
        |-- ztrpoisson() : Zero-Truncated Poisson
        |
        |-- ztgpoisson() : Zero-Truncated Generalized Poisson
        |
        |-- ztcpoisson() : Zero-Truncated Conway-Maxwell Poisson
        |
        `-- ztrnegbin2() : Zero-Truncated Negative Binomial (NB-2)ReferenceWenSui Liu and Jimmy Cela (2008), Count Data Models in SAS, Proceedings SAS Global Forum 2008, paper 371-2008.
Package: py-countries-states-cities-database
API 🚀🎉 IntroducingAPIfor Countries States Cities Database.📦 Installationpipinstallpy-countries-states-cities-database📚 Usagefrompy_countries_states_cities_databaseimport(get_all_cities,get_all_states,get_all_countries,get_all_sub_regions,get_all_regions,get_all_states_and_cities_nested,get_all_countries_and_states_nested,get_all_countries_and_cities_nested,get_file_path)# All functions return a list of dictionariesprint(get_all_cities())print(get_all_states())print(get_all_countries())print(get_all_sub_regions())print(get_all_regions())print(get_all_states_and_cities_nested())print(get_all_countries_and_states_nested())print(get_all_countries_and_cities_nested())# File name options|"cities.json"|"states.json"|"countries.json"|"subregions.json"|"regions.json"|"countries+cities.json"|"countries+states.json"|"states+cities.json"|"countries+states+cities.json",# Get the file pathprint(get_file_path("cities.json"))
Package: pycountrycode
Pycountrycode Documentation!What it is?I have always loved knowing stuff. I love knowledge, it is my first love before anything else. In every kind of setup I find myself in I am always participating because I almost always have an idea about most things. This love of knowledge also made it easy for me to know more country telephone codes.However, the truth is I couldn't cram them all the country codes and retrieve them from my mind every time it became necessary. I knew by heart those of the most popular countries that includes Russia (+7), UK (+44), USA (+1), Australia (+61) and of course Zimbabwe amongst many others.Why?Someone wanted to know what code +52 was for which country, I didn't know, I was embarrassed at myself. I challenged myself by writing this package so I and anyone else can use to get the country calling code of any country and also to get a country after passing in a calling code you know but are not sure about the country of origin.InspirationI wanted to write something that others could find useful.Installation$pipinstallpycountrycodeUse cases as per environmentLinux and MacOS$pip3installpycountrycode$python3>>>WindowsWindows Command Prompt
C:\Users\andil> pip install pycountrycode
C:\Users\andil> Xeroxzen> python>>>frompycountrycode.countrycodeimportget_code>>>Importing the 'get_code' function>>>frompycountrycode.countrycodeimportget_code>>>get_code('Zimbabwe')'+263'>>>get_code('New Zealand')'+64'>>>get_code('Peru')'+51'>>>get_code('Madagascar')'+261'>>>get_code('Russia')'+7'>>>get_code('Australia')'+61'>>>get_code('Israel')'+972'>>>get_code('Mal')'Undefined country'Importing the 'get_country' function.>>>frompycountrycode.countrycodeimportget_country>>>get_country('+52')'Mexico'>>>get_country('+56')'Easter Island'>>>get_country('+1')'United States of America'>>>get_country('+7')'Russia'>>>get_country('+44')'Britain'>>>get_country('+86')'China'>>>get_country('+3')'Undefined country code'>>>get_country('+2')'Undefined country code'>>>get_country('+27')'South Africa'Library Information>>>importpycountrycode>>>pycountrycode.__author__'Andile Jaden Mbele'>>>pycountrycode.__email__'andilembele020@gmail.com'>>>pycountrycode.__github__'www.github.com/xeroxzen/country-code'>>>pycountrycode.__package__'pycountrycode'>>>Also>>>frompycountrycode.countrycodeimportget_code,get_country>>>get_code('Botswana')'+267'>>>get_country('+33')'France'>>>
Package: pycountrycodes
PyCountryCodesPyCountryCodes is a Python library for dealing with the ISO 3166-1 and ISO 3166-2 Standards in a simple way.InstallationUse the package managerpipto installpycountrycodes.pipinstallpycountrycodesUsageISO 3166-1frompycountrycodesimportcountries# Go through the full list of countries available.forcountryincountries:# prints the country nameprint(country.name)# returns a Country object if the given criteria matches.countries.get(name='United Kingdom')countries.get(alpha_2='GB')countries.get(alpha_3='GBR')# returns a list of Country options fot the given query using fuzzy search.countries.search('United Kingdom')# returns a list of Country options fot the given query using fuzzy search# using the match_score_cutoff to filter the list and only return results with# match_score greater or equal to 70.countries.search('United Kingdom',match_score_cutoff=70)ISO 3166-2frompycountrycodesimportsubdivisions# Go through the full list of subdivisions available.forsubdivisionsinsubdivisions:# prints the subdivision nameprint(subdivisions.name)# returns a Subdivision object if the given criteria matches.subdivisions.get(code='US-NY')# returns a list of Subdivision objects if the given criteria matches.# for name, type and country_code, this method will return a list of options since# there can be multiples Subdivision objects with the same attribute values.subdivisions.get(name='New York')# returns all Subdivision where obj.name is 'New York'subdivisions.get(type='Province')# returns all Subdivision where obj.type is 'Province'subdivisions.get(country_code='GB')# returns all Subdivision where obj.country_code is 'GB'# returns a list of Subdivisions options fot the given query using fuzzy search.subdivisions.search('New York')# returns a list of Subdivision options fot the given query using fuzzy search# using the match_score_cutoff to filter the list and only return results with# match_score greater or equal to 70.subdivisions.search('New York',match_score_cutoff=70)ISO 4127frompycountrycodesimportcurrencies# Go through the full list of currencies available.forcurrencyincurrencies:# prints the currency nameprint(currency.name)# returns a Currency object if the given criteria matches.currencies.get(alpha_3='USD')# returns a list of Currencies objects if the given criteria matches.# for name this method will return a list of options since# there can be multiples Currency objects with the same attribute values.currencies.get(name='Leone')# returns all Currency where obj.name is 'Leone'# returns a list of Currencies options fot the given query using fuzzy search.currencies.search('Dollar')# returns a list of Currency options fot the given query using fuzzy search# using the match_score_cutoff to filter the list and only return results with# match_score greater or equal to 70.currencies.search('Dollar',match_score_cutoff=70)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: pycountry-convert
pycountry-convertExtension of Python packagepycountryproviding conversion functions.BadgesdocsinfotestspackageotherInstallpipinstallpycountry-convertArchitectureUsing country data derived from wikipedia, this package provides conversion
functions between ISO country names, country-codes, and continent names.Functionsmap_countries(cn_name_format="default",cn_extras={}): Return a dict of countries with key as country name (standard and official) with ISO 3166-1 values Alpha 2, Alpha 3, and Numeric. This mapping will include countries defined withinpycountry, Wikipedia, and whatever extra countries provided by parametercn_extras. Parametercn_name_formatwill format the country name as request to either be using the default layout“default”, lowercase“lower”, or uppercase“upper”.country_alpha2_to_continent_code(): Convertcountry code ISO 3166-1 alpha-2to continent name.country_alpha2_to_country_name(cn_name_format="default"): Convertcountry code ISO 3166-1 alpha-2to country name.country_name_to_country_alpha2(cn_name,cn_name_format="default"): Convert country name tocountry code ISO 3166-1 alpha-2.country_alpha3_to_country_name(cn_name_format="default"): Convertcountry code ISO 3166-1 alpha-3to country name.country_name_to_country_alpha3(cn_name,cn_name_format="default"): Convert country name tocountry code ISO 3166-1 alpha-3.country_alpha3_to_country_alpha2(): Convertcountry code ISO 3166-1 alpha-3tocountry code ISO 3166-1 alpha-2.Parameter: cn_name_formatCOUNTRY_NAME_FORMAT_DEFAULT "default": Country names as provide bypycountry.COUNTRY_NAME_FORMAT_LOWER "lower": All lowercase country names.COUNTRY_NAME_FORMAT_UPPER "upper": All uppercase country names.Parameter: cn_extrasDictionary of{ cn_name: cn_alpha2_code, … }Dependenciespycountry-convertmodule is built upon Python 3 and has dependencies upon
several Python modules available withinPython Package Index PyPI.pycountrypprintppRelease History0.7.2 (2018-02-16)Python 2.7 supportedTravis CI testing both Python 2.7 and 3.6.0.7.1 (2018-02-15)migrate to github/TuneLab.Python 2.7 supportlru_cache()0.6.7 (2018-02-15)pycountry: added common_name (vgavro)0.6.6 (2018-01-25)migrate to github/tuneinc.LICENSE: MIT0.6.2 (2017-12-09)readthedocs.org0.5.4 (2017-12-07)LICENSE: LGPL 3.00.5.0 (2017-11-30)README.rstHits and Contributors0.3.0 (2017-11-27)README.rstTravis CI0.1.9 (2017-03-12)Makefile and README.rst0.1.8 (2016-11-19)Makefile and README.rst0.1.0 (2016-11-17)Initial CodeCode pulled from TuneLab/tune-mv-integration-pythonCountry name to Country Alpha-2 Code cleanup0.0.1 (2016-11-17)Initial commit
Package: pycountry-un
A simple package that provides lists of countries in the United Nation’s World Economic Situation
and Prospects as sequences of Pycountry elements.UsageFirst, you need to install it usingpip installpycountry-unor your method of choice.
Secondly, just import it and load the lists>>> import pycountry_un as un
>>> un.upper_middle_income_countries.lookup("Brazil")
Country(alpha_2='BR', alpha_3='BRA', name='Brazil', numeric='076', official_name='Federative Republic of Brazil')ObservationIf you disagree with any of these classifications, address you concerns to the United Nations.
This package only accepts changes to reflect the most current understanding published on the
official UN’sWorld Economic Situation and Prospects.
Patches will only be accepted concerning discrepancies with that publication.
Package: pycounts
pycountsCalculate word counts in a text file!Installation$pipinstallpycountsUsagepycountscan be used to count words in a text file and plot the results as follows:frompycounts.pycountsimportcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycountswas created by Tomas Beuzen. It is licensed under the terms of the MIT license.Creditspycountswas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-abhiket
pycounts_AbhiketA package to count words in a text!Installation$pipinstallpycounts_AbhiketUsagepycounts_Abhiketcan be used to count words in a text file and plot results
as follows:frompycounts_Abhiket.pycounts_Abhiketimportcount_wordsfrompycounts_Abhiket.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_Abhiketwas created by pycounts_Abhiket. It is licensed under the terms of the MIT license.Creditspycounts_Abhiketwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-abthuy
pycounts_abthuyCalculate word counts in a text file!Installation$pipinstallpycounts-abthuyUsagepycounts_abthuycan be used to count words in a text file and plot results
as follows:frompycounts_abthuy.pycountsimportcount_wordsfrompycounts_abthuy.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_abthuywas created by Arthur Thuy. It is licensed under the terms of the MIT license.Creditspycounts_abthuywas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-ac
pycounts_acCalculate word counts in a text fileInstallation$pipinstallpycounts_acUsagepycountscan be used to count words in a text file and plot results
as follows:frompycounts.pycountsimportcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_acwas created by Arijeet Chatterjee. It is licensed under the terms of the MIT license.Creditspycounts_acwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-affrins
pycounts_affrinsCalculate word counts in a text file!Installation$pipinstallpycounts_affrinsUsagepycounts_affrinscan be used to count words in a text file and plot results
as follows:frompycounts_affrins.pycounts_affrinsimportcount_wordsfrompycounts_affrins.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()## ContributingInterestedincontributing?Checkoutthecontributingguidelines.PleasenotethatthisprojectisreleasedwithaCodeofConduct.Bycontributingtothisproject,youagreetoabidebyitsterms.## License`pycounts_affrins`wascreatedbyAffrinSultana.ItislicensedunderthetermsoftheMITlicense.## Credits`pycounts_affrins`wascreatedwith[`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/)andthe`py-pkgs-cookiecutter`[template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
Package: pycounts-ajz
pycounts_ajzCalculate word counts in a text file!AuthorAndy ZhangInstallation$pipinstallpycounts_ajzUsagepycounts_ajzcan be used to count words in a text file and plot results
as follows:frompycounts_ajz.pycountsimportcount_wordsfrompycounts_ajz.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines.
Please note that this project is released with a Code of Conduct.
By contributing to this project, you agree to abide by its terms.Licensepycounts_ajzwas created by Andy Zhang. It is licensed under the terms of the MIT license.Creditspycounts_ajzwas created withcookiecutterand
thepy-pkgs-cookiecuttertemplate.
Package: pycounts-aleung
pycounts_aleungCalculate word counts in a text file!Installation$pipinstallpycounts_aleungUsagepycounts_aleungcan be used to count words in a text file and plot results
as follows:frompycounts_aleung.pycounts_aleungimportcount_wordsfrompycounts_aleung.plotting_aleungimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_aleungwas created by Adrianne Leung. It is licensed under the terms of the MIT license.Creditspycounts_aleungwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts_allabur
pycounts_allaburCalculate word counts in a text file!Installation$pipinstallpycounts_allaburUsagepycountscan be used to count words in a text file and plot results
as follows:frompycounts.pycountsimportcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_allaburwas created by allabur. It is licensed under the terms of the MIT license.Creditspycounts_allaburwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-am
pycounts_amCounting words in a text file.Installation$pipinstallpycounts_amUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_amwas created by adammorphy. It is licensed under the terms of the MIT license.Creditspycounts_amwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-amc
pycounts_amcCalculate word counts in a text file!Installation$pipinstallpycountsUsagepycounts_amccan be used to count words in a text file and plot results
as follows:frompycounts.pycountsimportcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_amcwas created by Arlin Cherian. It is licensed under the terms of the MIT license.Creditspycounts_amcwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-amm
pycounts_ammThis package consists of a function that can be used to count the number of words in a text file.Installation$pipinstallpycounts_ammUsagepycounts_ammcan be used to count words in a text file and plot results
as follows:frompycounts_amm.pycounts_ammimportcount_wordsfrompycounts_amm.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_ammwas created by Abdul Moid Mohammed. It is licensed under the terms of the MIT license.Creditspycounts_ammwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-anthea
pycounts_Antheapackage for DSCI 524Installation$pipinstallpycounts_AntheaUsagepycounts_Antheacan be used to count words in a text file and plot results
as follows:frompycounts_Anthea.pycounts_Antheaimportcount_wordsfrompycounts_Anthea.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_Antheawas created by anthea. It is licensed under the terms of the MIT license.Creditspycounts_Antheawas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-as
pycounts_asCalculate word counts in a text file!Installation$pipinstallpycounts_asUsagepycounts_ascan be used to count words in a text file and plot results
as follows:frompycounts_as.pycounts_asimportcount_wordsfrompycounts_as.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines.
Please note that this project is released with a Code of Conduct.
By contributing to this project, you agree to abide by its terms.Licensepycounts_aswas created by Amir Abbas Shojakhani. It is licensed under the terms
of the MIT license.Creditspycounts_aswas created withcookiecutterand
thepy-pkgs-cookiecuttertemplate.
Package: pycounts_bill_mds
pycounts_bill_mdsCalculate word counts in a text file!Installation$pipinstallpycounts_bill_mdsUsagepycountscan be used to count words in a text file and plot results
as follows:frompycounts.pycountsimportcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_bill_mdswas created by Bill Wan. It is licensed under the terms of the MIT license.Creditspycounts_bill_mdswas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-bl0701
pycounts_bl0701Calculate word counts in a text file!Installation$pipinstallpycounts_bl0701Usagepycountscan be used to count words in a text file and plot results
as follows:frompycounts.pycountsimportcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycounts_bl0701was created by Brandon. It is licensed under the terms of the MIT license.Creditspycounts_bl0701was created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycounts-ca
pycounts_caCalculates word counts in a text file!Installation$pipinstallpycounts_caUsagepycountscan be used to count words in a text file and plot results
as follows:frompycounts.pycountsimportcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
Contributor - Christopher Alexander (@christopheralex)Licensepycounts_cawas created by Christopher Alexander. It is licensed under the terms of the MIT license.Creditspycounts_cawas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.