Saravanan666/pypi-org huggingface dataset:
Package: cookies-utilities
Cookie's UtilitiesUtility functions and classes.Documentation (released)Documentation (main branch HEAD)Installation (for Users)You can install the release version from PyPI.pip install cookies_utilitiesIf you want to use the latest version that has not been released, clone this repository and install from the local directory.git clone https://github.com/CookieBox26/cookies_utilities.git
cd cookies_utilities
pip install .Development Guide (for Developers)Please execute the following at the root of the repository.Test locallyPlease run the following commands.git clone https://github.com/CookieBox26/cookies_utilities.git
cd cookies_utilities
# make some changes to the code
pip install -e .  # install the package in editable mode
python -m unittest discover tests -v  # testIf an error occurs, you can fix the code and rerun the tests without having to reinstall the package.Update documentationIf you add a new function or class, please update the documentation accordingly.cd docs
vi source/cookies_utilities.rst  # add a new function or class
./make.bat html  # or 'make html' (not on Windows)
# Please open 'docs/build/html/index.html' in your browser and check the content.
cd ..If you are not an administrator, please open a pull request at this point.Build and upload the distribution archives (for administrator only)Please run the following commands. More details arehere.pip install --upgrade build  # upgrade 'build'
python -m buildThe following files will be generated../dist/cookies_utilities-0.0.1.tar.gz
./dist/cookies_utilities-0.0.1-py3-none-any.whlThen please run the following commands. More details arehere.pip install --upgrade twine
python -m twine upload --repository testpypi dist/*  # TestPyPI
python -m twine upload dist/*  # PyPI
Package: cookie-sync
cookie-syncAboutThis is a simple extension that allows you to sync cookies between Chrome and Python using thewebsocketprotocol.RequirementsPython >= 3.7aiohttpUsagepip install cookie-syncDownload the and unarchive the extension fromreleasesSethost_permissionsfor the target website inmanifest.jsonLoad the extension in ChromeGo tochrome://extensionsClickLoad unpackedand locate the extension folderQuickstart exampleimportaiohttpfromcookie_syncimportrun_serversession=aiohttp.ClientSession()run_server(session=session,domain='https://google.com')Documentationrun_serverconfiguration optionssession:aiohttp.ClientSession-'The session to keep cookies synced on'domain:str-'The domain to sync cookies for'cookies:Optional[list]# Default []-'List of cookies to sync, if empty, all cookies will be synced'wait_for_cookies:Optional[bool]# Default True-'If `False`, will not wait for the cookies to be synced'timeout:Optional[int]# Default 30-'Timeout in seconds to wait for `wait_for_cookies`'
Package: cookietemple
A cookiecutter based project template creation tool supporting several domains and languages with advanced linting, syncing and standardized workflows to get your project kickstarted in no time.Documentation:https://cookietemple.readthedocs.io.cookietemple overviewInstallingStart your journey with cookietemple by installing it via$ pip install cookietemple.SeeInstallation.configConfigure cookietemple to get started.SeeConfiguring cookietemplelistList all available cookietemple templates.SeeListing all templates.infoGet detailed information on a cookietemple template.SeeGet detailed template information.createKickstart your customized project with one of cookietemple’s templates in no time.SeeCreate a project.lintUse advanced linting to ensure your project always adheres to cookietemple’s standards.SeeLinting your projectbump-versionBump your project version with many configurable options.SeeBumping the version of an existing project.syncSync your project with the latest cookietemple release to get the latest template features.SeeSyncing a project.warpCreate a self contained executable.
Currently, cookietemple does not ship any templates anymore, where this may be required.SeeWarping a project.upgradeCheck whether you are using the latest cookietemple version and update automatically to benefit from the latest features.Seehttps://cookietemple.readthedocs.io/en/latest/upgrade.html.Projects using cookietemplecookietemple websitesystem-intelligencemlf-coreContributingcookietemple is a huge open-source effort and highly welcomes all contributions! Join ourDiscord Channel.
Please readcontributingto find out how you can contribute.Authorscookietemple was initiated and developed byLukas Heumos (Github)andPhilipp Ehmele (Github).
A full list of contributors is available on ourstatistics webpage.
Package: cookie-test
Cookie TestFeaturesTODORequirementsTODOInstallationYou can installCookie TestviapipfromPyPI:$pipinstallcookie-testUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Cookie Testis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: cook-jobclient
[![Build Status][travis-badge]][travis-url][![Test Coverage][cc-badge]][cc-url][![PyPI version][pypi-badge]][pypi-url][travis-badge]:https://travis-ci.org/m4ce/cook-jobclient-python.png[travis-url]:https://travis-ci.org/m4ce/cook-jobclient-python[cc-badge]:https://codeclimate.com/github/codeclimate/python-test-reporter/badges/coverage.svg[cc-url]:https://codeclimate.com/github/m4ce/cook-jobclient-python/coverage[pypi-badge]:https://badge.fury.io/py/cook-jobclient.svg[pypi-url]:https://badge.fury.io/py/cook-jobclientThis is a simple Python library that allows to interact with the Cook Scheduler REST API.Pull requests to add additional API features are very welcome. I only implemented what I needed.## Install
To install it simply issue the following command:` pip installcook-jobclient`## Docs
Online documentation is available at [ReadTheDocs](http://cook-jobclient-python.readthedocs.io).## Contact
Matteo Cerutti -matteo.cerutti@hotmail.co.uk
Package: cookjoke
Cook jokeI saw this picture on reddit and thought it was an uml diagram. This project is a software implementation of a joke about cook.Requirements* Python3How to installDownload this repository to your computerfoo@bar:~$gitclonehttps://github.com/cl1ckname/CookJoke.gitGo to repository folderfoo@bar:~$cdCookJoke/Runmain.pyfoo@bar:~$python3src/main.py
Package: cool
Cool.pyMake Python code cooler. 100% coverage. Use and enjoy this code!Installpip install coolOr fetch from githubpip install git+https://github.com/abersheeran/cool@setup.pyUsagePipeNote: as fast as you didn't use F!Use pipeline to pass data as a positional parameter to the next function.fromcoolimportFassertrange(10)|F(filter,lambdax:x%2)|F(sum)==25Or you need to pass multiple parameters through the pipeline. Note thatFFcan only accept one parameter, and it must be an iterable object.fromcoolimportFFassert(1,2)|FF(lambdax,y:x+y)==3You can use...as a placeholder. This is useful when you need to pass non-continuous parameters to create a partial function.fromfunctoolsimportreducefromcoolimportFassertrange(10)|F(reduce,lambdax,y:x+y)==45assertrange(10)|F(reduce,lambdax,y:x+y,...,10)==55square=F(pow,...,2)assertrange(10)|F(map,square)|F(sum)==285Therange(10) | F(reduce, lambda x, y: x + y, ..., 10)is equivalent toreduce(lambda x, y: x + y, range(10), 10).RedirectJust like the redirection symbol inShell, you can redirect the output to a specified file orTextIOobject through>or>>.Note:Rinherits fromfunctools.partial.frompathlibimportPurePathfromcoolimportR# Redirect output to specified filepathR(print,"hello")>PurePath("your-filepath")# Append modeR(print,"world")>>PurePath("your-filepath")Redirect to opened file or other streams.fromioimportStringIOfromcoolimportRwithopen("filepath","a+",encoding="utf8")asfile:R(print,"hello")>>fileout=StringIO("")R(print,"hello")>outout.seek(0,0)assertout.read()=="hello\n"Maybe you also want to block the output, just like> /dev/null.fromcoolimportRR(print,"hello")>None# OrR(print,"hello")>>NoneNote that after the calculation is over,Rwill faithfully return the return value of your function. Try the following example.frompathlibimportPurePathfromcoolimportF,Rdeffunc(num):returnrange(num)|F(map,lambdax:print(x)orx)|F(sum)print(R(func,10)>PurePath("filepath"))Set GlobalMaybe you don't want to usefrom cool import Fin every file of the entire project, you can use the following code to set it as a global function, just likemin/max/sum.importcoolcool.set_global(cool.F,cool.FF)Maybe you also want to exposefunctools.reduceto the world, just likemap/filter.importfunctoolsimportcoolcool.set_global(cool.F,cool.FF,functools.reduce)
Package: coolab
CoolabInstantly working cool apps you can use on Google Colab In ONE line!Available Apps1. vscodeimport coolab; coolab.Code().run()2. more to comeHow to Use in Google Colab?!pip install coolab # install package using pip
import coolab; coolab.Code().run() # run in seconds.How Fast is itWe cache vscode installation files and configurations in your google drive if you choose to mount your drive. It takes much less time if you run the same code at the second time (even in different colab sessions).VScode installation package is cached (so need to re-download vscode)Your connection token is cached (never worry about configuration)Working directory is cached (so you always automatically get directed back to the last working directory)How Coolab is MadeCoolabis made usingcoolabon GoogleColab:laughing: (pun intended).Related ProjectsA similar projectcolabcodealso provides vscode access using colab. However, we aim to provide better user experience using caching mechanism.Next StepWe aim to provide more online tools using the computation resource of Google Colab. You start to use these awesome tools and we deal with the rest!SuggestionsFeel free to create newissueso we can improve this library!UpdatesBug fixes to prevent crashing when selecting drives.
Package: cool-cache
What is this?The smart way to cache outputs to cold storage.auto rebuilds cache when you edit function source codeuses mutltiprocessing to keep main thread running fast while saving to diskexcellent change-tracking of arguments thanks tosuper_hashcan watch change-tracking of external vars and method attributesuses python pickle for saving function outputs, ifdillis available it will use that insteadHow do I use this?pip install cool_cachefromcool_cacheimportcache,settingssettings.default_folder=None# disable caching to cold-storage, and instead cache to ram# this is the default, but you can change itsettings.default_folder="cache.ignore/"### simple usage (updates whenever function is edited (excluding comments) or when args change)##@cache()defthings_with_args(a,b,c):fromtimeimportsleep;sleep(1)# <- simulating a long-running processreturna+b+cthings_with_args(1,2,3)# not yet cachedthings_with_args(1,2,3)# uses cachethings_with_args(9,9,9)# not yet cachedthings_with_args(9,9,9)# uses cache### external vars##external_counter=0@cache(depends_on=lambda:[external_counter])defthings_with_external(a,b,c):globalexternal_counterfromtimeimportsleep;sleep(1)# <- simulating a long-running processreturnexternal_counter+a+b+c## behavior#things_with_external(4,5,6)# not yet cachedthings_with_external(4,5,6)# uses cacheexternal_counter=1things_with_external(4,5,6)# not yet cached (because external_counter changed)things_with_external(4,5,6)# uses cache### filepath arguments##@cache(watch_filepaths=lambdaarg1,arg2,arg3:[arg1,arg2])# because first two args are filepathsdefthings_with_files(filepath1,filepath2,c):withopen(filepath1,'r')asin_file1:withopen(filepath2,'r')asin_file2:returnin_file1.readlines()+c+in_file2.readlines()## behavior#things_with_files("./file1.txt","./file2.txt","hello")# not yet cachedthings_with_files("./file1.txt","./file2.txt","hello")# cachedwithopen("./file2.txt",'w')asf:f.write(str(" world"))# <-- modify the filethings_with_files("./file1.txt","./file2.txt","hello")# not yet cached, because file change is detectedthings_with_files("./file1.txt","./file2.txt","hello")# cached### class methods (e.g. self)##classMyThing:def__init__(self,path,other_stuff):self.path=pathself.other_stuff=other_stuff# for example: self.path changing will affect the cache, but self.other_stuff wont affect the cache@cache(watch_attributes=lambdaself:[self.path,])defdo_some_stuff(self,arg1):fromtimeimportsleep;sleep(1)returnself.path+arg1## bust=True wipes out all cached values for this function on the next run#@cache(bust=True)defthings(a,b,c):return10
Package: coolclip
Clip the cooler file to a small subset within specified regions.
Used for create example dataset forcoolerbased software test/debug/demonstration.I want to extract a small subset of
.cooler file
and create a new one, but found cooler not support that.So this is a small tool for clip the cooler file.Maybe cooler will support this in the feature,
this will be deprecated.Install$pipinstallcoolclipUsage$coolclip--help
Package: cool-config
Cool ConfigSimple way to use configuration files with Python configuration model.RequiresPython 3.6+UsageSimple usage example:fromcool_configimport*classConfig(AbstractConfig):"""Configuration model inherits from AbstractConfig, and all configuration sections from Section"""classmain(Section):a=Integerb=Integerconfig=Config()# create global configuration object and import it# more examples available in test/main.pyif__name__=='__main__':config_data={'main':{'a':5},'b':42}# config.load('config.yml')  # initialize configuration with config.yml in#   you application entry point (before `config` usage)config.update_from_dict(config_data)print(config)# {'b': 42, 'main': {'a': 5}}print(config.main.a)# 5print(config.b)# 42config_data_b={'main':{'a':55},}config.update_from_dict(config_data_b)print(config)# {'b': 42, 'main': {'a': 55}}"""ENVIRONMENT:TEST__main__a = '6'TEST__b = '22'THE_ANSWER_KEY = '42'"""config.update_from_env('TEST',delimiter='__')print(config)# {'b': 22, 'main': {'a': 6}}
Package: cool-django-auth-ldap
BadgesPyPIMasterDevelopInstallpip install cool-django-auth-ldapReadmeThis is fork of django-auth-ldap 2.0.0. I tried to save all original features while adding few new ones. In 95% original documentation is still applies,
just replace package namedjango_auth_ldaptocool_django_auth_ldap. All changes described in this readme.Original documentation:https://django-auth-ldap.readthedocs.io/en/2.0.0/
Package: cooleans
CooleansCooleans is a Python package that aims to enhance the bool type in Python by adding a new possible value: "perhaps". This is a value that is neither True nor False, but rather may be one of those values. With cooleans, you can more accurately represent situations where the truth value of a statement is uncertain or unknown.Getting StartedInstallationYou can install cooleans using pip:pip install cooleansUsageHere's an example of how to use cooleans in Python:fromcooleansimportDefinitelyTrue,DefinitelyFalse,Perhapsmy_bool=DefinitelyTrueifmy_bool:print("This is definitely true")my_bool=Perhapsifmy_bool>=Perhaps:print("This might be true")In this example, we create aDefinitelyTruecoolean value and use it in an if statement to print "This is definitely true". We then create a Perhaps coolean value and use it in an if statement to print "This might be true". Note that Perhaps will always have a truth value of False when treated as a bool.Supported OperatorsCooleans support the same logical operators as normal bools in Python, including:andornot==!=<><=>=Using Values DirectlyCooleans can be used directly as values since they are implemented as a Python class, like so:fromcooleansimportDefinitelyTrue,DefinitelyFalse,Perhapsprint(DefinitelyTrueandDefinitelyFalse)This code snippet will output DefinitelyFalse.ContributingWe don't welcome contributions to cooleans yet.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.
Package: cooleiot
酷易物联Python3SDK酷易物联，快速接入/开发/管理物联设备cooleiot.tech实例实例化IoT连接，须填入设备的DevelopKeyfromCoolEIoTimportCoolEiot=CoolE("{developkey}")iot.setDebug# 设置debug状态defsetDebug(self,sta:bool=True)使用：iot.setDebug()iot.recviot.recv 是 CoolE类的一个成员变量，用于存储当前从MQTT服务器接收到的消息每当使用iot.decode()解析成功字段后，iot.recv将会重置清零使用：recv=iot.recviot.getDeviceId# 获取设备IDdefgetDeviceId(self)使用：在iot.start()之后才能调用此方法获取设备IDdevice_id=iot.getDeviceId()连接iot.start# 配置设备初始化并连接到MQTT服务器defstart(self,keepalive:int=60,ssl:bool=False,host=False)"""keepalive: 默认60秒ssl: 开启mqttshost: 是否上位机(为True后，连接到mqtt服务器后不会触发上线)"""使用：iot.start()iot.start(120)iot.start(120,True)iot.loop# MQTT接收循环defloop(self)循环接收MQTT消息，如需要在设备运行过程中接收消息，请将该方法放入主函数的while True:中使用：iot.loop()iot.stop# 关闭MQTT连接defstop(self)使用：iot.stop()字段iot.decode# 字段解析defdecode(self,payload:str,type:str)type=["COMMAND","GET","CONTENT"]# 命令字段，GET指令，内容字段该方法用于解析在程序运行过程中接收到的三类字段使用示例：defhandleGet():get=iot.decode(iot.recv,"GET")ifgetisnotNone:print("接收到["+get+"]GET指令")defhandleCommand():command=iot.decode(iot.recv,"COMMAND")ifcommandisnotNone:print("接收到["+command+"]命令字段")defhandleContent():content=iot.decode(iot.recv,"CONTENT")ifcontentisnotNone:print("接收到["+content['n']+"]内容字段，内容为："+content['d'])开发中，您需要先将字段数据更新至iot实例中的一个成员变量，然后再进行消息发布也就是说，更新数据和发布消息是两步！iot.updateReport# 为通信字段添加一个字段内容defupdateReport(self,field:str,data)该方法用于将数据更新至指定通信字段，相同字段名，后更新的数据会覆盖之前的数据使用：iot.updateReport("temp",23.6)iot.updateReport("ledsta","开")iot.getReport# 获取通信字段内容defgetReport(self,field:str)使用：ledsta=iot.getReport("ledsta")iot.clearReport# 清除当前成员变量存储的所有通信字段信息defclearReport(self)使用：iot.clearReport()iot.updateContent# 为通信字段添加一个字段内容defupdateContent(self,field:str,data)该方法用于将数据更新至指定内容字段，相同字段名，后更新的数据会覆盖之前的数据使用：content=iot.decode(iot.recv,"CONTENT")ifcontentisnotNone:iot.updateContent(content['n'],content['d'])iot.getContent# 获取通信字段内容defgetContent(self,field:str)使用：print(iot.getContent("line1"))iot.clearContent# 清除当前成员变量存储的所有内容字段信息defclearContent(self)使用：iot.clearContent()发布为了避免代码编写不规范等导致的Broker阻塞无论代码编写方法如何，publish方法每秒只会发送一条消息iot.publish# 发布消息defpublish(self,field:str=None,payload=None)发布消息到MQTT服务器如果您想发送之前使用iot.updateReport()存储的所有通信字段内容iot.publish()如果您想发送之前使用iot.updateReport()存储的指定通信字段内容iot.publish("temp")如果您想发送指定通信字段内容的自定义内容，而不在其前面进行updateReport()。也就是说您想单独发送此次消息，而不将这次发送的数据更新到通信字段成员变量中iot.publish("temp",23.8)iot.publish("ledsta","开")iot.selfPublish如果您想发送自定义key-value键值对iot.selfPublish("hello","world")# {"hello":"world"}iot.selfPublish("ram",400)# {"ram":400}iot.selfPublish("ram","400")# {"ram":"400"}云配置为了节省服务器资源，云配置每个DevelopKey每天仅能调用200次iot.getConfig# 获取云配置defgetConfig(self,field:str)使用：citycode=iot.getConfig("citycode")
Package: cooler
CoolerLatest ReleaseLicenseBuild StatusPre-commit StatusDocs StatusCoverageDownloadsCitationCommunityA cool place to store your Hi-CCooler is a support library for asparse, compressed, binarypersistent storageformat, also called cooler, used to store genomic interaction data, such as Hi-C contact matrices.The cooler file format is an implementation of a genomic matrix data model usingHDF5as the container format. Thecoolerpackage includes a suite ofcommand line toolsand aPython APIto facilitate creating, querying and manipulating cooler files.To get started:InstallcoolerRead thedocumentationand see the Jupyter Notebookwalkthrough.coolfiles from published Hi-C data sets are available atftp://cooler.csail.mit.edu/coolers.Many more multires (mcool) files are available on the4DN data portal.InstallationInstall from PyPI using pip.$pipinstallcoolerIf you are usingconda, you can alternatively installcoolerfrom thebiocondachannel.$condainstall-cconda-forge-cbiocondacoolerCitingAbdennur, N., and Mirny, L.A. (2020). Cooler: scalable storage for Hi-C data and other genomically labeled arrays.Bioinformatics. doi:10.1093/bioinformatics/btz540.@article{cooler2020,author={Abdennur, Nezar and Mirny, Leonid A},title="{Cooler: scalable storage for Hi-C data and other genomically labeled arrays}",journal={Bioinformatics},volume={36},number={1},pages={311--316},year={2020},doi={10.1093/bioinformatics/btz540},url={https://doi.org/10.1093/bioinformatics/btz540},}ContributingInterested in contributing to cooler? That's great! To get started, check out thecontributing guide.Related projectsProcess Hi-C data withdistiller!Downstream analysis withcooltools!Visualize your cooler data withHiGlass!
Package: coolered
# Disclaimer - This shit ain't done# Coolered## A better [dslackw/colored](https://github.com/dslackw/colored)I read the readme of dslackw/colored for Python, and thought it was too complicated. This will be an interface so simple you memorize it immediately.## Example```# Colorscolor('red', 'This is red')color('blue', 'This is blue')color('yellow', 'This is yellow')# Backgroundscolor('red', "This is red with a blue background", bg='blue')color('blue', "This is blue with a yellow background", bg='yellow')# That's it```## Color reference chart## Installation```pip install coolered```## Uninstallation```pip uninstall coolered```
Package: cool-gpt
cool_gptCool-GPT is a Python library that allows you to use ChatGPT for free using the Selenium framework.
By utilizing Selenium, you can automate use chatgpt like api, this helps you to generate text and engage in conversations programmatically.
It doesn't require any API keys and it's easy to use and straightforward.
It also doesn't scrape openai or chatgpt website.PrerequisitesBefore using Cool-GPT, ensure that you have the following prerequisites installed:Python 3.6 or aboveSelenium (install viapip install selenium)element-manager (install viapip install element-manager)A compatible web driver for Selenium (e.g., ChromeDriver)LinkPut the web driver in the same folder as the scriptA stable internet connectionInstallationYou can install cool_gpt via pip:pipinstallcool_gptGetting StartedTo get started, follow these steps:[Basic Usage] Here's a basic example of how to use cool_gpt:Install:pip install cool-gpt==0.0.1orpip install cool-gptNOTE: cool-gpt==0.0.1 doesn't support text to speech and speech to textfrom cool_gpt import bot

driver = bot.setup_driver()
print('Enter 'q' to quit')
while True:
    message = input('You: ')
    if message == 'q':
        break
    print('Bot:', bot.ask(message, driver))[Advance Usage] It also supports text to speech and speech to text:Install:pip install cool-gptfrom cool_gpt import bot
from cool_gpt.speech_to_text.speech_to_text import speech_to_text_google
from cool_gpt.speech_to_text.speech_to_text_whisper import speech_to_text_whisper
from cool_gpt.text_to_speech.text_to_speech import text_to_speech

driver = bot.setup_driver(debug=False)
while True:
    # message = input('You: ') # for text input
    message, status = speech_to_text_whisper()  # for speech input via whisper
    # message, status = speech_to_text_google()  # for speech input via gtts
    if status:
        print('You:', message)
        ans = bot.ask(message, driver)
        print('Bot:', ans)
        text_to_speech(ans, backend_tts_api='pyttsx3')  # for speech output via pyttsx3 its free and unlimited
        # _ = text_to_speech(ans, backend_tts_api='gtts')  # for speech output via gtts its free but limited in a day
    else:
        print('Speak again louder please.')LimitationsPlease note the following limitations of cool_gpt:cool_gpt is dependent on the availability and reliability of the toolbot.ai interface.Usage of cool_gpt may be subject to the terms and conditions of the service providing the toolbot.ai interface.Selenium automation may be slower compared to the OpenAI API, and rate limits may apply depending on the provider and toolbot.ai interface.ContributingContributions to cool_gpt are welcome! If you have any ideas, improvements, or bug fixes, please submit a pull request or open an issue on the GitHub repository.Licensecool_gpt is licensed under the MIT License. Feel free to use and modify the library according to your needs.Acknowledgementscool_gpt was inspired by the amazing work done by toolbot.ai in developing this amazing website.Thank me on-Follow me on Instagram:https://www.instagram.com/dipesh_pal17Subscribe me on YouTube:https://www.youtube.com/dipeshpal17