Saravanan666/pypi-org huggingface dataset:
Package: count-line
# count-line## UsageA cross-platform command line tool to count the amount of lines and files under current directory.## InstallationYou can install, upgrade, uninstall count-line with these commands(without $):```$ pip install count-line$ pip install --upgrade count-line$ pip unstall count-line```## Help```usage: line.py [-h] [-s SUFFIX | -f FILTER] [-d]count the amount of lines and files under the current directoryoptional arguments:-h, --help            show this help message and exit-s SUFFIX, --suffix SUFFIXcount by suffix file name, format: .suffix1.suffix2...e.g: .cpp.py (without space)-f FILTER, --filter FILTERcount without filter name, format: .suffix1.suffix2...e.g: .cpp.py (without space)-d, --detail          show detail results```## Examples1. Count all files under the current directory:```$ lineSearch in /Users/macbook/Desktop/Examples1/file count: 4line count: 373```2. Count all files under the current directory with detail results:```$ line -dSearch in /Users/macbook/Desktop/Examples2/========================================文件后缀名	文件数		总行数.py		5		397.cpp		240		11346总文件数: 245	总行数: 11743========================================```3. Count specified files under the current directory, using -s to pass suffix as parameters, if there are more than one parameter, don't have space, for example, count cpp files and python files:```$ line -s .cpp.pySearch in /Users/macbook/Desktop/Examples3/file count: 3line count: 243$ line -s .cpp.py -dSearch in /Users/macbook/Desktop/Examples3/========================================文件后缀名	文件数		总行数.py		5		397.cpp		240		11346总文件数: 245	总行数: 11743========================================```4. Count files under the current directory with filter:```$ line -f .py -dSearch in /Users/macbook/Desktop/Examples4/========================================文件后缀名	文件数		总行数.cpp		240		11346总文件数: 240	总行数: 11528========================================$ line -dSearch in /Users/macbook/Desktop/Examples4/========================================文件后缀名	文件数		总行数.py		5		397.cpp		240		11346总文件数: 245	总行数: 11743========================================```
Package: countminsketch
CountMinSketch==============This is a minimalistic`Count-min Sketch <http://en.wikipedia.org/wiki/Count%E2%80%93min_sketch>`_for Python, featuring some cool things like:- Being able to count anything that is hash-able by python (numbers, strings, tuples, inmutables, duck-typeds, etc.).- Tests- No dependencies- No foreign languages, just 100% python.This software was written by Rafael Carrascosa, you can contact me atrafacarrascosa on gmail.Usage=====.. code-block:: pythonfrom countminsketch import CountMinSketchsketch = CountMinSketch(1000, 10)  # table size=1000, hash functions=10sketch.add("oh yeah")sketch.add(tuple())sketch.add(1, value=123)print sketch["oh yeah"]       # prints 1print sketch[tuple()]         # prints 1print sketch[1]               # prints 123print sketch["non-existent"]  # prints 0Install=======CountMinSketch is on PyPI, so you can install it withpip install countminsketchLicense=======BSD 3-clause, see the LICENSE file.
Package: count-min-sketch-rs
count-min-sketchA simple CMS datstructure in rust. CMS can be created with explicit parameters, with tolerance and probability, or by copying an existing CMS to enable combinations.Each CMS provides methods to insert and retrieve counts, combine with another CMS, and to multiply all entries by a constant.The python interface provides access to the new_with_probs constructor which builds a CMS with the methods insert, retrieve, clear, and scale. A python CMS can store any object which implementshash()>>> import count_min_sketch
>>> cms1 = count_min_sketch.CMS(0.1,0.001,10000)
>>> cms1.insert("test")
1
>>> cms1.insert(54)
1
>>> cms1.insert(54)
2
>>> cms1.retrieve(54)
2A CMS basis hash set can be cloned allowing it to be combined with an existing CMS. This is useful to maintain multiple sets of counts and periodically combine them. This method will throw an error if they did not originate as clones.>>> cms2 = count_min_sketch.clone_cms(cms1)
>>> cms2.combine(cms1)
>>> cms2.retrieve("test")
1
>>> cms2.retrieve(54)
2
>>>
Package: count-money
English|PortuguêsCount MoneyA little utility app to help you count coins and bills, which calculates in real-time the total amount of money.
Additionally, it can save a report in a text file containing both the totals and the individual amounts.Installation and dependencies:To install and run this application, you just need to have a working
Python 3.6+ installation, with support for tkinter/ttk. The easiest way to install it in a single step is
by using this command:pip3 install count-moneyHow to use:The current version of this aplication can be run from the command line shell using the following command:count-money
Package: countool
"""
This is a demo for cvisp, 开发板、相机等拍摄设备取到的RAW with metadata，可以直接用该工具包进行demosaic，得到RGB图像，以便于展示。
- pip install cvisp
- from cvisp.utils import Demosaic_RAW""""""
三种模式，分别为：预览raw图，推理GDIP，预览demosaic（自用）
run_demosaic(): return the demosaiced image, (HWC, u16, bmp)
run_isp_with_meta(): return the rgb image , (HWC, u8, bmp)
run_model(weight_path = './your.pt', model = GDIP(), device = 'cuda:0'): return the output of       your          model, (HWC, u8, bmp)完整传参说明：
- Demosaic_RAW(mode : str = None, input_data_path : str = None, show_meta_data : bool = True, 
show_image : bool = False, save_image : bool = True, result_output_dir : str = None):
    mode: defatult = 'simple_dm', choices = ['simple_dm', 'opencv_dm']
    input_data_path: raw图片路径，支持单张图片，如：'./test.dng'
    show_meta_data: show the meta data of the input data, default = True，你可以选择是否展示meta data
    show_image: show the output image, default = False，你可以选择是否展示输出图像
    save_image: save the output image, default = True，你可以选择是否保存输出图像，保存路径为result_output_dir
    result_output_dir: the output dir of the result image, default = './demosaic/'，你可以选择保存路径"""ifname== 'main':
