Saravanan666/pypi-org huggingface dataset:
Package: clera
DEDICATION"This project is dedicated to my cousin who was like a mother to me. Though you are no longer with us, you will never be forgotten. May your memory be forever held in this project."--Bridget Trinity Vedjesu--Clera - GUI Development with PythonClera provides platform for developing python GUI quickly and simply with low learning curve.NOTE:Clera is still in thealphastage which means development is not complete its undergoing internal tests and development. To help with the testing process, please send me an emaileirasmx@pm.meTHE BASICSInstallationpipinstallcleraYour first application and Skeleton of every GUI developed using clera.Code:fromcleraimport*window=Window()# window widgets and layouts goes here!window.run()Output:" Why Complicate Simplicity? "PLATFORMSClera runs on multiple platforms and has a native interface on each.Hardware SupportRuns on Desktop and LaptopsOS SupportWindowsMacLinuxTo run the clera style editor, run "clera-editor" in the terminal or command prompt. Also to see a sample of what clera is capable of, check out the editor. Its developed with clera!INFO:Visithttps://cleragui.github.io/for documentation and more information.RELEASE NOTESv0.2.2 (2023-12-19) - Various fixes and additionsCustom Titlebar Control Buttons (fixed)Clera Deploy (Covert Code to Executable) (added)Hover Parameter for Button (added)Multiprocessor (added)Clera Editor Not Running (fixed)"database" not in module (fixed)
Package: clerk-sdk-python
Unofficial Clerk.dev Python SDKWhat is Clerk.dev?Seehttps://clerk.devInstallationpip install clerk-sdk-pythonUsageimportasynciofromclerkimportClientasyncdefmain():asyncwithClient("my-token")asclient:users=awaitclient.users.list()foruserinusers:print(f"Got user{user.id}->{user.first_name}{user.last_name}")asyncio.run(main())
Package: clesperanto
clesperantoclesperanto is a graphical user interface for a multi-platform multi-language framework for GPU-accelerated image processing.
It is based onnapariand thepyclesperanto-prototype.InstallationGet a python environment, e.g. viamini-conda. If you never used python/conda environments before, please follow the instructionsherefirst.Installpyopenclandnapariusing conda (seriously, don't use pip here, at least on Windows).conda install -c conda-forge pyopencl napariAfterwards, installclesperantousing pip:pip install clesperantoUsageYou can then start clesperanto from the command line:cleYou can also pass image files as arguments like this:cle https://samples.fiji.sc/blobs.pngOr:Documentationclesperanto installs multiple napari plugins. Check out their documentation for detailsThe clesperanto assistantAccelerated pixel and object classificationBrightness/contrastMouse controlsPlot profileScikit-image's regionpropsSegment blobs and things with membranesMulti-viewer supportCroppingLayer details displayAlso read more details about theclesperanto-project and mission.Feedback welcome!clesperanto is developed in the open because we believe in the open source community. See ourcommunity guidelines. Feel free to drop feedback asgithub issueor viaimage.sc
Package: cletus
Cletus is a library to help with commmand line python programs.It includes: - cletus_config: makes it easy for a program to combine
config files, environmental variables, and arguments into a single
schema-validated config. - cletus_supp: allows programs and users to
“suppress” actions with a program simply by touching a file in a
dedicated directory. The suppression action may be to quit, or to simply
sleep or temporarily suspend processing. - cletus_log: just boilerplate
for common logging. - cletus_job: a well-tested mechanism that uses a
pid file to ensure that the same file doesn’t get run twice.More info is on the cletus wiki here:https://github.com/kenfar/cletus/wikiInstallationUsingpip(preferred)
oreasyinstall:~$ pip install cletus $ easy_install cletus~Or install manually frompypi:~$ mkdir ~$ wgethttps://pypi.python.org/packages/source/d/cletus/cletus-0.1.tar.gz$
tar -xvf easy_install cletus $ cd ~-* $ python setup.py install~DependenciesAny of: python 2.7, 3.4, 3.5 or pypyLicensingCletus uses the BSD license - see the separate LICENSE file for
further informationCopyrightCopyright 2013, 2014, 2015, 2016 Ken Farmerv1.0.15 - 2018-05setupalter: replace pip’s req module with simple readline to deal with
pip 10v1.0.14 - 2016-08cletus_loggeradd: user-customizable delimiter to log outputv1.0.13 - 2016-05alladd: minor changes tox.ini to support python 2.7, 3.4, 3.5, and
pypyv1.0.12 - 2015-09cletus_supp.pyadd: silent arg to SuppressCheck() class to suppress all logging.
Needed to handle logging volume when continually-checking for
suppressions.v1.0.11 - 2015-05cletus_config.pyfix: improved defaultingeverything:ran modernizer to make the code more python3-readyv1.0.10 - 2015-03cletus_config.pyfix: diminished loggingv1.0.8 - 2015-01cletus_config.pyadded tests to confirm optional column NULLsadded remove_null_overrides to simplify useadded apply_defaults to simplify usefix: stopped putting copy of sample configs in /tmpv1.0.6 - 2014-07cletus_archiver.pyadded commentsadded config to setupv1.0.5 - 2014-07cletus_archiver.pymoved to script dir from examplesetup changed to include archiver & config filecletus_supp.pycheck suppressions directory only when the suppressions method is
called, so it can be called repeatedly at checkpoints by an app.changed suppressions method behavior to default app_name to init
app_name.v1.0.4 - 2014-07cletus_jobchanged to use flock exclusively rather than the pid from the
pidfile and a check to see if that pid was still being used. This
eliminates a big race condition.added concurrency testingcletus_configadded namespace, dictionary and env config inputsadded namespaceadded test harnessv1.0.1 - 2014-03cletus_loginitial addcletus_configinitial addcletus_suppinitial addcletus_jobinitial add
Package: cleveland-family-study
cfsAnalyze the nsrr cfs dataset using python.ExamplesCheck dataset integrityCFSROOTDIR=/my/path/to/cfspython-mcfsList all data filesimportcfsfiles=cfs.Dataset().filesprint(files)Return subject information as dictionaryimportcfsdset=cfs.Dataset()print(dset.subject_info(0,as_dict=True))
Package: clever-alexis
Clever redhead girl that builds and packs Python project with Virtualenv into rpm, deb, etc.Quick startInstall using pip$ pip installclever-alexisordownload the latest releaseadd run setup.py script$ python setup.py installLook atexample/fabfile.pyLocal dependenciesfabric(>=1.4.0)python(2.x only)Server dependenciesfpm(>=0.4.20)python(>=2.5)hg(>=2.0)Code includesvirtualenv.py(1.8.2)clonevirtualenv.py(0.2.4)
Package: cleverange-auth
Cleverange AuthCleverange Auth is a Django app to managing authenticated systems.Quick startAdd "accounts" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...
 'accounts',]Include the accounts URLconf in your project urls.py like this::path('accounts/', include('accounts.urls')),Include the "AUTH_USER_MODEL" and "AUTHENTICATION_BACKENDS" in your project settings.py like this::AUTH_USER_MODEL = 'accounts.User'AUTHENTICATION_BACKENDS = ['accounts.backends.EmailOrUsernameBackend']Include the "LOGIN_REDIRECT_PATH" (to redirect user after login) in your project settings.py like this.LOGIN_REDIRECT_PATH = '/'Include the EMAIL access (to send verification mail) in your project settings.py like this.EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'EMAIL_HOST = 'smtp.gmail.com'EMAIL_USE_TLS = TrueEMAIL_PORT = 587EMAIL_HOST_USER = 'your_email_address@gmail.com'EMAIL_HOST_PASSWORD = 'your_app_password'Runpython manage.py migrateto create the accounts models.Start the development server and visit to your endpoint.http://127.0.0.1:8000/accounts/register/http://127.0.0.1:8000/accounts/login/THANK YOU FOR USING OUR APP.
