Saravanan666/pypi-org huggingface dataset:
Package: menutools
MenuToolsA powerful tool to create customizable command prompt menu as simple as possible.InstallationHow to use itCustomizationSome moreInstallation:just write this code on the python command line:pipinstallmenutoolsHow to use it:In the simplest way, all things to do is create a menu object, add a route, then execute the menu.The route should add in form of a tuple. The first member of this tuple should be unique string that represents the name of the route, the second member is a list of the tuple that defines the menu and their functionality. For functionality, there is some pre-defined option that you can choose in addition to custom functionality:next: the next route will be taken.back: the previous one will be select.exit: will closes the program.string: the name of the route can be passed as a string if you want to jump over routes and go to the special one.functions: the menu will accept the name of your preferred function without parentheses. So if the function does not get any arguments, all should do is pass its name. But if the function needs some argument it's required to make and partial object and pass this new object to the menu.frommenutoolsimportMenufromfunctoolsimportpartial# Simple functiondefsimple_function():pass# Argument functiondefargument_function(subject:str):print(subject)# we want switch to second route after finishing the jobreturn'Second'custom=partial(argument_function,'argument')# Create menu-objectmenu=Menu(header='Example')# Add sub-menu(route)menu.add(('First',[('About',custom),('More',menu.next)]))# Add sub-menu(route)menu.add(('Second',[('One',menu.back),('Two','First'),('Exit',menu.exit)]))# Runmenu.execute()One another option that can benefit from it is switching between routes after executing a function. For example suppose we are in route First and run a custom function. If at the end we return a string that matches one defined route, then the menu will appear from that menu instead of the First route.Customization:For colorization, import Color class from project and choose your favorite colors in the form of integer number between 0~255. In this case you can customize the color of header, menu, interface, and prompt. Note that Colorizing should be done before creating the menu-object. The following is an example:frommenutoolsimportColorColor.BORDER=100Color.HEADER=144Color.MENU=5Color.PROMPT=130Color.INTERFACE=245In addition to color, it is possible to do some interface changes when we create a new menu object. At this level, we can customize the border, align of header text, choose the splitter, and etc:frommenutoolsimportMenumenu=Menu(header='Example',border='=',border_length=60,align='center',splitter=')',prompt='=>')More:If need to know more about using this tools can check the Example directory.
Package: menza-cli
Menza CLIMenza CLI is a command line tool written in Python (what a mistake)
allowing not only CTU students to view CTU Canteens menus.
Today menu, week menu, canteens info and dish rating using own rating BE
interconnected with my Android app is supported.Because the Gui of the project is written using the ncurses library,non-unix systems are not supported.Make sure your terminal supports emojis.InstallPython 3.10+ required!Check by runningpython3 --version.You can install the app frompypi.# install the packagepython3-mpipinstallmenza_cli# If you don't have python in your PATH# Bashprintf'\nexport PATH="$PATH:$HOME/.local/bin"\n\n'>>~/.bashrcsource~/.bashrc# zshprintf'\nexport PATH="$PATH:$HOME/.local/bin"\n\n'>>~/.zshrcsource~/.zshrc# Run the appmenzaSetup locallyTo set the project you will need Python 3.10 or greater.
You can just run the./scripts/setup.shscript or create a virtual environment yourself
from therequirements.txtfile included.RunningTo run the app, source the created env usingsource .venv/bin/activateand run./menza.sh --helpTo use mocked data (eg. it is weekend and no dish is served), pass the--mockedoption.GuiTo run the app in Gui mode, omit any command while executing from CLI. You can navigate like
a chad using basic Vim binding or like a VŠE student using arrows.Controlsright/left- switch between menu and main viewup/down- move in menus/listsEnter/o- in menu load selected canteen menu, in the menu view open dish photo in browser if availablew- switch to week view and backr- rate selected dishq/Esc- quitTo be warned against allergens view the config section below.If the images are being opend twice in a brower it is not my fault, Python the stupid one here.CliTo just get basic overview of one specific system, you can use a command in the CLI -list,dish,weekorinfo.The first 3 output data in Tab separated format, so they can be used by CLI filters.Last 3 expect a cafeteria id (run thelistcommand) or name, at least partially - the first system that matches gets used.So to view a menu in the Strahov cafeteria, you can run any of these:./menza.py dish 1./menza.py dish Strahov./menza.py dish strConfig fileYou can config some basic app behavior usingmenza.conffile in the~/.configdirectory. The file is not required to exist.
File format is as follow:# Required
[DEFAULT]