for im in glob.glob(image_path_list + '*.dng'):
demosaicd_raw = Demosaic_RAW(input_data_path = im).run_model(weight_path = './your.pt', model = GDIP(), device = 'cuda:0')
# rgb = Demosaic_RAW(input_data_path = im).run_isp_with_meta()
# gdip_out = Demosaic_RAW(input_data_path = im).run_model(weight_path = './your.pt', model = GDIP(), device = 'cuda:0')
Package: countparticles
countparticlesReport the number of particles in each class from arun_data.starfile
produced by RELION.A single-particle cryo-EM reconstruction comes from a set of particle images
corresponding to projections of identical particles in different orientations.
All datasets are heterogeneous, to various degrees, and data analysis involves
classification of particle images. Knowing how many particles contributed to
any given class is important to decide how to follow up after a classification
job. This command-line tool reports a count of particles in each class in arun_it???_data.starfile from a RELION Class2D or Class3D job. It can also
optionally produce a bar plot of these particle counts.This tool was tested with star files produced by RELION-3.1.0. Earlier versions
of RELION are not supported.AcknowledgmentsI would not have been able to put this tool together without thestarfilelibrary.InstallationI recommend to install this tool in a dedicated conda environment. You can
create one like so (replaceENV_NAMEwith the name you want to give to this
environment):$ conda deactivate
$ conda create --name ENV_NAME python=3.9
$ conda activate ENV_NAMEOnce the conda environment is active, you can install the tool with the
following command:$ pip install countparticlesUsage$ countparticles --help
Usage: countparticles [OPTIONS] <run_data.star>

  Report the number of particles in each class from a run_data.star file
  produced by RELION.

