Saravanan666/pypi-org huggingface dataset:
Package: meguru-tokenizer
meguru tokenizerinstallation and initializationpipinstallmeguru_tokenizer
sudachipylink-tfullAbstruction of UsagePreprocess Using Each Tokenizer
e.g. sentencepiece preprocess / sudachi preprocessTokenize in your code using its Tokenizerbasissee.official docsTensorflowsee.tutorialTODO: PyTorchRealWorld Exampleimportmeguru_tokenizer.whitespace_tokenizerimportWhitespaceTokenizerimportpprintsentences=["Hello, I don't know how to use it?","Tensorflow is awesome!","it is good framework.",]# define tokenizer and vocaburarytokenizer=WhitespaceTokenizer(lower=True)vocab=Vocab()# build vocaburaryforsentenceinsentences:vocab.add_vocabs(tokenizer.tokenize(sentence))vocab.build_vocab()# set vocaburary into tokenizer to enable encodingtokenizer.vocab=vocab# save vocaburary informationvocab.dump_vocab(Path("vocab.txt"))print("vocabs:")pprint.pprint(vocab.i2w)# tokenizeprint("tokenized sentence")pprint.pprint(tokenizer.tokenize_list(sentences))# [['hello', ',', 'i', 'do', "n't", 'know', 'how', 'to', 'use', 'it', '?'],#  ['tensorflow', 'is', 'awesome', '!'],#  ['it', 'is', 'good', 'framework', '.']]# encodeprint("encoded sentence")pprint.pprint([tokenizer.encode(sentence)forsentenceinsentences])# [[7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 16], [17, 6, 18, 19], [5, 6, 20, 21, 22]]print("decoded sentence")pprint.pprint([tokenizer.decode(tokens)fortokensinencodes])# ["hello , i do n't know how to use it ?",#  'tensorflow is awesome !',#  'it is good framework .']vocab_size=len(vocab)# restore the vocaburary from dumped fileprint("reload from dump file")vocab=Vocab()vocab.load_vocab(Path("vocab.txt"))assertvocab_size==len(vocab)tokenizer=WhitespaceTokenizer(vocab=vocab)pprint.pprint([tokenizer.encode(sentence)forsentenceinsentences])# [[7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 16], [17, 6, 18, 19], [5, 6, 20, 21, 22]]# vocaburary with minimum frequency limitationvocab=Vocab()forsentenceinsentences:vocab.add_vocabs(tokenizer.tokenize(sentence))vocab.build_vocab(min_freq=2)assertvocab_size!=len(vocab)# vocaburary with maximum voaburary sizevocab=Vocab()forsentenceinsentences:vocab.add_vocabs(tokenizer.tokenize(sentence))vocab.build_vocab(vocab_size=10)assert10==len(vocab)
Package: megyr
MegyrMegyr is a Python library for creating scripts to automate MESA and GYRE runs over grids of parameter values. It provides a main function that you can run with a set of configuration settings to determine how to run MESA and GYRE and what values to use for the different models.importmegyrdefmain():megyr.run({"input":{"mesa_configs":["inlist.mustache"],"gyre_config":"gyre.in.mustache"},"output":{"gyre_oscillations_ad_summary_file":"oscillations_ad.csv"},"settings":{"mesa_star_location":"star","gyre_location":"$GYRE_DIR/bin/gyre",},"stages":{"mesa_params":mesa_params,"gyre_params":calc_gyre_params,}})mesa_params={"initial_mass":[1,1.1,1.5],"y":[0.25,0.27,0.32]}defcalc_gyre_params(mesa_params,mesa_data):return{"l":[0,1,2],# Look at all the profiles that are at least 1 Gyr in age"profile":mesa_data[mesa_data["star_age"]>1000000000]["profile"]}if__name__=="__main__":main()
Package: meh-calculator
Under construction ! Not ready for use yet!
Currently experimenting and planning!Developed by Mehedi Mahmud (c) 2023Example of How To Use USN CalculatorCreating A Calculatordefadd_numbers(a,b):returna+bdefsub_numbers(a,b):returna-bdefmul_numbers(a,b):returna*bdefdiv_numbers(a,b):returna/bUSES:frommeh_calculatorimportcalculatorcalculator.add_numbers(7,8)
Package: mehdiMaze
Mehdi Samee Rad’s first Python project guide.This web page is documentation for Mehdi Samee Rad’s first simple project in Python3.In this project you can play Maze game with computer unlimitedly.!For install: run CMD as Administrator mode. Then run ‘pip install mehdiMaze’.Finally run Python and run this commands on it.< import mehdiMaze >
< mehdiMaze.play() >Contact us: +98 914 157 4579Email:SameeRad@aut.ac.irThanks and best regards.
Package: mehditor
Modern but simple text editorMehditor is a modern but simple text editor. I made it because I needed a quick editor (like Pico or Nano) on servers,
but wanted a more modern and friendly itnerface. Meditor is written in Python and uses the excellentTextualfor its user interface. I wrote it in a weekend.FeaturesPut that VGA graphics card to use with astonishingcolor(light and dark modes!)Mouse supportModern-ish user interface with command palette and menusUndo/redo support (now updated with Textual's new undo/redo)Sensible keyboard shortcuts that work well over ssh, tmux, etcSyntax highlighting for Python, SQL, and moreEasy installation via pip -- no root neededDrawbacks (what's missing)Made in a weekend, probably not ideal for heavy liftingFairly minimal without features like multiple files or support for a lot of languagesWritten in Python, so probably not the most lightweight choiceInstallationpip install -U mehditorUsagemeh <filename>
Package: mehlbot
MehlBotMehlBot is a Discord bot that responds to commands by executing (callback) functions.It's built around thediscord.Clientclass.
This allows an easy integration to existing bots and creation of new bots.Documentation:docsSeeexamples/hellow_bot.pyfor full source code.# imports ...classHelloBot(discord.Client):# discord.Client classdef__init__(self,intents:Intents,**options)->None:super().__init__(intents=intents,**options)asyncdefon_ready(self)->None:# Gets called when bot is ready/startedprint("Bot started.")asyncdefon_message(self,message:Message):ifmessage.author==self.user:# skip if message's author is the botreturn# necessary callback command# bot_commands are in mehlbot.commandcommand_found=awaitcommand_callback.process_command(self,bot_commands,message)# prefix with command if message is commandlog_msg=""ifnotcommand_foundelse"command: "log_msg+=f"{message.author.nick}({message.author.name}): '{message.content}'"print(log_msg)defmain():hello_bot=HelloBot(discord.Intents.all())# discord intentswithPath("token.txt").open()asfile:# load token form file (.gitignore) or use envtoken=file.read()hello_bot.run(token)And this shows how to add commandsfrommehlbot.commandimportadd_commandasyncdef_add(message:discord.Message,client:discord.Client,args:List):url=args[0]...asyncdef_export_playlist(message:discord.Message,client:discord.Client,args:List):playlist=args[0]...add_command("add",_add,allowed_num_args=[["url"]],# requires exactly 1 argumentdescription="Adds the given YouTube url to the current playlist.")add_command("export playlist",_export_playlist,allowed_num_args=[[],["playlist_name"]],# either 0 or 1 argdescription="Exports urls of current playlist or of given playlist.")
Package: meh-logging
meh-logging-pythonBefore you startTo use the logging module in Python, you will need to have a Manifest file calledpackage.jsonin the project's root folder. The file should follow the file structure guidelines provided athttps://docs.npmjs.com/cli/v9/configuring-npm/package-json.Prerequisite softwareThe software listed below is required beforehand.EnumValuepython>= 3.10pip>= 22.2InstallationTo install the module from your terminal, simply execute the following command:$pipinstallmeh_loggingUsageThe logging module searches for an OS environment variable calledPYTHON_ENVorENV. If the variable is set to "production", the module will use the log levelINFO; otherwise, it will useDEBUG.frommeh_loggingimportlogger,Levels# Log some infologger.info("hello world")logger.debug("hello world")logger.error("hello world")# Log exceptiontry:1/0exceptExceptionase:logger.info(e)# Change log-level dynamicallylogger.set_level(Levels().CRITICAL.value)LevelsThese are the log levels utilized by the module.EnumValueNOT_SET0DEBUG10INFO20WARNING / WARN30ERROR40CRITICAL50Author(s)Jim de Ronde
Package: mehrp
mehrpThemehrppackage allows you to easily play the"mehrp" heard from Boris's terminalin the classic action filmGolden Eye.Times you might wish for your terminal to "merhp" at you include:When a long process finishes.When an error occurs.When important input is required.To dramatically notify you that you're "in".Try the Demo> pip install mehrp
> mehrpExample UsagePlay a number of merhps while blocking:mehrp(3)
# merhp sounds 3 timesPlay mehrps during aninput()builtin call:value = mehrp_until_input()
# merhps until user input

value = mehrp_until_input('>')
# same as above, but with a prompt
Package: mehrshad
mehrshad-pypiA Python 3 module that contains all of my collections to let you code easier!InstallationOpen terminal/cmd and enter:pipinstallmehrshadCompatibilityWindows / macOS / LinuxPython 3.x (might get errors with Python 2.x)Used Packagesopenpyxlpathlibpy-notifierwin10toasttqdmAll of these packages will be automatically installed after the first run! (if you don't have them already)NOTECurrently inBetaversion, so errors possible.LinksPyPI:mehrshad-pypiAthur:Mehrshad DadashzadehGitHubLinkedInMIT LicenseCopyright (c) 2021 Mehrshad DadashzadehPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: mei2volpiano
MEI2VolpianoMEI2Volpiano is a Python library developed for the purpose of converting Neume and CWMN MEI files to Volpiano strings.LicenceMEI2Volpiano is released under the MIT license.Installationpip install mei2volpianoDevelopment SetupMEI2Volpiano requires at least Python 3.6.Clone projecthttps://github.com/DDMAL/MEI2Volpiano.gitEnter the project checkoutExecutepip install .orpoetry install(this will install development dependencies)UsageAs long as you're in the python environment, you can executemei2volpianoor the shorthandmei2volwhile in your python virtual environmentFlagsFlagUse-Wor-NUsed to specify the type of MEI to converted (Neume or CWN)txtUsed to specify whether the user is inputtng MEI files or a text file containing MEI paths--exportSignifies that the converted Volpiano string(s) should be outputted to '.txt' filesStandard Usage (Neume notation)To output the MEI file's volpiano string to the terminal, runmei2vol -N mei filename1.meiMultiple files can be passed in at oncemei2vol -N mei filename1.mei filename2.meiWesternTo convert MEI files written in Common Western Music Notation (CWMN), runmei2vol -W mei filename1.meiAll of the CWMN files processed by this library (so far) come fromthis collection. Thus, we followed the conventions of those files. Namely:Every neume is encoded as a quarter noteStemless notesSyllables are preceded by their notesAll notes must have syllables after themIf there are notes that are not followed by a syllable, the script will display a message containing these notes. They will not be recorded in the volpianoThis can only happen at the end of an MEI fileThe resulting volpiano string will have multiple notes seperated by two hyphens. This seperation is dictated by the syllables, representented by:<syl>. The notes themselves are located with the<note>tag and represented by thepnameattribute.Mutiple MEI File RunsTo make it easier to pass in multiple MEI files, the-tflag can be specified astxt:mei2vol -W txt filename1.txtormei2vol -N txt filename1.txt filename2.txt ...where the ".txt" file being passed in must hold the name/relative path of the required MEI files on distinct lines.Note: If passing inputs through this method, the formats of the MEI files within the text file must be of the same type(either neume for-Nor western for-W)ExportingThe--exporttag can be used on any valid input to the program. Simply tack it on to the end of your command like somei2vol -N mei filename1.mei --exportand the program will output each mei file's volpiano to a similarly named file as its input.TestsTo run the current test suite, executepytest
Package: meican
MeiCan 美餐同时支持 Python 3.6+ 与命令行调用的美餐点餐非官方库山上的朋友！
树上的朋友！
有选择困难症的朋友！
每周都忘记点饭的朋友！
每天都想点同一个套餐的朋友！:ghost: 懒人们！
快快解放双手来点美餐吧~背景最开始是因为我司用的美餐服务，
所以就写了个命令行脚本内部点餐用。后来发现其实大家会有自己动手实现点单逻辑的需求，
就做成了这个开源库啦。安装通过pip:pipinstallmeican代码调用frommeicanimportMeiCan,MeiCanLoginFail,NoOrderAvailabletry:meican=MeiCan('username@domain','hunter2')# logindishes=meican.list_dishes()ifany(dishfordishindishesifdish.name=='香酥鸡腿'):print('今天有香酥鸡腿 :happy:')else:print('今天没有香酥鸡腿 :sad:')exceptNoOrderAvailable:print('今天没有开放点餐')exceptMeiCanLoginFail:print('用户名或者密码不正确')命令行调用meican# 查询下次点啥菜meican-o香酥# 点包含 香酥 关键字的菜，比如香酥鸡腿贡献不论是任何疑问、想要的功能还是想吃的套餐都欢迎直接提 issue假如你们公司是用熙香点餐的，隔壁也有熙香的库噢~:wink: 欢迎各种 PR协议宽松的MIT协议：✔ 支持各种改写✔ 支持你把代码作者都改成自己✖ 不支持每天中午免费吃西贝莜面村✖ 也不支持点大羊腿、掌中宝
Package: meide
What is meidemeide is a ui interface creation library. You can use it to create wxPython
based user interface. It can deal with several sizer class, for example:
BoxSizer, GridBagSizer, StaticBoxSizer, and it also provide an easy way to
create widgets, like: StaticText, TextCtrl, CheckBox, etc. You know create ui
interface manually is a hard work, and that’s why meide comes out.
What is the goals of meideSupports easily sizer creationSupports easily widgets creationSupports easily frame creation, like: Dialog, Panel, etcSupports SetValue and GetValue to value-fieldSupports event bindingSupports validateMakes above as easy as I canmeide is still in heavy developpint, so please keep touch with it, maybe you can
find something very useful or helpful.How to use itThe step is easy:Creatint a layoutAdd widgets or sub-layoutBinding eventinvoke the create method
Package: meidengtest
meidengtestPython Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://meidengtest.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-01-14)First release on PyPI.
Package: meieraha2
InstallationDepending on how you obtain the package, you may install it in different ways. If the package was obtained as a source distribution,
you should install it usingpip:$ pip install meieraha2-<version>.zipIf you checked out a development repository, you may install the package by running:$ python setup.py installIf you are planning on developing the package, a useful alternative to installation is:$ python setup.py developor, if you do not have write access to your Python installation and are not using a virtualenv:$ python setup.py develop --userUsageThe package contains aFlask-based web application. To launch the application you need to do the following:Run:$ meieraha2-manage sampleconfigFollow the instructions output by the command.To create a packaged distribution you need to run the following:$ meieraha2-manage assets build
$ python setup.py sdistDevelopmentIn order to run the application in development mode you need to have a full repository checked out. You also
should have thecompasstool installed and accessible in your path. The server can then be run in development mode as follows:$ export CONFIG=meieraha2.config.DevConfig
$ meieraha2-manage createdb
$ meieraha2-manage loaddata
$ meieraha2-manage runserverIf you edit CSS or Javascript files, you will need to rebuild the assets bundle via$ meieraha2-manage assets buildDeploymentThere is a starter Fabric configuration filefabfile.pywhich may help automate deployment. It needs tayloring before used, though. Sample deployment configuration is indeploy/aws.CopyrightThe code was developed by Konstantin Tretyakov and Tanel Kärp with the help from many other people on the Meieraha team (seehttp://meieraha.ee)The code is licensed as MIT, feel free to contribute.The repository includes full distributions of some external libraries (to simplify deployment). Those are subject to their own licences. All are open source, though.
Package: meiga
meiga 🧙Documentation:https://alice-biometrics.github.io/meiga/Source Code:https://github.com/alice-biometrics/meigaWhat is meiga 🧙?meiga 🧙is a Python µframework that provides a simple, fully typed, monad-based result type ➡️Result[Value, Error].How could meiga 🧙 help me?meiga 🧙provides a simple and clear way of handling errors in Python without usingExceptions. This package improves the Dev Experience as it allows to know all possible typed responses. With Meiga 🧙 your IDE will help you much more.Installation 💻pip install meigaContributeWe'd love you to contribute tomeiga🥳🥳🥳🥳🥳🥳️️!For more information, check ourdocumentationContact 📬support@alicebiometrics.com
Package: meile
Meile (may•lah)A Sentinel Network dVPN TUI client.DependenciesYou will need this in order for Meile to operate. Future versions of meile will ship with sentinel-cli. For now, please download and configure your wallet with the sentinel-cli app.Install (pip)Open up a terminal and run:pipinstallmeileTo start Meile simply run:meileIntall (source)gitclonehttps://github.com/MathNodes/meileBuild & Installcdmeile&&python3setup.pyinstallInstall
Run:meileIt will prompt you or your Wallet Name and Wallet Address.
Meile will store this information in the$HOME/.meile/config.inifor future processing.NotesPlease address all issues in theissuessection of this repo. We will work
to fix any issues or add enhancments people may suggest.TipjarYou tip a waiter/waitress for their service, why not tip a programmer for their code?Sentinel (dvpn)sent1hfkgxzrkhxdxdwjy8d74jhc4dcw5e9zm7vfzh4Monero (xmr)8A8TesuUctMQzq1oNM5VWQeZxu5SPDQyf87yMUdvPfSxjXQKvZSY3F7Dm9zGD3uKXbQ6ZMXGRydyQAGGQvBSfeVZBtJxh8A
Package: meilisearch-cli
MeiliSearch CLIA CLI for working with MeiliSearchInstallationInstallation withpipxis recommended.pipxinstallmeilisearch-cliAlternatively MeiliSearch CLI can be installed with pip.pipinstallmeilisearch-cliUsageAll commands require both a url for MeiliSearch and a master key. These values can either be passed
using the flags--urland--master-key, or can be read from the environment variablesMEILI_HTTP_ADDRandMEILI_MASTER_KEY. The one exception is thehealthcomman only requires the
url, and does not take a master key.As an example, if theMEILI_HTTP_ADDRandMEILI_MASTER_KEYvairables are not set you can
retrieve the version with:meilisearch-cliget-version--urlhttp://localhost:7700--master-keymasterKeyor if the environment variables are set you can omit--urland--master-key:meilisearch-cliget-versionTo see a list of available commands run:meilisearch-cli--helpTo get information on individual commands add the--helpflag after the command name. For example
to get information about theadd-documentscommand run:meilisearch-cliadd-documents--helpExampleGet VersionGet DocumentDocumentationThe MeiliSearch documentation sections can be displayed with clickable links to each section. The
links are built based on the current state of the documentation and will automatically stay
up-to-date with the latest documentation. To follow the links command + click on a Mac or
control + click on Linux and Windows. Note that some terminals do not support clickable links.
In this case the documentation tree will be displayed but not be clickable.Compatibility with MeiliSearchThis package only guarantees compatibility withversion v0.27 of MeiliSearch.ContributingContributions to this project are welcome. If you are interesting in contributing please see ourcontributing guide
Package: meilisearchdsl
MeiliSearch DSLMeiliSearch DSL is a powerful and easy-to-use Python package that provides a domain-specific language (DSL) for queryingMeiliSearch, an open-source search engine. With this package, you can effortlessly build complex search queries using a Django-like Q object syntax. It also includes a convenient wrapper for MeiliSearch indexes and client, making it even simpler to interact with your MeiliSearch instance. Whether you're a beginner or an experienced developer, MeiliSearch DSL can streamline your search experience and help you create efficient, readable, and maintainable search queries.FeaturesDjango-like Q object syntax for building complex search queriesConvenient wrapper for MeiliSearch indexes and clientsEasy integration with MeiliSearch instancesStreamlined search interactionsImproved code readability and maintainabilityInstallationInstall the package using pip:pip install meilisearch-dslUsageTo use MeiliSearch DSL, first import the necessary components:frommeilisearch_dslimportQ,MeiliClient,MeiliIndex# Then, create a MeiliSearch client and index:client=MeiliClient(host="http://127.0.0.1:7700",master_key="your_master_key")index=client.get_index("your_index_name")# orindex=MeiliIndex("your_index_name",client)# Build a search filter using the Q object syntax:filter=(Q(category__in=["programming","software"]))&~Q(price__gt=50)# Search the index using the filter:query="Python"results=index.search(query,filter)print(results)DocumentationFor more detailed information and examples, please refer to theofficial documentation.ContributingWe welcome contributions from the community! Please read ourcontribution guidelinesbefore submitting a pull request.LicenseMeiliSearch DSL is licensed under theMIT License.