Saravanan666/pypi-org huggingface dataset:
Package: meilisearch-fastapi
Meilisearch FastAPIMeilisearch FastAPI providesFastAPIroutes for interacting withMeilisearch.InstallationUsing a virtual environmnet is recommended for installing this package. Once the virtual environment is created and activated install the package with:pipinstallmeilisearch-fastapiUseageRoutes are split in groups so that different dependencies can be injected, and therefore different levels of access, can be given to different groups of routes.Example with no authentication required for routesfromfastapiimportAPIRouter,FastAPIfrommeilisearch_fastapi.routesimport(document_routes,index_routes,meilisearch_routes,search_routes,settings_routes,)app=FastAPI()api_router=APIRouter()api_router.include_router(document_routes.router,prefix="/documents")api_router.include_router(index_routes.router,prefix="/indexes")api_router.include_router(meilisearch_routes.router,prefix="/meilisearch")api_router.include_router(search_routes.router,prefix="/search")api_router.include_router(settings_routes.router,prefix="/settings")app.include_router(api_router)Example with routes requiring authenticationfromfastapiimportAPIRouter,FastAPIfrommeilisearch_fastapi.routesimport(document_routes,index_routes,meilisearch_routes,search_routes,settings_routes,)frommy_appimportmy_authenticationapp=FastAPI()api_router=APIRouter()api_router.include_router(document_routes.router,prefix="/documents",dependeincies=[Depends(my_authentication)])api_router.include_router(index_routes.router,prefix="/indexes",dependeincies=[Depends(my_authentication)])api_router.include_router(meilisearch_routes.router,prefix="/meilisearch",dependeincies=[Depends(my_authentication)])api_router.include_router(search_routes.router,prefix="/search",dependeincies=[Depends(my_authentication)])api_router.include_router(settings_routes.router,prefix="/settings",dependeincies=[Depends(my_authentication)])app.include_router(api_router)The url for Meilisearch, weather an https address should be used, and API key are read from
environment variables. Putting these into a .env file will keep you from having to set these
variables each time the terminal is restarted.MEILI_HTTP_ADDR=localhost:7700  # This is the url for your instance of Meilisearch
MEILI_HTTPS_URL=true  # Setting this specifies the address should be https://. If false or not included the address will be http://
MEILI_MASTER_KEY=masterKey  # This is the API key for your Meilisearch instanceNow the Meilisearch routes will be available in your FastAPI app. Documentation for the routes can be viewed in the OpenAPI documentation of the FastAPI app. To view this start your FastAPI app and naviate to the docshttp://localhost:8000/docsreplacing the url with the correct url for your app.ContributingContributions to this project are welcome. If you are interested in contributing please see ourcontributing guide
Package: meilisearch-status-check-decorator
MeiliSearch Status Check DecoratorThis package provides a decorator for theMeiliSearch Pythonclient that will check for a failed status when adding documents.Instillationpipinstallmeilisearch-status-check-decoratorUseageAdd documents with no errorsIn this example there will be no errors so the documents will be added and the decorator will not
print anything.frommeilisearchimportClientfrommeilisearch_status_check_decoratorimportstatus_checkindex=Client("http://localhost:7700","masterKey").index("test")@status_check(index=index)defgood_insert():documents=[{"id":1,"name":"test 1",},{"id":2,"name":"test 2",}]index.add_documents(documents)Add documents with errorsIn this example an error will be returned because a primary key cannot be inferredfrommeilisearchimportClientfrommeilisearch_status_check_decoratorimportstatus_checkindex=Client("http://localhost:7700","masterKey").index("test")@status_check(index=index)defbad_insert():documents=[{"name":"test 1",},{"name":"test 2",}]index.add_documents(documents)This will result in an error similar to the following being printed:FAILED:{'status':'failed','updateId':0,'type':{'name':'DocumentsAddition'},'message':'missing primary key','errorCode':'missing_primary_key','errorType':'invalid_request_error','errorLink':'https://docs.meilisearch.com/errors#missing_primary_key','duration':0.025,'enqueuedAt':'2021-08-29T17:06:59.877177189Z','processedAt':'2021-08-29T17:06:59.906190045Z'}ContributingContributions to this project are welcome. If you are interesting in contributing please see ourcontributing guide
Package: meilisearch-tui
Meilisearch TUIA TUI (Text User Interface) for Managing and Searching withMeilisearchfrom the terminal.InstallationInstalling withpipxis recommended.pipxinstallmeilisearch-tuiAlternatively Meilisearch TUI can be installed with pip.pipinstallmeilisearch-tuiUsageStart the TUI by runningmeilisearchThe first time you start the app you will need to enter the server address and master key (if using
one) into the configuration. If theMEILI_HTTP_ADDRand/orMEILI_MASTER_KEYenvironment variables
are set, these values will be used for themeilisearch_urlandmaster_key.If you have not already created an index and loaded data, first add an index on the Add Index tab of the Index Management screen. Then data can be loaded from the ‘Load Data` tab.To search, click on the index in the sidebar you want to search on, by default the first index will
be selected. Then type the desired search.ContributingContributions to this project are welcome. If you are interested in contributing please see ourcontributing guide
Package: meilisync-config-keygen
A package designed to generate the Meilisearch API key and implement it in config.yml meilisync serviceThis package will be useful for those who use the docker meilisync image in their project and need to generate an injected key at the time the container is launched.To generate a key, in the system where the script will be launched, the key must be specified as an environment variable called MEILI_MASTER_KEYThis package runs from the command line and allows you to use the following parameters:--path (def. ./config.example.yml) - Used to specify an example configuration file.
--output (def. ./config.yml) - Used to specify the path where the configuration file will be located
--address (def.http://localhost:7700) - Meilisearch service address
Package: meillionen
MeillionenMeillionen will be a project to facilitate the interoperability of simulation models written in different languages and frameworks for the physical and social sciences. Current work is focused on combining models with command line interfaces in python but work on bidirectional communication is planned.InstallationWith pippipinstallmeillionenDevelopmentSetup the environmentcondaenvcreate-fenvironment.yml-nmeillionen
condaactivatemeillionenRun the testspoetryrunpytestInstall the dependenciespoetryinstallFAQI've updated the flatbuffer schemas, how do I update the generated Python code?Runflatcin the root of the project (it is installed in the flatbuffers conda package).flatc-opython--pythonschema/*.fbs
Package: meinconf
Generic configuration library for any app.Pretty much a Flask config-like object with added functionality based on flask-appconfig.Tested with Python 2.7, 3.4, 3.5, 3.6.PyPi:https://pypi.python.org/pypi/meinconfTODOMove to explicit usage that accept either files or strings,notboth.DocumentationImport work using chainmaps to unhackifyInstallationpipinstallmeinconfRunning testsPytest is the test runner.Tox is used to handle testing multiple python versions.tox
Package: meinheld
What’s thisThis is a high performance python wsgi web server.And Meinheld is a WSGI compliant web server. (PEP333 and PEP3333 supported)You can also join us inmeinheld mailing list.RequirementsMeinheld requiresPython 2.x >= 2.6orPython 3.x >= 3.5. andgreenlet >= 0.4.5.Meinheld supports Linux, FreeBSD, and macOS.InstallationInstall from pypi:$ pip install -U meinheldInstall from source:$ python setup.py installMeinheld also supports working as a gunicorn worker.To install gunicorn:$ pip install -U gunicornBasic Usagesimple wsgi app:frommeinheldimportserverdefhello_world(environ,start_response):status=b'200 OK'res=b"Hello world!"response_headers=[('Content-type','text/plain'),('Content-Length',str(len(res)))]start_response(status,response_headers)return[res]server.listen(("0.0.0.0",8000))server.run(hello_world)with gunicorn. user worker class “egg:meinheld#gunicorn_worker” or “meinheld.gmeinheld.MeinheldWorker”:$ gunicorn --workers=2 --worker-class="egg:meinheld#gunicorn_worker" gunicorn_test:appContinuationNOTE: This feature is deprecated and will be removed in 2.0Meinheld provides a simple continuation API (based on greenlet).To enable continuations, use ContinuationMiddleware. get Continuation from wsgi environ.Continuation objects have two very interesting methods,suspendandresume.For example:frommeinheldimportserverfrommeinheldimportmiddlewaredefapp(environ,start_response):...#get Continuationc=environ.get(middleware.CONTINUATION_KEY,None)...ifcondtion:waiters.append(c)#suspendc.suspend()else:forcinwaiters:# resume suspend functionc.resume()...server.listen(("0.0.0.0",8000))server.run(middleware.ContinuationMiddleware(hello_world))For more info seehttp://github.com/mopemope/meinheld/tree/master/example/chat/WebsocketNOTE: This feature is deprecated and will be removed in 2.0Meinheld support Websockets. use WebSocketMiddleware.For example:fromflaskimportFlask,render_template,requestfrommeinheldimportserver,middlewareSECRET_KEY='development key'DEBUG=Trueapp=Flask(__name__)app.config.from_object(__name__)participants=set()@app.route('/')defindex():returnrender_template('websocket_chat.html')@app.route('/chat')defchat():printrequest.environws=request.environ.get('wsgi.websocket')participants.add(ws)try:whileTrue:print"ws.wait()..."m=ws.wait()print"recv msg%s"%mifmisNone:breakforpinparticipants:print"send message%s"%mp.send(m)finally:participants.remove(ws)return""if__name__=="__main__":server.listen(("0.0.0.0",8000))server.run(middleware.WebSocketMiddleware(app))PatchingNOTE: This feature is deprecated and will be removed in 2.0Meinheld provides a few monkeypatches.SocketThis patch replaces the standard socket module.For Example:frommeinheldimportpatchpatch.patch_all()For more info seehttp://github.com/mopemope/meinheld/tree/master/example/patch/PerformanceFor parsing HTTP requests, Meinheld uses Ryan Dahl’s http-parser library.(seehttps://github.com/joyent/http-parser)It is built around the high performance event library picoev.(seehttp://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)SendfileMeinheld uses sendfile(2), over wgsi.file_wrapper.
Package: meinkonfig
Usage exampleYou can use .env $ENVVARIABLE variables in a YAML file.
They will be automatically replaced with environment variables.frommeinkonfigimportKonfigcfg=Konfig("configfiles/","config.yaml")cfg.load_konfig()print(cfg.config.env)Output:ENVTESTYAML configuration file:env:$TEST.env file:TEST="ENVTEST"
Package: meiteimayek-mapping
MayekMappingUtility Functions for managing Meitei Mayek Characters and mapping to E-pao Fonts.Installation$ python3 -m pip install meiteimayek-mappingUsagefrommayekimportMayekmayek=Mayek('epao')# 'ratha'# This will print out all the Mapum Mayekprint(mayek.MAPUM)# This will print out all the Lonsum Mayekprint(mayek.LONSUM)# This will print out all the Cheitap Mayekprint(mayek.CHEITAP)# This will print out all the Cheising Mayekprint(mayek.CHEISING)# This will print out all the KHUDMA Mayekprint(mayek.KHUDAM)# This will convert the character code of E-pao font to Unicodeprint(mayek.to_unicode('mitE myeQ'))# THis will convert from Unicode to E-pao font's character codeprint(mayek.from_unicode('ꯃꯤꯇꯩ ꯃꯌꯦꯛ'))
Package: meiteitobangla
MeiteiToBanglaThis Python module was created to facilitate the conversion of the Manipuri Language (mni) from the Meitei Mayek script to the Bengali script. The module is based on the Unicode standard for the Meitei Mayek script and the Unicode standard for the Bengali script. The module is designed to be used with Python 3.6 or later.
I kindly thank the following people for their help in creating this module:Haoreimafor the Meitei Mayek to Bangla rules and the Meitei Mayek Unicode standard.BackgroundMeitei Mayek is the script used to write the Meitei language, which is spoken in the Indian state of Manipur. The script is based on the Bengali script, and the two scripts share many characters. However, there are some differences between the two scripts, and the Meitei Mayek script has some characters that are not present in the Bengali script.InstallationYou can install this module via pip as:pipinstall-UmeiteitobanglaUsageThe module is accessible asmtei2bangla.frommtei2banglaimportMeiteitoBanglainput_text=input('Please enter an example text')output=MeiteitoBangla.transliterate(input_text)Since version, 1.1.0, theMeiteitoBanglahas two methodssetpreprocessandsetpostprocessto set the pre and post process functions. Thesetpreprocessmethod takes a function as an argument and thesetpostprocessmethod takes a function as an argument. The function should take a string as an argument and return a string. Thetransliteratemethod will call the pre-process function before transliterating the text and the post-process function after transliterating the text.frommtei2banglaimportMeiteitoBangladefcustom_preprocess(text):returntextdefcustom_postprocess(text):returntextMeiteitoBangla.setpreprocess(custom_preprocess)MeiteitoBangla.setpostprocess(custom_postprocess)input_text=input('Please enter an example text')output=MeiteitoBangla.transliterate(input_text)Known LimitationsIt adds anাat the end of consonants if no diacritics are added. In most cases these are correct but in some foreign loan words, it is not correct. But as this module does not have any capability to distinguish between these words, it would addাat the end. Please usecustom_end_func(not implemented yet) to handle these correctly.LicenseCopyright (C) 2024 by Nokib Sarkar.
This module is licensed under the terms of the AGPLv3 license.
However, there is no restriction to use this module for the initial developer.
A copy of the license is included in the fileLICENCE.md. If not, seehttps://www.gnu.org/licenses/agpl-3.0.html.
Package: meitingtrunk
MeiTing TrunkAn open source reference management tool developed in PyQt5 and Python3.FeaturesLibrariesCreate, manage and switch between multiple libraries.FoldersOragnize documents in a folder tree, with arbitrary level of folder nesting.Add a document to multiple folders without taking up duplicate storage.Import formatImport via bibtex files.Import via RIS files.Import PDF files (currently with limited meta data fetching capability).Update meta data using DOI.Export formatExport to bibtex.Export to RIS.Bulk export, per folder, or per document.Searching and filteringFilter document using authors, keywords, tags or publications.Search meta data within folders or library.Duplicate checking within folders or library.Note takingJot down your thoughts while reading, in your referred editor. (currently with limited formating options).DatabaseMeta data saved in sqlite format, transparent and easy to manipulate.library saved in a portable manner, backup or share using your prefered online/offline tools.Full text search (experimental)Utilises Xapian engine to enable full text search inside attachment files (including PDFs, docs etc.).PDF preview and readerUsepdf.jsas a build-in PDF reader.Usepopplerto generate PDF thumbnails.Free and open sourceOpen to suggestions, bug reports and new ideas.ScreenshotsMain interfaceBulk export.Duplicate checking results.Merge duplicates.Meta data searching.Full text search.Actions on documents.Merge inconsistent journal namesPlatforms and DependenciesCurrently only support Linux and MacOS.Python dependenciespython3+PyQt5>=5.12PyQtWebEngine (this is no longer shipped with PyQt5 after 5.11)sqlite3pdfminer.sixPyPDF2beautifulsoup4bibtexparserfuzzywuzzycrossrefapiRISparsersend2trashpython-levenshtein (optional)Other dependenciesxapian-core, xapian-omega and the python bindings of xapian (all optional), required for full text searching. Seehttps://xapian.org/docs/install.htmlfor installation instructions. Also checkout thewiki pageon how to enable snippets.poppler(optional), used for generating PDF thumbnails.Installinstall using pippip install meitingtrunkThen launch it in the terminal with$ meitingtrunkTo upgrade:pip install --upgrade meitingtrunkManual installYou can clone this repogit clone https://github.com/Xunius/MeiTingTrunkCheck out the dependency list if any module is missing in your python environment.Then launch it with$ cd MeiTingTrunk
$ python -m MeiTingTrunk.mainContributionThis software is still in its very early stage. Please consider helping by trying it out, sending issues, suggestions, ideas or contributing code.Major features that are still lacking (I greatly appreciate any help with any of them):Format citations into various citation styles, in a format suitable to paste into word editors.Import from Zotero.Other document types aside articles and books.Packaging into a format suitable for a few mainstream Linux package management tools.Of cource, any stability or performance improvements.LicenceThis file is distributed under the terms of the
GPLv3 licence. See the LICENSE file for details.
You may use, distribute and modify this code under the
terms of the GPLv3 license.
Package: meito
meitoIn what followspythonis an alias forpython3.5or any later
version (python3.6and so on),pypyis an alias forpypy3.5or any later
version (pypy3.6and so on).InstallationInstall the latestpip&setuptoolspackages versions:withCPythonpython-mpipinstall--upgradepipsetuptoolswithPyPypypy-mpipinstall--upgradepipsetuptoolsUserDownload and install the latest stable version fromPyPIrepository:withCPythonpython-mpipinstall--upgrademeitowithPyPypypy-mpipinstall--upgrademeitoDeveloperDownload the latest version fromGitHubrepositorygitclonehttps://github.com/lycantropos/meito.gitcdmeitoInstall dependencies:withCPythonpython-mpipinstall--force-reinstall-rrequirements.txtwithPyPypypy-mpipinstall--force-reinstall-rrequirements.txtInstall:withCPythonpythonsetup.pyinstallwithPyPypypysetup.pyinstallDevelopmentBumping versionPreparationInstallbump2version.Pre-releaseChoose which version number category to bump followingsemver
specification.Test bumping versionbump2version--dry-run--verbose$CATEGORYwhere$CATEGORYis the target version number category name, possible
values arepatch/minor/major.Bump versionbump2version--verbose$CATEGORYThis will set version tomajor.minor.patch-alpha.ReleaseTest bumping versionbump2version--dry-run--verbosereleaseBump versionbump2version--verbosereleaseThis will set version tomajor.minor.patch.Running testsInstall dependencies:withCPythonpython-mpipinstall--force-reinstall-rrequirements-tests.txtwithPyPypypy-mpipinstall--force-reinstall-rrequirements-tests.txtPlainpytestInsideDockercontainer:withCPythondocker-compose--filedocker-compose.cpython.ymlupwithPyPydocker-compose--filedocker-compose.pypy.ymlupBashscript (e.g. can be used inGithooks):withCPython./run-tests.shor./run-tests.shcpythonwithPyPy./run-tests.shpypyPowerShellscript (e.g. can be used inGithooks):withCPython.\run-tests.ps1or.\run-tests.ps1cpythonwithPyPy.\run-tests.ps1pypy
Package: meix
MeixTest building pypi packagesFree software: MIT licenseDocumentation:https://meix.readthedocs.io.FeaturesTakes in user’s name as input and prints a welcome message.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-07-31)First release on PyPI.
Package: meizi
Meiziprovides two commands:mz downloadfor downloading nice albums.mz servefor starting a simple web server to serve the albums.InstallYou need to havePython 3.8+.$pipinstallmeiziUsageYou can runmz downloadin one terminal, and runmz servein
another terminal.Then openhttp://localhost:1310in your browser.Commands$ mz download --help
Usage: mz download [OPTIONS]

  Download albums.

Options:
  --max-workers INTEGER  The number of threads for downloading.  [default: 2]
  --data-dir PATH        The directory to save albums.  [default:
                         /Users/xzmeng/.meizi]
  --help                 Show this message and exit.$ mz serve --help
Usage: mz serve [OPTIONS]

  Run a local http server.

Options:
  --data-dir PATH  The directory to read albums.  [default:
                   /Users/xzmeng/.meizi]
  --port INTEGER   The port of the http server.  [default: 1310]
  --help           Show this message and exit.
Package: mekaconverter
MekaConverterConvert c4d images export to a JSON format that can be used by C4D with a converter.InstallationUsing pippipinstallmekaconverterManualgitclonehttps://github.com/TheMekaverse/MekaConvertercdMekaConverter
pythonsetup.pyinstallUsageConvert images to a JSON fileTo convert images to a JSON file, use the following command:mekaconverterconvert--path/path/to/images--output/path/to/jsonImages need to be formatted that way:F${frame}--B${background_number}__E${eye_number}__A${arms_number}__B${body_number}--X${frame}.png
Package: mekadb
Hypi's MekaDB clientRegister ahttps://hypi.ai/mekadbUsageif__name__=='__main__':asyncdefmain():# Create an instance of the MekaDBClientclient=MekaDBClient()# Connect to Hypi and keep a connection in the backgroundawaitclient.run()# Login to get authentication contextauth=awaitclient.login('<username>','<password>','<database name>')res=awaitclient.query(creds=auth,sql='CREATE TABLE IF NOT EXISTS user(username VARCHAR, pass VARCHAR, PRIMARY KEY (username))')print("Create table:",res)res=awaitclient.query(creds=auth,sql="INSERT INTO user(username,pass) VALUES('courtney','pass1'),('damion','pass2')")print("Insert:",res)res=awaitclient.query(creds=auth,sql='SELECT * FROM user WHERE pass = :pass',params={'pass':'pass99'})print("Select:",res)# Close the connectionawaitclient.close()# Run the main function within an asyncio event loopasyncio.run(main())
Package: mekk.feeds
Helper scripts for heavy RSS user.ContentCurrently the following script is available:greader2orgManage Google Reader subscribtions editing the text file (org-mode
compatible syntax). You can use it to export the list of subscribed
feeds to readable text file, edit this file and save changes
back. Seemore elaborate description on the bloganddoc/greader2org.txtwithin the sources.SourcesThe project ishosted on bitbucket.
Package: mekk.fics
mekk.ficsis a Python access library forFICS.
It can be used to write FICS bots and clients in Python.StatusThe code works, and is actively used, but covers only part of FICS
functionality.Core functionality (handling FICS connections, command management etc)
works, is stable and have been used byWatchBotfor many years.Parsing routines (converting various FICS notifications and replies to
commands) are implemented only for some commands and notifications.
New parsers are mostly added on demand, whenever some new command or
information turns out to be useful.Main APIs should be stable, data structures can be modified from time
to time.Examples and documentationIn case you are not familiar with FICS programming, take a look at:How to write a FICS botarticle series.Next please take a look atmekk.fics examples.All important classes and methods have docstrings.DevelopmentThe code is tracked using Mercurial. Repository can be cloned fromhttp://bitbucket.org/Mekk/mekk.ficsUse the same place to report bugs, suggest improvements and offer
patches.InstallationFrom PyPI (installing newest release):pip install --user mekk.ficsfrom source (tagged release):hg clone http://bitbucket.org/Mekk/mekk.fics
hg update -r 'max(tagged())'
pip install --user .from source, for development:hg clone http://bitbucket.org/Mekk/mekk.fics
pip install --user --edit .Licensemekk.fics is dual-licensed under Artistic License 2.0 and Mozilla Public
License 1.1. The complete license texts can be found in Artistic-2.0.txt
and MPL-1.1.txt.