Options:
  -p, --plot         Optional. Display a bar plot of the particle counts. This
                     is most helpful with only a few classes, e.g. for typical
                     Class3D results (but not for typical Class2D results with
                     many classes).

  -o, --output TEXT  Optional. File name to save the barplot (recommended file
                     formats: .png, .pdf, .svg or any format supported by
                     matplotlib). This option has no effect without the
                     -p/--plot option.

  -h, --help         Show this message and exit.
Package: countries
Django CountriesThis is a application for Django projects providing fixtures and models
for a “complete” list of world countries and us states.
Also throwing in a small template tag for getting country
flags by ISO 3166-1 alpha-2 country code.For installation instructions see “INSTALL.txt” in this directory.
For general instructions on using the application and its features
see “overview.txt” in the “docs/” directory.HistoryThis is a fork of:http://code.google.com/p/django-countries/Additional changes:Made country names translateableAdded setup.pyOriginal author: Fredrik Sjöblom
Package: countries-info
PokePokeThe PokeAPI is a RESTful API that serves as a comprehensive database for PokÃ©mon-related data. It offers a wide range of information about PokÃ©mon species, their abilities, moves, types, evolutions, and more. By providing endpoints for various queries, such as retrieving details about specific PokÃ©mon or abilities, the PokeAPI allows developers to access and utilize PokÃ©mon-related data in their applications. It serves as a valuable resource for enthusiasts, developers, and researchers interested in integrating PokÃ©mon-related information into their projects.APIPython Basic API wrapperhttps://restcountries.com/v3.1InstallationUse the package managerpipto install foobar.pipinstallcountries_infoUsagefromcountriesimportrestcountriesdefget_user_input():country_code=input("Masukkan kode negara (contoh: usa): ")returncountry_codedefmain():rest_countries_api=restcountries()# Mendapatkan input dari penggunacountry_code=get_user_input()# Memanggil fungsi untuk mendapatkan informasi negara berdasarkan kode negaracountry_info=rest_countries_api.get_country_info(country_code)if"error"incountry_info:print(country_info["error"])else:print(f"Informasi Negara untuk{country_code.upper()}:")print(country_info)if__name__=="__main__":main()
Package: countries-utils
countries-utilsUtils used by the dunning service wrapper. Seehttps://bitbucket.org/altf1be/countries-utilsGet the list of countries stored in the field "place" in transactions stored in twikey.The places are written either in FR, EN or NL.The method returns a List of places in English and a Set of those places if the places are using the above-mentioned languagesusageinstall the package from thepypi.org:install :pip install countries-utilsupgrade :pip install countries-utils --upgradeinstall the package from thetest.pypi.org:install :pip install -i https://test.pypi.org/simple/ countries-utilsupgrade :pip install -i https://test.pypi.org/simple/ countries-utils --upgradedependenciespycountry :https://pypi.org/project/pycountrycountry_list :https://pypi.org/project/country_listBuild the packagebuild the setup.pypython setup.py sdist bdist_wheelupload the library on TESTpypi.orgpython -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*Source :https://test.pypi.org/project/countries-utilsupload the library on PRODpypi.orgpython -m twine upload dist/*Source :https://pypi.org/project/countries-utilstest the librarycd countries_listpipenv run python countries_utils_unittest.pylocate the packagepython -c "import countries_utils as _; print(_.__path__)"list functions inside the modulethe packagepython -c "import countries_utils as _; print(dir(_))"test the packagepython -c "import countries_utils, pandas as pd, numpy as np; print(countries_utils.get_list_of_countries_in_text( pd.DataFrame(np.array(['Belgium', 'Frankrijk', 'Royaume-Uni']), columns=['place']), place='place', languages_to_check=['en', 'fr', 'nl'] ) )"result :(['Belgium', 'France', 'United Kingdom'], {'United Kingdom', 'France', 'Belgium'})DocumentationPackaging Python Projectshttps://packaging.python.org/tutorials/packaging-projects/Managing Application Dependencieshttps://packaging.python.org/tutorials/managing-dependencies/#managing-dependenciesPackaging and distributing projectshttps://packaging.python.org/guides/distributing-packages-using-setuptools/#distributing-packagesLicenseCopyright (c) ALT-F1 SPRL, Abdelkrim Boujraf. All rights reserved.Licensed under the EUPL License, Version 1.2.See LICENSE in the project root for license information.
Package: country-acronyms
Project descriptioncountry_acronymsThis package was made for everyone who needs to find all possible translations, acronyms for a specific country name / country iso.Acknowledgementscountry_acronyms provides the support for the:ISO 3166-1 alpha-2ISO 3166-1 alpha-3ContributionsThe code lives in agit repository on GitHub, and issues must be reported in there as well.InstallationInstall country_acronyms by running:pipinstallcountry_acronymsUsage/Examplesfromcountry_acronymsimportget_supported_languages,get_country_acronyms,get_country_acronyms_iso,get_all_country_acronyms# get available languagesget_supported_languages()>>>{'afrikaans':'af','albanian':'sq',...,'yoruba':'yo','zulu':'zu'}# acronyms for given country nameget_country_acronyms("Austria")>>>{'af':'Oostenryk',...,'zu':'E-Austria'}# acronyms for given country isoget_country_acronyms_iso("it")>>>{'af':'Italië',...,'zu':'Italy'}# acronyms for given country isoget_country_acronyms_iso("usa")>>>{'af':'Verenigde State',...,'zu':'iziwe Ezihlangene'}# getting all country acronyms by scraping wikiget_all_country_acronyms()>>>{'Abkhazia':['Abcasia',...,'Apxazeti'],,'Afghanistan':['Æfganisthanaya',...,'l-Afghanistan'],...}CreditsThis package uses the deep_translator, pycountry and bs4.
Big up for those!LicenseThe project is licensed under theMIT License.
Package: country-as-hegemony
country-as-hegemony: Measuring AS dependency of a countryInstallationpip install country-as-hegemonyExampleTo get the AS dependencies of Japan, run the following command:$ country-hege JP
# Found 166 eyeball networks in JP on 2019-09-29T00:00:00+00:00
2914, 0.27661613861709505, +
2516, 0.25968996183607757, +
17676, 0.1974546945536009, +
4713, 0.15525111414563947, +
1299, 0.13595634758208053, -
9605, 0.10072894639780244, +
174, 0.08765424779438354, -
2497, 0.06338680212620768, +
9824, 0.05253467345731747, +
2527, 0.03509657300628496, +The '+' represent eyeball networks, the '-' are transit networks. These results are biasied towards big eyeballs networks.
The -r option remove eyeballs networks from the AS hegemony computation.$ country-hege JP -r
# Found 166 eyeball networks in JP on 2019-09-29T00:00:00+00:00
2914, 0.27580372217582483, +
1299, 0.13595634758208053, -
174, 0.08765424779438354, -
2516, 0.05994903574329003, +
2497, 0.04637372262121612, +
3356, 0.027235210986714956, -
9824, 0.021176697891166645, +
3491, 0.0191735214924131, -
2519, 0.01604299099396895, +
3257, 0.01316708668625293, -NotesThe IHR results before October 2020 are computed with the AS population obtained in October 15th, 2020.ReferencesThis is a follow up of the work done at APRICOT19 Hackathon:https://github.com/munhyunsu/APRICOT19AS Hegemony:https://ihr.iijlab.net/ihr/hegemony/
Package: country-bounding-boxes
Contains the bounding boxes and miscallaneous additional information for
countries extracted fromhttp://www.naturalearthdata.com/Note that many countries have a number of “subunits”: geographically
disjoint components like Alaska in the USA, administratively distinct
regions such as the countries of Great Britain, or overseas islands for
many European nations. As a result this module returnsiteratorsover
sets of Country objects for each country code, rather than single Country
objects.Previous versions of this library returned an (often large) singular
bounding box for each country code; in many cases these spanned much of the
globe and were therefore geographically less useful.Installation$ pip install country-bounding-boxesUsage>>> from country_bounding_boxes import (
      country_subunits_containing_point,
      country_subunits_by_iso_code
    )Get a country by its 2- or 3-letter ISO code:>>> [c.name for c in country_subunits_by_iso_code('ZW')]
