Saravanan666/pypi-org huggingface dataset:
Package: cmudict
CMUdict: Python wrapper for cmudictCMUdict is a versioned python wrapper package forThe CMU Pronouncing Dictionarydata
files. The main purpose is to expose the data with little or no assumption on
how it is to be used.Installationcmudictis available on PyPI. Simply install it withpip:pipinstallcmudictUsageThe cmudict data set includes 4 data files: cmudict.dict, cmudict.phones,
cmudict.symbols, and cmudict.vp. SeeThe CMU Pronouncing Dictionaryfor
details on the data. Chances are, if you're here, you already know what's in the
files.Each file can be accessed through three functions, one which returns the raw
(string) contents, one which returns a binary stream of the file, and one which
does minimal processing of the file into an appropriate structure:>>>importcmudict>>>cmudict.dict()# Compatible with NLTK>>>cmudict.dict_string()>>>cmudict.dict_stream()>>>cmudict.phones()>>>cmudict.phones_string()>>>cmudict.phones_stream()>>>cmudict.symbols()>>>cmudict.symbols_string()>>>cmudict.symbols_stream()>>>cmudict.vp()>>>cmudict.vp_string()>>>cmudict.vp_stream()Three additional functions are included to maintain compatibility with NLTK:
cmudict.entries(), cmudict.raw(), and cmudict.words(). See thenltk.corpus.reader.cmudictdocumentation for details:>>>cmudict.entries()# Compatible with NLTK>>>cmudict.raw()# Compatible with NLTK>>>cmudict.words()# Compatible with NTLKAnd finally, the license for the cmudict data set is available as well:>>>cmudict.license_string()# Returns the cmudict license as a stringCreditsBuilt on or modeled after the following open source projects:The CMU Pronouncing DictionaryNLTK
Package: cmus-osx
​▶cmus-osxcmus-osxadds track change notifications, and media key support tocmus(macOSonly).InstallationmacOS automatically launches iTunes on media key presses.
InstallingnoTunesis the recommended solution to prevent this from happening.pip3installcmus-osx
cmus-osxinstallcmus-osxsupports virtual environments natively, so installing it viapipx(or basically any other virtual environment manager) works just as well.Uninstallcmus-osx uninstall
pip3 uninstall cmus-osxpyenvFramework building has to be enabled, otherwise notifications cannot be created.exportPYTHON_CONFIGURE_OPTS="--enable-framework"Configurationcmus-osx configCreditsazadkuh: all versions up to and including v1.2.0PhilipTrauner: all following versions
Package: cmvisualizations
# visualizationsCreate and publish interactive visualizations of ContentMine-facts.## Installation and RequirementsThe easiest entry is by using [Anaconda](https://www.continuum.io/downloads) with Python 3, and creating a new virtualenvironment.` conda create-ncontentmine3 python=3.4 anaconda `After that activate the virtual environment and install the packages with pip:` source activate contentmine3 pip install pandas bokeh jupyter pycproject matplotlib scipy `Python3
* [pandas](http://pandas.pydata.org/)
* [bokeh](http://bokeh.pydata.org/en/latest/)
* [jupyter](http://jupyter.org/)
* [pycproject](https://github.com/ContentMine/pyCProject/)
* matplotlib
* scipy## Running a visualizationChange path to input-datachange working directory to repostart application withbokeh serve –show APPNAME
Package: cmweather
# cmweather[![CI Status](https://github.com/openradar/cmweather/actions/workflows/ci.yaml/badge.svg)](https://github.com/openradar/cmweather/actions/workflows/ci.yaml) [![code-style](https://github.com/openradar/cmweather/actions/workflows/linting.yaml/badge.svg)](https://github.com/openradar/cmweather/actions/workflows/linting.yaml) [![CodeCov](https://img.shields.io/codecov/c/github/openradar/cmweather.svg?style=for-the-badge)](https://codecov.io/gh/openradar/cmweather)[![CondaPackage](https://anaconda.org/conda-forge/cmweather/badges/version.svg)](https://anaconda.org/conda-forge/cmweather)## MotivationThe motivation for this package is to contain weather maps relevant to the weather and climate community. There aremanycolormaps that are unique to the weather/climate community that are not included in core libraries such as [matplotlib](https://matplotlib.org/). This is also meant to be a community collaboration, across multiple domain-specific packages (ex. MetPy, GeoCAT, Py-ART). It is lightweight, easy to install, and we encourage contributions from across the community!While not all of the colormaps are color vision deficiency (CVD) friendly, we do include CVD friendly colormaps, and encourage users to use these when possible.## Installationcmweather can be found on both PyPI and conda-forge, installable using`bash mamba install cmweather `or`bash pip install cmweather `### Development InstallationFor a development install, do the following in the repository directory:`bash conda env update-fci/environment.yml conda activatecmweather-devpython-mpip install-e. `Also, please installpre-commithooks from the root directory of the created project by running:`pre-commitinstall `
Package: cmx
REPL with Python Scripts via live documents.See CMX In Action☐ insert a screencast gif herethis works just like a standard jupyter notebook. Only code-block you include
in awith doc:block would be shown. The row context arranges the
result side ways (via html) but it shows as a list on GitHub due to css
restrictions.foriinrange(10):doc.print(i,end=' ')0 1 2 3 4 5 6 7 8 9InstallationYou can install this package from PyPI under thecmxpackage name.pipinstallmdxDeveloping PluginsYou can develop plug-ins under thecmx-<>prefixDiscussionCan we have atravel-back-in-timedebugger that saves the stack at
each frame?To-dos☐ scope inspection componentTomorrowDone☒ simple text output☒ layout row☒ saving matplotlib figures☒ video componentpython     doc.video(frames,f"videos/cats.gif?raw=true")☒ image component☒ table component☒ yaml component
Package: cmyt
cmytMatplotlib colormaps from the yt project !Colormaps overviewThe following colormaps, as well as their respective reversed (*_r) versions are availablePerceptually uniform sequential colormapsMonochromatic sequential colormapsMiscellaneousInstallationwithpippython-mpipinstallcmytor withcondacondainstall-cconda-forgecmytUsagecmyt integrates with matplotlib in a similar fashion tocmoceanorcmasherimportnumpyasnpimportmatplotlib.pyplotaspltimportcmyt# that's it !# generate example dataprng=np.random.RandomState(0x4D3D3D3)noise=prng.random_sample((100,100))x,y=np.mgrid[-50:50,-50:50]z=5*np.exp(-(x**2+y**2)/1000)# setup the figurefig,ax=plt.subplots()ax.set(aspect="equal")# now we can refer to cmyt colormaps as stringsim=ax.pcolormesh(x,y,z+noise,cmap="cmyt.arbre",shading="flat")fig.colorbar(im,ax=ax)# alternatively, cmyt maps can also be imported as objectsfromcmytimportpastelfig,ax=plt.subplots()ax.set(aspect="equal")im=ax.contourf(x,y,z+noise,cmap=pastel)fig.colorbar(im,ax=ax)A gallery of comparable examples using all colormaps from cmyt is availablein the test directory.
Package: cn2date
cn2date中文日期 、口语 转换为 日期字符串安装pipinstallcn2date使用fromcn2dateimportparseparse("2023年").output()# 输出结果：2023-01-01 00:00:00 - 2023-12-31 23:59:59.999999parse("二零二三年十二月二十一日").output()# 输出结果：2023-12-21 00:00:00 - 2023-12-21 23:59:59.999999parse("今年").output()# 输出结果：2024-01-01 00:00:00 - 2024-12-31 23:59:59.999999parse("本季度").output()# 输出结果：2024-01-01 00:00:00 - 2024-03-31 23:59:59.999999许可证MIT License
Package: cn2int
cn2int: Chinese Numerals To Int/FloatConversion bettwen Chinese numerals and integer/float.Conversion bettwen Roman numerals and integer.cn2int does the format checking during conversion, it can raiseValueError,OverflowErrorandKeyError. Before doing conversion, you should ensure the following patterns are met.roman2int: "[IVXLCDM]+"chinese2int: "[正负負]?[〇一二三四五六七八九十百千万亿零壹贰叁肆伍陆柒捌玖拾佰仟萬億两]+"chinese2float: "[正负負]?[〇一二三四五六七八九十百千万亿零壹贰叁肆伍陆柒捌玖拾佰仟萬億两点點]+"Usageimportcn2intasc2i# chinese/roman/arab => integerc2i.convert2int("两亿零六千五")# chinese => integerc2i.chinese2int("二十三亿零六百三十万零七十八")# chinese => floatc2i.chinese2float("二千三百零六万三千点七八")# integer => chinesec2i.int2chinese(2306300078)# float => chinesec2i.float2chinese(23063000.78)# rooman => integerc2i.roman2int("XVI")# integer => roomanc2i.int2roman(16)# performancec2i.performance()
Package: cn2num
cn2num这是一个中文数字(含货币)到阿拉伯数字的python小模块。不依赖于其他的python模块。原始版本来自于:wswuai/cn2num.pyInstallationpipinstallcn2num--userUsage:importcn2numcn2num.transform("两百三十万")
Package: cna
cnaCovarying neighborhood analysis is a method for finding structure in- and conducting association analysis with multi-sample single-cell datasets.cnadoes not require a pre-specified transcriptional structure such as a clustering of the cells in the dataset. It aims instead to flexibly identify differences of all kinds between samples.cnais fast, does not require parameter tuning, produces measures of statistical significance for its association analyses, and allows for covariate correction.cnais built on top ofscanpyand offers ascanpy-like interface for ease of use.If you prefer R, there is anR implementationmaintained separately by Ilya Korsunsky. (Though the R implementation may occasionally lag behind this implementation as updates are made.)installationTo usecna, you can either install it directly from thePython Package Indexby running, e.g.,pip install cnaor if you'd like to manipulate the source code you can clone this repository and add it to yourPYTHONPATH.demoTake a look at ourtutorialto see how to get started with a small synthetic data set.talkYou can learn more aboutcnaby watching ourtalkat the Broad Institute's Models, Inference, and Algorithms seminar, which is preceded by aprimerby Dylan Kotliar on nearest-neighbor graphs.noticesJanuary 20, 2022:  It has come to our attention that a bug introduced on July 16, 2021 causedcnato behave incorrectly for users withanndataversion 0.7.2 or later, possibly resulting in false positive or false negative results. This bug was fixed incnaversion 0.1.4. We strongly recommend that any users withanndataversion 0.7.2 or later either re-clone CNA or runpip install --upgrade cnaand re-run all analyses that may have been affected.citationIf you usecna, please cite[Reshef, Rumker], et al., Co-varying neighborhood analysis identifies cell populations associated with phenotypes of interest from single-cell transcriptomics. [...] contributed equally
Package: cnab
Python CNAB LibraryWork-in-progresslibrary for working withCNABin Python.There are probably three main areas of interest for a CNAB client:Handling thebundle.jsonformat (101)Building invocation images (102)Running actions against a CNAB (103)Claims and Signing are optional but will be worked on once the above are stable.InstallationThe module is published onPyPiand can be installed from there.pipinstallcnabParsingbundle.jsonNothing too fancy here, theBundleclass  has afrom_dictstatic method which
builds a fullBundleobject.importjsonfromcnabimportBundlewithopen("bundle.json")asf:data=json.load(f)bundle=Bundle.from_dict(data)This could for example be used for validation purposes, or for building user interfaces forbundle.jsonfiles.Describingbundle.jsonin PythonYou can also describe thebundle.jsonfile in Python. This will correctly validate the
structure based on the current specification and would allow for building a custom DSL or other
user interface for generatingbundle.jsonfiles.fromcnabimportBundle,InvocationImagebundle=Bundle(name="hello",version="0.1.0",invocation_images=[InvocationImage(image_type="docker",image="technosophos/helloworld:0.1.0",digest="sha256:aaaaaaa...",)],)print(bundle.to_json())Running CNABsThe module supports running actions on a CNAB, using thedockerdriver.fromcnabimportCNAB# The first argument can be a path to a bundle.json file, a dictionary# or a full `Bundle` objectapp=CNAB("fixtures/helloworld/bundle.json")# list available actionsprint(app.actions)# list available parametersprint(app.parameter)# run the install actionprint(app.run("install"))# run the install action specifying a parametersprint(app.run("install",parameters={"port":9090}))# Many applications will require credentialsapp=CNAB("fixtures/hellohelm/bundle.json")# list required credentialsprint(app.credentials)# Here we pass the value for the required credential# in this case by reading the existing configuration from diskwithopen("/home/garethr/.kube/config")asf:print(app.run("status",credentials={"kubeconfig":f.read()}))Note that error handling for this is very work-in-progress.Working with invocation imagespycnabalso has a class for working with invocation images.fromcnabimportCNABDirectorydirectory=CNABDirectory("fixtures/invocationimage")# Check whether the directory is valid# Raises `InvalidCNABDirectory` exception if invaliddirectory.valid()# Returns the text of the associated README file if presentdirectory.readme()# Returns the text of the associated LICENSE file if presentdirectory.license()ThanksThanks toQuickTypefor bootstrapping the creation of the Python code for manipulatingbundle.jsonbased on the current JSON Schema.
Package: cnabs-sdk
CNABS Openapi Python Sdk本模块为CNABS OPENAPI的 Python SDK
依赖包Requests: pip install requests使用帮助引入cnabssdk包import cnabssdk.clients
    import cnabssdk.deals
    import cnabssdk.securities初始化token
Token 获得地址：https://www.cn-abs.com/openapi.html#/my-tokencnabssdk.init("20200915-20210915--xxxxx8dXSMAk")获得产品列表等接口deals = cnabssdk.deals.get_list('建元')
    print('Count: ' + str(len(deals)))
    deal = cnabssdk.deals.get_detail(deals[0].id)
    print(deal.name)

    securitylist = cnabssdk.securities.get_list(year= 2020)
    print('Security Count: ' + str(len(securitylist)))
    sec = cnabssdk.securities.get_detail(securitylist[0].id)
    print(sec.short_name)
Package: cnabs-sdk-test
CNABS Openapi Python Sdk Test本模块为CNABS OPENAPI的 Python SDK Test使用帮助引入cnabssdk_test包import cnabs_test.deals
    import cnabs_test.projects
    import cnabs_test.securities
    import cnabs_test.assets初始化token
Token 获得地址：https://www.cn-abs.com/openapi.html#/my-token测试接口token = "20200915-20210915--xxx-xxxxx"
    cnabs_test.org.run_test(token)
    cnabs_test.deals.run_test(token)
    cnabs_test.projects.run_test(token)
    cnabs_test.securities.run_test(token)
    cnabs_test.assets.run_test(token)
Package: cnaclib
cnaclib : Librairie Python developpee pour les usagers et les employes de la CNAC.About cnaclibcnaclibest un packagePythondedie aux usagers et aux employes de la CNAC.Pourquoi utiliser cnaclib?Il dispose de plusieurs modules et fonctionsPythonpour :Faire une simulation de calculs pour le benefice du regime assurance chomage (RAC);Faire une simulation de calculs pour le benefice des mesures encouragement a emploi (loi 06-21);Generer la liste des codes de wilaya de 01 a 58;Avoir le nom de la wilaya en arabe ou en francais en fonction de son code ;Avoir le code de la wilaya en fonction de son nom en arabe ou en francais;Generer des dossiers qui postent le nom des wilayas en arabe ou en francais;Avoir le montant du SNMG en fonction de la date a compter du 01/01/1990;Il sera mis a jour regulierement par des modules qui peuvent automatiser certaines taches.InstallationDependenciescnaclib requirescertifi >=2023.5.7
charset-normalizer >=3.1.0
idna >=3.4
numpy >=1.24.3
pandas >=2.0.1
python-dateutil >=2.8.2
pytz >=2023.3
six >=1.16.0
tzdata >=2023.3
urllib3 >=2.0.2User installationYou can install cnaclib usingpip:pip install cnaclibTutorial are availablehttps://github.com/aistatendz/cnaclib/blob/master/Exemple_RAC_01.ipynb
https://github.com/aistatendz/cnaclib/blob/master/Exemple_RAC_02.ipynb
https://github.com/aistatendz/cnaclib/blob/master/Exemple_LSix21_01.ipynb
https://github.com/aistatendz/cnaclib/blob/master/Exemple_LSix21_02.ipynb
https://github.com/aistatendz/cnaclib/blob/master/Exemple_Tools_01.ipynb
https://github.com/aistatendz/cnaclib/blob/master/Exemple_Tools_02.ipynb
https://github.com/aistatendz/cnaclib/blob/master/Exemple_Tools_03.ipynbAuthorBENHAMADA Nadir (aistatendz@gmail.com)
Package: cnamedtuple
An implementation of namedtuple written in c for warp speed.Tested against Python 3.4 and 3.5, and 3.6 as of3084914245d2Warp SpeedTime to go fast.SetupUse qualified imports so that we can tell which namedtuple we are using.>>>fromnamedtupleimportnamedtupleascnamedtuple>>>fromcollectionsimportnamedtupleasstdnamedtuple>>>frompickleimportdumps,loadsLittle numbersCute graphsThese operations scale with the number of fields.Type creation from a string of field names.Type creation from a sequence of field names.Instance creation.Less cute numbersThese operations do not scale with number of fields.std_instis an instance of acollections.namedtuplecreated type
with six named fields: a, b, c, d, e, and f.c_instis an instance of acnamedtuple.namedtuplecreated type
with six named fields: a, b, c, d, e, and f.Field AccessIn[1]:%timeitstd_inst.c10000000loops,bestof3:71.9nsperloopIn[2]:%timeitc_inst.c10000000loops,bestof3:38.4nsperloopPickle RoundtripIn[3]:%timeitloads(dumps(std_inst))100000loops,bestof3:6.28µsperloopIn[4]:%timeitloads(dumps(c_inst))100000loops,bestof3:4.72µsperloopContributingThe project is hosted ongithub.Before submitting a patch, please make sure your Python code isPEP8compliant and your
c code isPEP7compliant.ContactPlease file all bug reports ongithub.For questions or comments, feel free to email me atjoe@quantopian.com
Package: cnbc
CNBCA Python package that wraps CNBC API endpoints and returns financial data in JSON format. The API queries business news and live market data to streamline the development of financial applications.IMPORTANT LEGAL DISCLAIMERcnbc isnotaffiliated, endorsed, or vetted by CNBC, Inc. It is
an open-source tool that uses a publicly available API and is
intended for research and educational purposes.InstallpipinstallcnbcSubscribe to CNBC APITutorialimportcnbcDefaultGet metadata that supports other endpoints.json_resp=cnbc.get_metadata(api_key='YOUR_API_KEY')Get auto complete suggestions by term or phrase.json_resp=cnbc.auto_complete(query='tesla',api_key='YOUR_API_KEY')SymbolGenerate image of earnings chart of specific stock quote, index, exchange, etc.json_resp=cnbc.get_earnings_chart(issue_id='36276',num_of_years='3',api_key='YOUR_API_KEY')Get summary information of stock quote, index, exchange, etc.json_resp=cnbc.get_profile(issue_id='36276',api_key='YOUR_API_KEY')Get raw data to draw price chart of stock quote, index, exchange, etc.json_resp=cnbc.get_chart(issue_id='36276',interval='1d',api_key='YOUR_API_KEY')Get issue_id from specific symbol.json_resp=cnbc.translate(symbol='TSLA',api_key='YOUR_API_KEY')Get summary information of stock quote, index, exchange, etc.json_resp=cnbc.get_summary(issue_ids='36276,24812378',api_key='YOUR_API_KEY')Get fundamental information of stock quote, index, exchange, etc.json_resp=cnbc.get_fundamentals(issue_ids='36276,24812378',api_key='YOUR_API_KEY')Generate image of price line chart of specific stock quote, index, exchange, etc.json_resp=cnbc.get_priceline_chart(issue_id='24812378',num_of_days='1',api_key='YOUR_API_KEY')Get peers relating to stock quote, index, exchange, etc.json_resp=cnbc.get_peers(symbol='36276',api_key='YOUR_API_KEY')MarketList all available indices.json_resp=cnbc.list_indices(api_key='YOUR_API_KEY')NewsList trending news.json_resp=cnbc.list_trending_news(count='25',api_key='YOUR_API_KEY')List special reports.json_resp=cnbc.list_special_reports(api_key='YOUR_API_KEY')List latest news by symbol name.json_resp=cnbc.list_symbol_news(symbol='AAPL',api_key='YOUR_API_KEY')
Package: cnbcfinance
InformationThis package to fetch data from cnbcInstallationpipinstallcnbcfinance--upgradeGet History by intervalGet data by interval and periodfromcnbcfinance.cnbcimportCnbccnbc=Cnbc('AAPL')df=cnbc.get_history_df('5M',proxy='138.201.120.214:1080')Get QuoteGet quote data realtimefromcnbcfinance.cnbcimportCnbccnbc=Cnbc('AAPL')quote=cnbc.get_quote(proxy='184.180.90.226:8080')
Package: cn-bing-translator
微软bing翻译器python sdk介绍微软bing翻译器，支持cn.bing.com和www.bing.com，建议轻量使用，欢迎star、follow、fork。适用对象无法或者不便使用微软Azaue Text Translation服务的用户轻量级用户可以使用bing提供的翻译能力。源码githubgitee安装pip install cn_bing_translator使用方法fromcn_bing_translatorimportTranslatorif__name__=="__main__":translator=Translator()source="翻译器"result=translator.process(source)print(result)默认情况下将自动检测源语言语种，并翻译为英语，如果需要指定其他语种，可以在初始化的时候传入对应的语言代码：# 传入以下参数初始化一个从英语到日语的翻译器translator=Translator(fromLang='en',toLang='ja')具体支持的语言类型和代码请参考微软网站。翻译器初始化的时候，也可以定制user agent：agent='Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1 Edg/99.0.4844.51'translator=Translator(agent=agent)如果有使用代理的需求，可以指定proxy：proxy={'https':'http://localhost:8080'}translator=Translator(proxy=proxy)默认调用cn.bing.com，如需使用www.bing.com，可以在初始化的时候指定：translator=Translator(cnBing=False)需要注意的是，根据bing.com的跳转规则，如果服务器判断是中国区用户访问，即使指定cnBing为False，仍然会自动跳转到cn.bing.com。注意事项建议轻量级使用，控制调用量和频率，微软bing翻译器默认带有防滥用措施，频繁发起大量请求可能会触发拦截。
Package: cnb-tools
Convenience tools/functions for challenges and benchmarking onSynapse.org📖Documentation:https://sage-bionetworks-challenges.github.io/cnb-tools👾Source code:https://github.com/Sage-Bionetworks-Challenges/cnb-toolscnb-toolsis a set of tools and commands that provides an interface
for managing crowd-sourced challenges hosted on Synapse.org, including
but not limited to,DREAM Challenges.RequirementsPython 3.9+Synapse accountTo fully utilizecnb-tools, you must have a Synapse account and
provide your credentials to the tool.  To do so, create a.synapseConfigfile in your home directory, and enter the following:[authentication]authtoken = "YOUR PAT"Generate a new SynapsePersonal Access Token (PAT)with all token
permissions enabled, then copy-paste it intoauthtoken. Save the file.For security, we recommend updating its permissions so that other
users on your machine do not have read access to your credentials, e.g.chmod600~/.synapseConfigInstallationpipinstallcnb-tools[!NOTE]cnb-toolsbuilds off of the Synapse Python Client — by
installingcnb-tools, you will also be installingsynapseclient.→Read its docs.Verify the installation with:cnb-tools--versionLicensecnb-toolsis released under the Apache 2.0 license.
Package: cnc-api-client-core
cnc_api_client_core for Pythoncnc_api_client_core is a library as a Python module used to get control of a RosettaCNC Board via the API Server in the RosettaCNC Control Software.Installation:pip install cnc-api-client-coreSupports:Win64 architecturePython cp3.9, cp3.10 and cp3.11Conda support:Win x64 from Python cp3.9 to cp3.11Venv support:Win x64 from Python cp3.9 to cp3.11