Package: cleverbot2
Cleverbot.py - an API for Cleverbot in Python=============================================Comments/pull requests/feedback welcome!Usage-----Taken from cleverbot/cleverbot.py:150-161```>>> if __name__ == "__main__":cb1 = Cleverbot()cb2 = Cleverbot()resp1 = cb1.ask("Hello.")print "Bob:", "Hello"while True:print "Alice:", resp1resp2 = cb2.ask(resp1)print "Bob:", resp2resp1 = cb1.ask(resp2)```
Package: cleverbotfree
cleverbotfreeCleverbot.com used to have a free API for their chatbot application. They haveremoved their free API in place of a tiered subscription API service.cleverbotfree is a free alternative to that API that uses a headless Firefoxbrowser to communicate with their chatbot application. You can use this moduleto create applications/bots that send and receive messages to the Cleverbotchatbot application.InstallationRequirmentsnode >= 14.16.1Python >= 3.8.0python3-pip >= 21.1.1Once requirments are met, you can install this library through pip.pip install cleverbotfreeDriversThis library uses the Playwright library to interface the Cleverbot websitewith a headless Firefox browser.To download the Playwright Firefox browser binary simply run this command afterinstalling cleverbotfree:playwright install firefoxUsageExamplesExample of a simple CLI script that creates a persistent chat session until closed.importasyncioimportcleverbotfreedefchat():"""Example code using cleverbotfree sync api."""withcleverbotfree.sync_playwright()asp_w:c_b=cleverbotfree.Cleverbot(p_w)whileTrue:user_input=input("User: ")ifuser_input=='quit':breakbot=c_b.single_exchange(user_input)print('Cleverbot:',bot)c_b.close()chat()asyncdefasync_chat():"""Example code using cleverbotfree async api."""asyncwithcleverbotfree.async_playwright()asp_w:c_b=awaitcleverbotfree.CleverbotAsync(p_w)whileTrue:user_input=input("User: ")ifuser_input=='quit':breakbot=awaitc_b.single_exchange(user_input)print('Cleverbot:',bot)awaitc_b.close()asyncio.run(async_chat())Example of a simple CLI script using the class decorator.importasynciofromcleverbotfreeimportCleverbotAsyncfromcleverbotfreeimportCleverbot@Cleverbot.connectdefchat(bot,user_prompt,bot_prompt):"""Example code using cleverbotfree sync api with decorator."""whileTrue:user_input=input(user_prompt)ifuser_input=="quit":breakreply=bot.single_exchange(user_input)print(bot_prompt,reply)bot.close()chat("User: ","Cleverbot:")@CleverbotAsync.connectasyncdefasync_chat(bot,user_prompt,bot_prompt):"""Example code using cleverbotfree async api with decorator."""whileTrue:user_input=input(user_prompt)ifuser_input=="quit":breakreply=awaitbot.single_exchange(user_input)print(bot_prompt,reply)awaitbot.close()asyncio.run(async_chat("User: ","Cleverbot:"))
Package: cleverbotfreeapi
cleverbotfreeapiSimple unofficial package to interact with the same API that the Cleverbot website uses for free.Installationpip install cleverbotfreeapiUsageimportcleverbotfreeapi# Without context or sessioncleverbotfreeapi.cleverbot("Hello.")# With context, without session# Please note that context should include messages sent to Cleverbot as well as the responsescleverbotfreeapi.cleverbot("Bad.",["hi.","How are you?"])# Without context, with sessioncleverbotfreeapi.cleverbot("Hi.",session="Deftera")cleverbotfreeapi.cleverbot("Fine :)",session="Deftera")# With context and session# An ongoing conversation with the first question as "How are you?"cleverbot(input(">>"),["hi.","How are you?"],"How are you?")whileTrue:print(cleverbot(input(">>"),session="How are you?"))
Package: cleverbotio
cleverbotio.py============A python wrapper for the cleverbot.io API that has an async option============Note: This is WIPExample-------.. code:: pyimport Cleverbotiocb = Cleverbotio.Cleverbot('API_USER','YOUR_API_KEY', 'Bot Nickname')cb.create_session()resp = cb.say("Hello World")print(resp)# will print something like: {'status': 'success', 'response': "I'm not the world."}Installing----------Install it normally from `PyPI <https://pypi.org/project/cleverbotio/>`_ withpip:::pip install cleverbotioOr install it with the asynchronous dependencies (Python 3.4.2+ only):::pip install cleverbotio[async]**Requirements:**- Python 3.2+ or 2.7- `A Cleverbot API Key <https://cleverbot.io/login>`_**Dependencies:**- requests 1.0.0++ **Asynchronous:**- aiohttp 1.0.0+Usage-----First import the package:.. code:: pyimport CleverbotioIf you have the asynchronous dependencies and want to use Cleverbotasynchronously import it as below instead:.. code:: pyfrom Cleverbot import async as cleverbotThen initialize Cleverbot with your API key and optionally a cleverbot state,timeout and or tweak if you want to adjust Cleverbot's mood:.. code:: pycb = Cleverbot.Cleverbot('API_USER, 'YOUR_API_KEY', 'Bot Nickname')Now you create a cleverbot instance.. code:: pycb.create_sessionNow you can use the say function which returns a JSON dict from the API of the status and cleverbot response.. code:: pyresp = cb.say('Hello World')print(resp)#should print a dict like: {'status': 'success', 'response': "I'm not the world."}
Package: cleverbot-scraper
Cleverbot ScraperSimple free cleverbot library that doesn't require running a heavy ram wasting headless web browser to actually chat with the bot, only relying on the requests module. The api is wrapped by theCleverbotclass and you can use thesendmodule to receive responses from cleverbot.Try itInstall and test with:pip3installcleverbot-scraper
python3-mcleverbotThe last command will start a live session with the cleverbot.You can also make cleverbot chat with itself with:python3-mcleverbotautoExamplesChat with the botfromcleverbotimportCleverbotbot=Cleverbot()print("Start the conversation, press Ctrl-c to stop\n")try:whileTrue:print(bot.send(input(">> ")))exceptKeyboardInterrupt:print("Exiting.")Make the bot chat with itselffromcleverbotimportCleverbotalice=Cleverbot()bob=Cleverbot()message="Hi there! How are you doing?"print("Press Ctrl-c to stop\n")try:whileTrue:print("Bob: ",message)message=alice.send(message)print("Alice: ",message)message=bob.send(message)exceptKeyboardInterrupt:print("Exiting.")Use proxiesIf cleverbot.com is returning 403 errors for you you might want to use a proxy:fromcleverbotimportCleverbotbot=Cleverbot(proxies={'http':'http://x.x.x.x:yyyy','https':'http://x.x.x.x:yyyy'})whileTrue:print(bot.send(input(">> ")))You can also simply pass a list ofip:port:fromcleverbotimportCleverbotPROXIES=[None,"x.x.x.x:yyyy","x.x.x.x:yyyy","x.x.x.x:yyyy","x.x.x.x:yyyy","x.x.x.x:yyyy",]bot=Cleverbot(proxies=PROXIES)whileTrue:print(bot.send(input(">> ")))Use tor as a fallbackRequirestorpywith requests extra:pip3 install torpy[requests]fromcleverbotimportCleverbotbot=Cleverbot(use_tor_fallback=True)whileTrue:print(bot.send(input(">> ")))
Package: clever-chat
Clever-chatAn API Wrapper for clever-chat (chatbot) in PythonFeaturesEasy to useEpic customizationsExtremely fast responsesNo rate-limitsInstallationpipinstallclever-chatAPI ReferenceGetting a response# Synchronous Clientimportclever_chatfromclever_chatimportClientprint(Client.get_response('Hello'))# Asynchronous Clientimportasyncioimportclever_chatfromclever_chatimportAsyncClientresponse=asyncio.get_event_loop().run_until_complete(AsyncClient.get_response("Hello"))print(response)ParameterTypeDescriptionmessagestringRequired. The message you're sending to the botCustomizations (Optional)# Synchronous Clientimportclever_chatfromclever_chatimportClientprint(Client.get_response('Hello',user_id,chatbot_gender,chatbot_name,developer_name,chatbot_age,birthday,birthplace,birthyear,religion,favouriteactor,favouriteactress,favouriteartist,favouriteauthor,favouriteband,favouritebook))# Asynchronous Clientimportasyncioimportclever_chatfromclever_chatimportAsyncClientresponse=asyncio.get_event_loop().run_until_complete(AsyncClient.get_response("Hello",user_id,chatbot_gender,chatbot_name,developer_name,chatbot_age,birthday,birthplace,birthyear,religion,favouriteactor,favouriteactress,favouriteartist,favouriteauthor,favouriteband,favouritebook))print(response)ParameterTypeDescriptionuser_idstringOptional. ID of the message author (for discord only)ParameterTypeDescriptionchatbot_genderstringOptional. gender of the chatbotParameterTypeDescriptionchatbot_namestringOptional. name of the chatbotParameterTypeDescriptiondeveloper_namestringOptional. name of the developer of the chatbotParameterTypeDescriptionchatbot_agestringOptional. age of the chatbotParameterTypeDescriptionbirthdaystringOptional. birthday of the chatbotParameterTypeDescriptionbirthplacestringOptional. birth place of the chatbotParameterTypeDescriptionbirthyearstringOptional. birth year of the chatbotParameterTypeDescriptionreligionstringOptional. religion of the chatbotParameterTypeDescriptionfavouriteactorstringOptional. favourite actor of the chatbotParameterTypeDescriptionfavouriteactressstringOptional. favourite actress of the chatbotParameterTypeDescriptionfavouriteartiststringOptional. favourite artist of the chatbotParameterTypeDescriptionfavouriteauthorstringOptional. favourite author of the chatbotParameterTypeDescriptionfavouritebandstringOptional. favourite band of the chatbotParameterTypeDescriptionfavouritebookstringOptional. favourite book of the chatbotAuthors@Pr0methiumLicenseMITContributingContributions are always welcome!You can DM me on discord i.e. Pr0methium#0337 if you wanna contribute to this project!
Package: cleverchat.py
CleverChat.pyAPI wrapper for clever-chat ChatBot APIExample Sync Usagefromclever_chatimportClientclient=Client()res=client.get_response("Hi")print(res.message)client.close()Example Async Usagefromclever_chatimportAsyncClientimportasyncioclient=AsyncClient()asyncdefmain():response=awaitclient.get_response("Hi")print(response.message)awaitclient.close()asyncio.get_event_loop().run_until_complete(main())LinksDocs:https://hype3808.github.io/CleverChat.py/
Package: cleverchuk-search-engine
CleverChuk Search EngineA simple and extensible search engine backend built while taking CIS-536 at UMICH. This library has a main.py file that you can execute following the HOW-TO below.How To Runget dataset fromhereensure you have python 3.10+ installed.executepip install -r requirements.txtto get the required dependencies.executepython indexing.pyto create the inverted index. This will take ~15 minutes so go do other stuff.nltk might ask you to download some stuff for the stemmer so just follow the instructions.executepython main.pyto interact with the gui and enter queries.
Package: clevercloud
clevercloudCreating meaningful word clouds!SummaryThis package is developed to serve as the one-step solution to create meaningful and visually appealing word clouds. To create meaningful word clouds, data scientists typically takes multiple steps to clean the data, such as removing stopwords, removing punctuation and digits, making the letters lower cases, conducting lemmatization and stemming. This package will help data scientists clean the data easily following the common practices and also allow to a meaningful word cloud with customized stopwords.FunctionsThere are 4 functions in this package:CleverCleanA preprocessor to convert all the letters to lower case and remove punctuations.CleverLemStemA preprocessor to conduct lemmatization and stemming on the text.CleverStopwordsA comprehensive list of English stopwords that allow adding more customized words.CleverWordCloudAs function to generate a meaningful word cloud that allows customized stopwords.Fitting into the Python ecosystemPackages that have similar functions:WordCloud: a word count generator that emphasis more frequently used words from an array of strings and represents them in the form of an image.What we do differently:Our aim is to improve on the pre-processing of strings before creating a wordcloud in order to make it more user specific and efficient.Word cloud only eliminates limited amount of stopwords, but with our package we are giving users the opportunity to add more stopwords that cater to their analysis.We are focused on removing as many redundant and duplicate words by setting strings to lower case, removing punctuation, lemmatizing and stemming the text.Installation$pipinstallclevercloudUsageclevercloudcan be used to preprocess text and create a meaningful word cloud with customized stopwords
as follows:fromclevercloud.CleverCleanimportCleverCleanfromclevercloud.CleverLemStemimportCleverLemStemfromclevercloud.CleverStopwordsimportCleverStopwordsfromclevercloud.CleverWordCloudimportCleverWordCloudimportpandasaspdtext=["is is a feet feet crying beautiful123","maximum feet RUNNING!!","BEAUTIFUL feet beautiful crying"]test_text=pd.Series(text)# input pandas seriesclean_text=CleverClean(test_text)final_text=CleverLemStem(clean_text)new_stopwords=CleverStopwords({"foot","cry"})WordCloud=CleverWordCloud(final_text,new_stopwords,max_w=3)ContributingContributors of the project: Amelia Tang, Arushi Ahuja, Victor Francis, Adrianne LeungInterested 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.Licenseclevercloudwas created by Amelia Tang, Arushi Ahuja, Victor Francis, Adrianne Leung. It is licensed under the terms of the MIT license.Creditsclevercloudwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: cleverdiff
CleverDiffA tool for describing multiple differences in files.Why?If you have to compare files which contain multiple differences that are the same, you will know how tedius it is to step through every single hunk of the standarddiffoutput.CleverDiffwill show you each unique diff hunk once, then give you a summary of where else it has found the difference across multiple files.InstallationCleverDiffis available on PyPI:pip install --user cleverdiffUsageRun thecleverdiff.pyscript, with each pair of files separated with=as arguments:python3 cleverdiff.py test_data/ref1.def=test_data/new1.def test_data/ref2.def=test_data/new2.defOr run the cleverdiff.py script, with --old followed by a list of reference files and --new followed by a list of modified files:python3 cleverdiff.py --old test_data/ref.def test_data/ref2.def \--new test_data/new.def test_data/new2.defCleverDiffwill find the differences between each pair of files, then determine which are identical across all files, and give you a summary:--------------------------------------------
DIFF   0:
insert in ref.def:49 vs new.def:50:
+        edit FOO bar

This difference is replicated elsewhere:
 * with identical diff in different files:
    ref2.def:49 vs new2.def:50


--------------------------------------------
DIFF   1:
change in ref.def:339 vs new.def:340:
-              family sat_172
-                edit WMOID '172'
+              family sat_173
+                edit WMOID '173'

This difference is replicated elsewhere:
 * with identical diff in different files:
    ref2.def:339 vs new2.def:340
 * with same diff but different line numbers:
    ref.def:376 vs new.def:377
    ref.def:413 vs new.def:414
    ref.def:450 vs new.def:451
    ref.def:487 vs new.def:488
    ref2.def:376 vs new2.def:377
    ref2.def:413 vs new2.def:414
    ref2.def:450 vs new2.def:451
    ref2.def:487 vs new2.def:488Version historyv0.3Contributors: @vhswAdd command-line arguments--oldand--new(#7)Add black, isort & pyflakes to CI tests (#4)v0.2Contributors: @andrewcbennett
Introduces ecFlow context (#2). Bug fixes.v0.1.2Contributors: @andrewcbennett (with thanks to @takluyver)
Fixes failing tests. Adds Travis CI config.v0.1Contributors: @andrewcbennett (with thanks to @takluyver)
initial version