['Zimbabwe']

>>> [c.name for c in country_subunits_by_iso_code('ZWE')]
['Zimbabwe']

>>> [c.name for c in country_subunits_by_iso_code('TM')]
['Turkmenistan']

>>> [c.name for c in country_subunits_by_iso_code('GB')]
['Wales', 'England', 'N. Ireland', 'Scotland']Inspect bounding box as (lon1, lat1, lon2, lat2) tuples:>>> [c.bbox for c in country_subunits_by_iso_code('TM')]
[(52.5024597512, 35.2706639674, 66.5461503437, 42.7515510117)]

>>> [c.bbox for c in country_subunits_by_iso_code('GB')]
[(-5.2623046875, 51.3904296875, -2.6623046875, 53.4192871094),
 (-5.65625, 50.0213867188, 1.74658203125, 55.8079589844),
 (-8.14482421875, 54.0512695312, -5.47041015625, 55.241796875),
 (-7.54296875, 54.689453125, -0.774267578125, 60.8318847656)]Get a set of countries by their intersection with a point:>>> [c.name for c in
     country_subunits_containing_point(lon=-79.888252,
                                       lat=32.819747)]
['U.S.A.']

>>> [c.name for c in
     country_subunits_containing_point(lon=5.983333,
                                       lat=50.883333)]