# if something changes in the future and project is no longer maintained
agata_url_base=
agata_url_api=
agata_api_key=
lasta_url=
lasta_api_key=

# Dishes with the following allergens will be grayed out
allergens=1,3LicenseMenza CLI is licensed under theGNU GPL v3.0license.
Package: menzalib
MenzalibDescrizione rapida della libreriaQuesta libreria e' stata creata da studenti del corso di Laboratorio 3 dell'universita' di Pisa per velocizzare la stesura delle relazioni, contiene funzioni che potrebbero risultare utili pure a corsi come Laboratorio 1 e 2Si possono trovare funzioni che calcolano l'errore associato alle misure con multimetro digitale e oscilloscopio,funzioni per errori di misura.Funzioni che propagano l'errore delle operazioni matematiche piu' comuni come prodotto, logaritmo ecc...funzioni propagazione errori.Una funzione che esegue ilcurve_fitconsiderando anche gli errori sulla x e un'altra funzione che calcola chi2 e p_valuefunzioni di fit.Infine funzioni che permettono stampare una tabella in LaTeX senza dover riscrivere tutti i dati tra $ ed &Funzioni LaTeX.Per imparare come funziona la libreria andare sullaWikiInstallazionescrivere su terminalepip install menzalib
Package: meobook
MeoBookA module to search and download a book from the internetDescriptionThis is a package for searching a book and downloading it from the internetInstallationpipinstallmeobookUsagefrommeoBookimportMeoBookmeobook=MeoBook()#the search method will return maximum of 5 books by default in a list of Book objectlist_of_book=meobook.search_book("git hub cheat sheet")#Download one bookbook1=list_of_book[0].download("/your/destination/path")#DocsMethods in MeoBook objectself.search_book(keyword,limit=5)limitparameter limits the return results fromself.search_bookfunctionMethods in Book objectdownload(directory)method will download the book in the directory which is provided with the title of the book as a file nameself.download('destination/directory/')Book object attributesself.title: Title of the books. (str)self.description: A short description of the book.(str)self.link: link of the book (str).self.size: size of the book in bytes (int).self.size_mb: Size of the book in MegaByte. (float).self.page_numer: Page number. (may be none because the information is missing) (int)CreditsTina Hubert Ratolojanahary (rtinahubert@gmail.com,https://tina-rt.netlify.app)Made in Madagascar
Package: meocloud
MEOCLOUDUNOFFICIAL MEOCLOUD PACKAGEInstallUsepipto install the latest stable version ofmeocloud:$ pip install meocloudCreate a credentialBefore, create a new app inhttps://meocloud.pt/my_apps, then:meocloud mycredentialUse modefrommeocloud.servicesimportMeoCloudconsumer_key='***'consumer_secret='***'oauth_token='***'oauth_token_secret='***'meo=MeoCloud(consumer_key=consumer_key,consumer_secret=consumer_secret,oauth_token=oauth_token,oauth_token_secret=oauth_token_secret)print(meo.get_list('/'))Use withrequestspackagebefore you need runpip install requestsimportrequestsfrommeocloud.servicesimportMeoCloudmeo=MeoCloud(consumer_key=consumer_key,consumer_secret=consumer_secret,oauth_token=oauth_token,oauth_token_secret=oauth_token_secret)auth=meo.auth_in_request()url=f'https://api.meocloud.pt/1/List/meocloud('r=requests.get(url=url,auth=auth)r.contentIf you have questions, send them toigordantas91@icloud.com
Package: meoinfo
MeoinfoPyPI packageInstallpip install meoinfoHow to usefrommeoinfo.coreimportMeoinfoimportpandasaspdfrompathlibimportPathp=Path('..')df_train=pd.read_csv(p/'datasets/churn_train.csv')df_test=pd.read_csv(p/'datasets/churn_test.csv')df_oot=pd.read_csv(p/'datasets/churn_oot.csv')experiment=Meoinfo(train_data=df_train,test_data=df_test,oot_data=df_oot,baseline_y_true_name='Churn',baseline_y_prob_name='y_prob',features=df_train.drop('Churn',axis=1).columns.tolist())experiment.train_data.head()<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}</style>genderSeniorCitizenPartnerDependentstenurePhoneServiceMultipleLinesInternetServiceOnlineSecurityOnlineBackupDeviceProtectionTechSupportStreamingTVStreamingMoviesContractPaperlessBillingPaymentMethodMonthlyChargesTotalChargesChurn0Male1YesNo72YesYesDSLNoNoYesNoYesYesTwo yearYesCredit card (automatic)73.455329No1Male0NoNo9YesNoNoNo internet serviceNo internet serviceNo internet serviceNo internet serviceNo internet serviceNo internet serviceMonth-to-monthNoMailed check20.25178.5Yes2Male0NoNo69YesYesDSLYesYesYesYesYesYesTwo yearNoMailed check90.656322.1No3Male0NoNo2YesNoDSLNoYesNoNoNoNoMonth-to-monthYesMailed check50.3092.75No4Male0NoNo7YesNoDSLNoNoNoNoYesNoMonth-to-monthNoMailed check54.85370.4Noexperiment.algorithm'catboost'
Package: meow
AboutMeow is an editor-agnostic Markdown, reStructuredText and Textile live previewer.
Once you save your file, the rendered HTML will automatically get reloaded
in your favourite browser.The Original Version ismoo. Meow fork from moo (commit history), And add function of
reStructuredText live previewer.InstallationpipinstallmeowRequirementsmeow requiresmistune(optional)python-textile(optional)bottle.pypygmentsdocutilsCherryPydocoptUsageOpens preview in browser with server listening on 3000:meow --port 3000 your-doc.markdownExport to HTML only:meow -o exported.html your-doc.markdownTo specify file type:meow --filetype rst READMERESTful APIActionHTTP MethodRequest URLResponse BodyGet previewGEThttp://localhost:<port><Preview content>Get updated contentPOSThttp://localhost:<port>/update<Rendered body>Close serverDELETEhttp://localhost:<port>Seesource filesfor more details.License(The MIT License)LinksGitHubPyPI
Package: meow-base
# meow_base
Repository for base MEOW definitions, as well as a some example implementations.## Core definitonsThe core MEOW defintions are found incore/meow.pyThese are parents classes for implementations to use, with certain attributes and functions enabling a certain amount of interchangeability within those classes.The most import definitions are the BasePattern, and BaseRecipe, which define the conditions under which processing will take place, and the actuall processing to take place.## MEOW RunnerThe way to run a MEOW system is to create and MeowRunner instance, found incore/runner.py. This will take 1 or more Monitors, 1 or more Handlers, and 1 or more Conductors. In turn, these will listen for events, respond to events, and execute any analysis identified. Examples of how this can be run can be found intests/testRunner.py## Testing
Pytest unittests are provided within the ‘tests directory, as well as a scripttest_all.shfor calling all test scripts from a single command. This can be run as:test_all.sh -sor:SKIP_LONG=1 pytest . -W ignore::DeprecationWarningThis will skip the more time consuming tests if you just need quick feedback. Without the -s argument then all tests will be run. Individual test scripts can be started using:pytest test_runner.py::MeowTests -W ignore::DeprecationWarningwith individual tests runnable with:pytest test_runner.py::MeowTests::testMeowRunnerLinkedPythonExecution -W ignore::DeprecationWarningto run locally, update your ‘~/.bashrc’ file to inclue:# Manually added to get local testing of Python files working easier
export PYTHONPATH=/home/patch/Documents/Research/Pythonto generate a coverage report run:SKIP_LONG=1 pytest –cov –cov-report=html:../coverage . -W ignore::DeprecationWarning## Benchmarking
Benchmarks have been written for this library, but are included in the seperatehttps://github.com/PatchOfScotland/meow_benchmarkspackage
Package: meowcorp
MeowcorpMeowcorp is a Python library that serves as an add-on to the aiogram library. It provides additional functionalities to help you create big and complex Telegram bots.InstallationTo install Meowcorp, simply run:pip install meowcorpGetting StartedTo start a new project with Meowcorp, run:meowcorp-admin startprojectThis will create a new project with the necessary files and folders.HandlersIn thebranchfolder, you need to create handlers for messages. These handlers will be responsible for receiving and processing messages from users.Callback HandlersIn thecallbackfolder, you need to create callback handlers. These handlers will be responsible for handling callbacks from inline keyboards.Keyboard UtilitiesMeowcorp provides two utilities for creating keyboards:create_keyboardandcreate_inline_keyboard. These functions make it easy to create custom keyboards for your bot.ContributingIf you would like to contribute to Meowcorp, please fork the repository and submit a pull request. We welcome all contributions!LicenseMeowcorp is released under the MIT License. SeeLICENSEfor more information.
Package: meowiz
MeowizMeowiz is a Jinja-based compiler that scans the input directory and outputs static HTML files that can be served on the go.FeaturesBuilt-in CLI: Meowiz comes with a command-line interface that allows you to easily compile your Jinja templates into static HTML files.Full Async Build: Meowiz supports asynchronous compilation, allowing for faster processing of large template directories.Custom Configuration: Meowiz provides a flexible configuration system that allows you to customize various aspects of the compilation process.InstallationTo install Meowiz, you can use pip:
Package: meowlogtool
A tool to help you create logger which print to file, console or useLogglyimportsysfrommeowlogtoolimportlog_utilloggly_api="YOUR-API-OF-LOGGLY.COM"if__name__=="__main__":# log to console and filelogger1=log_util.create_logger("temp_file",print_console=True)logger1.info("LOG_FILE")# log using logger1# log to console, file and loggly.comlogger2=log_util.create_logger("loggly",print_console=True,use_loggly=True,loggly_api_key=loggly_api)logger2.info("Log from python")# attach log to stdout (print function)s1=log_util.StreamToLogger(logger1)sys.stdout=s1# anything print to console will be logprint('I am Pusheen the cat')a=1234print('I eat 3 shortcakes already. It is too short')print('cost = ',a)html_log=log_util.up_gist('doggy.log','test_doggy','test_doggy')print('link on gist%s'%(html_log))
Package: meowsay
meowsayCowsay, but better.Installationpip install meowsayUsage> meowsay meow______< meow >------\      |\---/|\     | ,_, |\_`_/-..----.___/ `   ' ,\"\"+ \  sk(__...'   __\    |`.___.';(_,...'(_,.`__)/'.....+> fortune | meowsay_____________________________________/ "I looked all over the place for an \| explanation. Elves and Gremlins."   ||                                     |\ - Mike "Heisen who?" Galbraith      /-------------------------------------\      |\---/|\     | ,_, |\_`_/-..----.___/ `   ' ,\"\"+ \  sk(__...'   __\    |`.___.';(_,...'(_,.`__)/'.....+
Package: meow-sim
meowModeling ofEigenmodes andOverlaps inWaveguidesA simple electromagneticEigenMode Expansion (EME)tool for Python.InstallationMinimal installationpipinstallmeow-sim[min]Full installationpipinstallmeow-sim[full]Selecting featuresYou can select which features to enable during installation as follows:pipinstallmeow-sim[feature1,feature2,...]Available featuresmin: minimal installation (equivalent to not specifying any features)vis: explicitly installs matplotlib and trimesh.jax: use JAX in stead of numpy to calculate the S-matricesklu: useklujaxto speed up S-matric calculations (impliesjax). Note: you need
the SuiteSparse headers on your computer for this to work.gds: enable GDS creation with GDSFactory (see GDS Taper example).ipy: install useful jupyter/ipython packages.dev: install dev dependenciesfull: enable all the above features.DocumentationExamplesAPI DocsContributors@flaport: creator of MEOW@jan-david-black: fixing mode overlaps and moreCreditsDALL-E:“a drawing of a kitten with laser eyes walking towards me”(logo)Tidy3D: meow uses the free FDE mode solver from Tidy3D.SAX: meow uses SAX as its circuit simulator when cascading the overlap S-matrices.klujax: Although technically an optional backend for SAX, klujax will significantly speed up the final S-matrix calculation of your structures.EMEPy: an excellent alternative python-based EME solver with optional neural network mode solver.Rigorous and efficient modeling of wavelength scale photonic components: PhD thesis of Peter Bienstman.
Package: meowy
meowy🐱 An unofficialThe Cat APIwrapper for Python📦 Packages🐍 PyPIpipinstallmeowy🔎 Examplesexamples/basic.pyimportmeowyclient=meowy.Client()# Let's search for 10 images at oncefor_inrange(10):print(client.images.search())✨ Links🐍PyPi🏠Homepage🐱Repository
Package: mep
Minimum Energy Path ToolsIntroductionThis package contains various methods for finding the minimal energy path in atom simulations.Currently the following methods are implemented:Nudged elastic band method [1]Climbing image nudged elastic band method [2]How to useRegular NEBfrommep.optimizeimportScipyOptimizerfrommep.pathimportPathfrommep.nebimportNEBfrommep.modelsimportLEPSleps=LEPS()# Test modelop=ScipyOptimizer(leps)# local optimizer for finding local minimax0=op.minimize([1,4],bounds=[[0,4],[-2,4]]).x# minima onex1=op.minimize([3,1],bounds=[[0,4],[-2,4]]).x# minima twopath=Path.from_linear_end_points(x0,x1,101,1)# set 101 images, and k=1neb=NEB(leps,path)# initialize NEBhistory=neb.run(verbose=True)# runThe results will be like the followingSimilar results can be obtained using the LEPS model with harmonicsLEPSHarmCI-NEBEvery thing is the same except thatneb=NEB(leps,path,climbing=True,n_climbs=1)# set one image for climbinghistory=neb.run(verbose=True,n_steps=10,n_climb_steps=100)# run normal NEB for 10 steps and then switch to CINEBFor comparison, normal NEB usingLEPSHarmpotential with 5 images gives the followingWith CI-NEBWe can see that using only 5 images, the CINEB getsEa = 3.63 eV, the same as the one we ran with 101 images!
With only normal NEB, however, thisEavalue is substantially smaller (3.25 eV).References[1] Henkelman, G., & Jónsson, H. (2000). Improved tangent estimate in the nudged elastic band method for finding minimum energy paths and saddle points. The Journal of chemical physics, 113(22), 9978-9985.[2] Henkelman, G., Uberuaga, B. P., & Jónsson, H. (2000). A climbing image nudged elastic band method for finding saddle points and minimum energy paths. The Journal of chemical physics, 113(22), 9901-9904.
Package: mep-api
MEP APIMEP API is a very simple python package to scrape data on members of the European Parliament and output it in a neat JSON.InstallationInstall this repository with pip:pip install mep_apiUsageScraping one MEP's informationTo create an MEP object, import the package pass the URL of an MEP's EP home page. For instance:importmep_apimep1=mep_api.mep("https://www.europarl.europa.eu/meps/en/113892/ERIC_ANDRIEU/home")Then you can add the information you want to the object:mep1.get_personal_data()mep1.get_committees()mep1.get_assistants()or you can scrape everything at once:mep1.scrape_all()You can then either get a JSON string containing all of the MEP's information and write to a file by running:mep1.to_json()#returns JSON stringmep1.to_json("file.json")#writes JSON file to specified pathScraping multiple MEPs' informationIt is possible to scrape data for multiple MEPs with a single line of code withbatch_scrape()as follows:url_list=["https://www.europarl.europa.eu/meps/en/113892/ERIC_ANDRIEU/home","https://www.europarl.europa.eu/meps/en/124831/ISABELLA_ADINOLFI/home","https://www.europarl.europa.eu/meps/en/28161/MARGRETE_AUKEN/home"]mep_api.batch_scrape(url_list)#return JSON stringmep_api.batch_scrape(url_list,outfile="file.json")#writes JSON file to specified pathTheget_mep_urls()function returns a list of all MEP home page URLs and makes collecting data on all MEPs at once easy. It is also possible to scrape available data for so-called "outgoing" MEPs, MEPs who have left the parliament during the current parliamentary term. To do so, it is sufficient to use thebatch_scrape()function with the argumentadd_outgoing = Truewhich isFalseby default. It is possible not to pass aurl_listto the function to collect data only on outgoing MEPs. It is however not possible to collect data on single outgoing MEPs as of now.all_mep_urls=mep_api.get_mep_urls()#creates a list of all MEP URLSmep_api.batch_scrape(all_mep_urls)#collects data on all current MEPsmep_api.batch_scrape(all_mep_urls,add_outgoing=True)#collects data on all current MEPs and outgoing MEPsmep_api.batch_scrape(add_outgoing=True)#collects data on outgoing MEPs
Package: mephisto
Mephisto makes crowdsourcing easier.We provide a platform for launching, monitoring, and reviewing your crowdsourcing tasks. Tasks made on Mephisto can easily be open sourced as part of other projects. Like thechess-playing automatonwe've adopted the name from, Mephisto hides the complexity of projects that need human interaction or input.You can find complete details about the project on ourdocs website.QuickstartGet started in 10 minutesChangelogWant to help?Check out ourguidelines for contributingand then take a look at some of our tagged issues:good first issue,help wanted.For library authors, you may also find thehow to contributedocumentation helpful.LicenseMephisto is MIT licensed. See the LICENSE file for details.
Package: meqtrees-frontend
# MeqTrees frontend
This repository serves as the new home
for the MeqTrees system GUI, which previously lived in Meqtrees Timba (the C++ compute graph backend and pipeliner backbone of the system).To use the frontend GUI you currently need Qt4 and Qwt4, along with the various Python 3.6 bindings. Currently these are only available for Ubuntu 18.04. We are working on providing 20.04 Qt5 support. Full installation instructions are available on the [MeqTrees Wiki](https://github.com/ska-sa/meqtrees/wiki).