['Germany', 'France', 'Netherlands']DevelopmentIf you want to do development on the library, follow these steps:Create a virtualenvbin/pip install -r requirements/tests.txtbin/nosetests -s country_bounding_boxes
Package: country-call
#Change LogDate:01/04/23
version:0.0.2# Country Prediction
Our library utilizes state-of-the-art natural language processing algorithms to accurately identify the country mentioned within a given text, even when the reference is indirect or imprecise. With a robust set of features and customizable options, our library is the ideal solution for businesses and organizations that require fast and accurate country detection for their applications and projects. Save time and streamline your workflows with our intuitive and reliable country detection library.”,## How to use
function_1: To find only a country from text.country_call.find_country(text)function_2: To find a list of countries from text.country_call.find_countries(text)
Package: country-database
python-countriesCountry Database in Pythonnamecurrencyflagofficial_languages...Seeggicci/countriesfor the full list of the properties.Installpipinstallcountry-databaseUsageLoad all countriesfromcountry_databaseimportload_countriesCountryIndex=load_countries()print(CountryIndex.CAN.alpha2_code)# "CA"print(CountryIndex.CAN.name)# "Canada"print(CountryIndex.CAN.name.to_locale("zh"))# "加拿大"CountryIndexZh=load_countries(locale="zh")print(CountryIndexZh.CAN.name)# "加拿大"print(CountryIndexZh.CAN.name.to_locale("en"))# "Canada"Load one countryfromcountry_databaseimportload_countryca=load_country("CA")# or "CAN"print(ca.name)# "Canada"Load a custom list of countriesfromdataclassesimportdataclassfromcountry_databaseimportCountryProperties,load_countries_generic@dataclass(frozen=True)classMyCountryIndex:CAN:CountryPropertiesUSA:CountryPropertiesCHN:CountryPropertiesCountryIndex=load_countries_generic(MyCountryIndex)Add custom properties to a countryThe default database isggicci/countries.
You can add your own data and load them easily by instantiate aDataLoaderand pass it to theload_countries*,load_country*or just merge your database to thedefault_dataloader.frompathlibimportPathfromdataclassesimportdataclassfromcountry_databaseimport(CountryProperties,DataLoader,FullCountryIndex,Property,)CUSTOM_DATA_DIR=Path("/path/to/your/custom/data/dir")# NOTE: if you don't need the fields from the default database,# you can just inherit CountryPropertiesBase instead of CountryProperties@dataclass(frozen=True)classMyCountry(CountryProperties):custom_field_1:Propertycustom_field_2:Property# WAY 1: create a new dataloader.loader=DataLoader()# will load the default databaseloader.merge_database(CUSTOM_DATA_DIR)# NOTE: If you don't want to load the default database, use the following statement:# It will create a loader which only loads# 1. the country codes from the default database;# 2. data from CUSTOM_DATA_DIR;# but data from the default database won't be loaded.## loader = DataLoader(CUSTOM_DATA_DIR)CountryIndex=load_countries_generic(FullCountryIndex[MyCountry],loader=loader)# WAY 2: merge your database to the default_dataloader.fromcountry_databaseimportdefault_dataloaderdefault_dataloader.merge_database(CUSTOM_DATA_DIR)CountryIndex=load_countries_generic(FullCountryIndex[MyCountry])
Package: countryflag
countryflagCountryflag is a Python package to convert country names into emoji flags.MotivationI'm new to Python and to programming in general, and I have lots of things to learn, but instead of exercising on "Hello World"-like trivial examples I wanted to create a "real" project from the beginning.The idea was to build a simple command to get the correspondent emoji flag starting from a country name.InstallationCountryflag is registered at PyPI. From the command line:pip install countryflag --upgradeSource code is also available onGitHub.UsageUse within PythonConvert various country names to emojy flags:import countryflag
countries = ['Germany', 'BE', 'United States of America', 'Japan']
flags = countryflag.getflag(countries)
print(flags)The default output is a space separated list of emoji flags, one for each country:🇩🇪 🇧🇪 🇺🇸 🇯🇵Command line usageCountryflag can also be used as a command line tool, specifying one or more country name(s) as command line arguments, separated by spaces.countryflag Germany BE Spain 'United States of America'Will result in:🇩🇪 🇧🇪 🇪🇸 🇺🇸Country names formatsCountry names can be expressed in various classification schemes such as ISO-2, ISO-3, ISO-numeric, official name, etc.
The input format is determined automatically, based on ISO two letter, ISO three letter, ISO numeric or regular expression matching.
Countryflag usesCountry Converter (coco)to convert country names to ISO-2 codes and thenEmoji-country-flagto render the emoji flags: please see their documentation for further details.How it worksAll the flag emoji are actually composed of two unicode letters. These are the 26 regional indicator symbols:🇦 🇧 🇨 🇩 🇪 🇫 🇬 🇭 🇮 🇯 🇰 🇱 🇲 🇳 🇴 🇵 🇶 🇷 🇸 🇹 🇺 🇻 🇼 🇽 🇾 🇿According to ISO 3166, pairing unicode letters of the country code, compatible browsers/phones/terminals will display the correspondent Emoji flag.
For example BE is Belgium: 🇧 + 🇪 = 🇧🇪So, to encode an ASCII code like :BE: to 🇧🇪, Countrycode converts country names to the corresponding regional indicator symbols.Compatible terminalsSome terminals, such asiTerm2on Mac Os, support Emoji country flags very well.However, many others don't, such as Windows Terminal on Windows or Gnome Terminal on Linux: instead of the flag, they will display unicode letters.For example, invokingcountryflag belgiuminto Windows Terminal will return 🇧 🇪 as output, instead of the emojy country flag 🇧🇪.At least on Windows, the reason seems to be political/PR-related, as explainedhere.Therefore, Countryflag makes much more sense when used on systems/terminals that can properly render Emoji country flags.Issues, bugs and enhancementsPlease use the issue tracker for documenting bugs, proposing
enhancements and all other communication related to countryflag.AcknowledgementsThis package depends on:Country Converter (coco)byKonstantin StadlerEmoji-country-flagbycuzi