Saravanan666/pypi-org huggingface dataset:
Package: mobypy
mobypyPython module for searching the Moby Thesaurus created by Grady WardTo Install mobypy:pip install mobypyTo Use mobypy:import mobypysynonyms = mobypy.synonyms("abbreviated")
print(synonyms)
['Spartan', 'abridged', 'abstracted', 'aposiopestic', 'bobbed', 'brief', 'brusque', 'capsule', 'capsulized', 'clipped', 'close', 'compact', 'compendious', 'compressed', 'concise', 'condensed', 'contracted', 'crisp', 'cropped', 'curt', 'curtailed', 'cut', 'cut short', 'digested', 'docked', 'elided', 'elliptic', 'epigrammatic', 'gnomic', 'laconic', 'mowed', 'mown', 'nipped', 'pithy', 'pointed', 'pollard', 'polled', 'pruned', 'reaped', 'reserved', 'sententious', 'shaved', 'sheared', 'short', 'short and sweet', 'short-cut', 'shortened', 'snub', 'snubbed', 'succinct', 'summary', 'synopsized', 'taciturn', 'terse', 'tight', 'to the point', 'trimmed', 'truncated']short_synonyms = mobypy.short_synonyms("abbreviated")
print(short_synonyms)
['brief', 'close', 'crisp', 'curt', 'cut', 'mowed', 'mown', 'pithy', 'short', 'snub', 'terse', 'tight']long_synonyms = mobypy.long_synonyms("abbreviated")
print(long_synonyms)
['Spartan', 'abridged', 'abstracted', 'aposiopestic', 'bobbed', 'brusque', 'capsule', 'capsulized', 'clipped', 'compact', 'compendious', 'compressed', 'concise', 'condensed', 'contracted', 'cropped', 'curtailed', 'cut short', 'digested', 'docked', 'elided', 'elliptic', 'epigrammatic', 'gnomic', 'laconic', 'nipped', 'pointed', 'pollard', 'polled', 'pruned', 'reaped', 'reserved', 'sententious', 'shaved', 'sheared', 'short and sweet', 'short-cut', 'shortened', 'snubbed', 'succinct', 'summary', 'synopsized', 'taciturn', 'to the point', 'trimmed', 'truncated']rev_search = mobypy.reverse_search("abbreviate")
print(rev_search)
['compact', 'cut short', 'cut', 'short', 'snub']If no results are found, an empty list is returnedbad_search = mobypy.synonyms("asdasdasdasd")
bad_search = mobypy.long_synonyms("asdasdasdasd")
bad_search = mobypy.short_synonyms("asdasdasdasd")
bad_search = mobypy.reverse_search("asdasdasdasd")
print(bad_search)
[]
Package: mo-cache
Mo-Cachea simple cache lib support memory、file、redisGithub:https://github.com/mouday/mo-cacheinstallpipinstallmo-cachedemo快速开始frommo_cacheimportMemoryCachecache=MemoryCache()# 此时的key默认是函数名 foo@cachedeffoo(a,b):returna+bif__name__=='__main__':foo()更多示例1、使用装饰器# 主动设置key, 过期时间单位：秒s@cache(key='custom_key',expire=30)deffoo(a,b):returna+b2、主动设置和获取cache.set(key='custom_key',value='value',expire=30)value=cache.get(key='custom_key')MemoryCache, FileCache, RedisCache实现了共同的接口(set/get/call)，只是构造参数稍有不同frommo_cacheimportMemoryCache,FileCache,RedisCachememory_cache=MemoryCache()file_cache=FileCache(cache_dir='cache')redis_cache=RedisCache(redis_url='redis://localhost:6379/0')继承体系classCacheAbstract(object):"""统一的接口"""defset(self,key,value,expire=-1):passdefget(self,key):passclassCacheDecorator(CacheAbstract):"""cache 装饰器"""def__call__(self,key=None,expire=-1):passclassMemoryCache(CacheDecorator):"""内存缓存"""classFileCache(CacheDecorator):"""文件缓存"""classRedisCache(CacheDecorator):"""Redis 缓存"""
Package: mocaplib
MoCapLibMoCapLib: Library for Motion Capture data processing and analysisDescriptionThe aim of this repository is to provide a simple Python-based library for motion capture data processing and analysis.InstallationMoCapLib can be installed fromPyPIusingpipon Python>=3.7.pipinstallmocaplibUsageCurrently, MoCapLib is under heavy development.Installation of BTK (Microsoft Windows x64 platforms) for C3D file parsingConda-forge(find thedetails)PyPIDependenciesNumPySciPyLicenseMIT
Package: mo-catnip
CATNIPClimateAnalysisTools:NowInPythonThis library is a collection of routines to make frequently used climate data analysis
and visualisation tasks in Iris easier and quicker to write.Complete documentation can be found at:CATNIP DocsRequirementsPlease ensure you have the following dependencies installed:irisnumpymatplotlibsixscipyUsageTo get started make sure all the requirements are installed, then clone the repository
and set your Python environment to point to your copy, for example:git clone git@github.com:MetOffice/CATNIP.gitexport PYTHONPATH=<path/to/CATNIP/lib>CATNIP is also available via pypi and conda-forge:pip install mo-catnipconda install -c conda-forge mo-catnipContactFor any suggestion, contribution and bug/error reporting, contact us atcatnip@metoffice.gov.ukLicenseBSD-3 License
Package: mocca
MOCCA (Multivariate Online Contextual Chromatographic Analysis) is an open-source Python project to analyze HPLC–DAD raw data.Automation and digitalization solutions in the field of small molecule synthesis face new challenges for chemical reaction analysis, especially in the field of high-performance liquid chromatography (HPLC). Chromatographic data remains locked in vendors’ hardware and software components limiting their potential in automated workflows and contradicting to FAIR data principles (findability, accessibility, interoperability, reuse), which enable chemometrics and data science applications. In this work, we present an open-source Python project called MOCCA (Multivariate Online Contextual Chromatographic Analysis) for the analysis of open-format HPLC–DAD (photodiode array detector) raw data. MOCCA provides a comprehensive set of data analysis features including a peak deconvolution routine which allows for automated deconvolution of known signals even if overlapped with signals of unexpected impurities or side products. By publishing MOCCA as a Python package, we envision an open-source community project for chromatographic data analysis with the potential of further advancing its scope and capabilities.Documentation:https://mocca.readthedocs.io/en/latest/Check out corresponding scientific publication: !!!InstallationWe recommend creating an isolated conda environment
to avoid any problems with your installed Python packages:conda create -n mocca python=3.9
conda activate moccaInstallmoccaand its dependencies:pip install moccaIf you want to usemocca’s reporting functionality:pip3 install -U datapaneIf you want to use Allotrope (adf) file format:pip install h5py
pip install git+https://github.com/HDFGroup/h5ld@masterIf you want to usemoccausing JupyterLab notebooks:pip install jupyterlab
ipython kernel install --user --name=moccaNoteThis project has been set up using PyScaffold 4.1.1. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: mocca-edc
mocca-edcLiverpool School of Tropical Medicinehttp://www.isrctn.com/See alsohttps://github.com/clinicedc/edcInstallationTo setup and run a test server locallyYou’ll need mysql and Redis. Create the databasemysql-Bse'create database mocca character set utf8;'Create and activate a virtual environmentcondacreate-nedcpython=3.9condaactivateedcClone the main repo and checkout mastermkdir~/appcd~/appgitclonehttps://github.com/mocca-trial/mocca-edc.gitcd~/app/mocca-edcgitcheckoutmasterCopy the test environment filecd~/app/mocca-edcgitcheckoutmastercp.env-tests.envEdit the environment file (.env) to include your mysql password in theDATABASE_URL.# look for and update this lineDATABASE_URL=mysql://user:password@127.0.0.1:3306/moccaContinue with the installationcd~/app/mocca-edcgitcheckoutmasterpipinstall-U-rrequirements.txtpythonmanage.pymigratepythonmanage.pyimport_randomization_listpythonmanage.pyimport_holidaysEnsure Redis is running$redis-clipingPONGCreate a user and start uprunservercd~/app/mocca-edcgitcheckoutmasterpythonmanage.pycreatesuperuserpythonmanage.pyrunserverLogin:localhost:8000
Package: moceansdk
MoceanAPI Client Library for PythonThis is the Python client library for use Mocean's API. To use this, you'll need a Mocean account. Sign upfor free at
moceanapi.com.InstallationUsageExamplesInstallationTo use the client library you'll need to havecreated a Mocean account.Install from PyPi using pip, a package manager for Python.pipinstallmoceansdkUsageCreate a client with your API key and secret:frommoceansdkimportClient,Basiccredential=Basic("API_KEY_HERE","API_SECRET_HERE")mocean=Client(credential)ExampleTo useMocean's SMS APIto send an SMS message, call themocean.sms.send()method.The API can be called directly, using a simple array of parameters, the keys match theparameters of the API.res=mocean.sms.send({"mocean-from":"MOCEAN","mocean-to":60123456789,"mocean-text":"Hello World"})print(res)ResponsesFor your convenient, the API response has been parsed todictusingdotmappackage.print(res)# show full response stringprint(res.status)# show response status, '0' in this caseprint(res['status'])# same as aboveDocumentationKindly visitMoceanApi Docsfor more usageLicenseThis library is released under theMIT License
Package: mochart
mochartmochart(musiconchart) is a simple webpage parser that aims to retrieve song rankings in JSON compatible data format.InstallationA simplepipinstall:pipinstallmochartExampleRealtime ranks from Melon:frommochartimportmelonranks=melon.realtime()print(ranks)At the time of this writing, the code would print:[{"title":"SOLO","artist":"제니 (JENNIE)","album":"SOLO"},{"title":"봄바람","artist":"Wanna One (워너원)","album":"1¹¹=1 (POWER OF DESTINY)"},{"title":"Tempo","artist":"EXO","album":"DON`T MESS UP MY TEMPO - The 5th Album"},{"title":"YES or YES","artist":"TWICE (트와이스)","album":"YES or YES"},{"title":"너를 만나","artist":"폴킴","album":"너를 만나"},{"title":"아름답고도 아프구나","artist":"비투비","album":"HOUR MOMENT"},{"title":"Gravity","artist":"EXO","album":"DON`T MESS UP MY TEMPO - The 5th Album"}...]feat. 아이돌전쟁APIAll functions in a provider(e.g. Melon) will return Python List that contains music information in order of its ranking.Generally, a rank contains title, aritst, and album in string format as seen above.Not all providers support the these functions.realtimeReturn the most current ranks at the time of query.trendReturn songs that are trending at the time of query.dayReturn ranks given day.weekReturn ranks given week.monthReturn ranks given month.yearReturn ranks given year.DatetimeGiven datetime object will be converted into a local datetime for the provider. For example A datetime given tomelon.day(today), the argumenttodaywill be converted toAsia/Seoultimezone before the query.Note that if incorrect time is given to any function, it could return either an empty array or ranks of the closest date.Also, if no datetime object is provided as an argument, the current time will be used in the query.ContributionYou are more than welcome to contribute a new chart and/or ideas on this project.
Package: mocha-time
Python Performance Profiling for Production~ It's About Time ~Mocha is a performance profiler that can monitor the performance of your production Python, and makes results easy to aggregate and search through.Mocha is designed forPurposeful Profiling. This means that you only use Mocha around code of interest, instead of dumping all code performance logs and mining it later.Useful for Profiling:🌎 API performance🚀 CI/CD stage / granular performance💡 ML training & inference jobs📀 Database queries📊 Data pipelines / compute jobsWhat gets measured gets managed!Bad performance hasreal world consequences, and is often a result oflack of visibility,even if you are logging it, if it's not be easy to get to, it will be ignored.Installationpipinstallmocha-timedockerrun-p9000:9000mochadev/mochaDemoimportmochamocha.init(url="http://localhost:9000")mocha.demo()Usage# 1. Start / Stopp=mocha.start("Foobar")passp.stop()# 2. Profilerwithmocha.Profiler("Foobar"):pass# 3. Function Decorator@mocha.profiler("Foobar")defml_training():pass
Package: mochi-api-client
Mochi API ClientThe Mochi API Client is a Python library designed to simplify interacting with the Mochi API, allowing developers to easily create, retrieve, update, and delete cards and decks within their Python applications.FeaturesSimplified access to the Mochi API endpointsMethods for managing cards, decks, and templatesSupport for custom fields and attachments in cardsEasy to integrate with Python applicationsInstallationInstall the Mochi API Client using pip:pipinstallmochi-api-clientQuick StartHere's a quick example to get you started:frommochi.clientimportMochifrommochi.authimportAuthauth=Auth.Token("find api token in mochi settings page")mochi=Mochi(auth=auth)# list decksdecks=mochi.decks.list_decks()print(decks)iflen(decks)<1:# Working with decksnew_deck=mochi.decks.create_deck(name="My new deck")print(new_deck)# Working with cardsnew_card=mochi.cards.create_card("New card content",(decks[0])["id"])print(new_card)# Working with templatestemplates=mochi.templates.list_templates()print(templates)mochi.close()DocumentationFor detailed documentation on all available methods and their parameters, visit Mochi API Documentation.ContributingContributions are welcome! Please read our Contributing Guide for details on how to submit pull requests, report issues, and suggest improvements.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.SupportIf you encounter any problems or have suggestions, please file an issue on the GitHub issue tracker.
Package: mochic7b1937c0
mochic7b1937c0Usagecondacreate-nmochic7b1937c0python>=3.9
condaactivatemochic7b1937c0
pipinstallmochic7b1937c0Python>>>importmochic7b1937c0DevelopmentSee instructions inhttps://github.com//mochic7b1937c0/CONTRIBUTING.mdand the original template:https://github.com/AllenInstitute/copier-pdm-npc/blob/main/README.md
Package: mochila
Mochila=======.. image:: https://circleci.com/bb/arcanefoam/mochila/tree/master.svg?style=shield:target: https://circleci.com/bb/arcanefoam/mochila/tree/master.. image:: https://coveralls.io/repos/bitbucket/arcanefoam/mochila/badge.svg:target: https://coveralls.io/bitbucket/arcanefoam/mochila.. image:: https://readthedocs.org/projects/mochila/badge/?version=latest:target: http://mochila.readthedocs.io/en/latest/?badge=latest:alt: Documentation StatusCollections are vital for implementing algorithms: they are the bread an butter of data aggregation and processing.For example, a collection can be used to represent the list of ingredients of a recipe.Then, you might want your algorithm to scale the ingredients to accommodate a different number of portions than theoriginal recipe.The Mochila package provides a powerful API to process data in collections in a declarative way.QuickStart----------Installation~~~~~~~~~~~~You can download and install the latest version of this software from the Python package index (PyPI) as follows::pip install --upgrade mochilaUsage~~~~~Import the module and all or any of the collections you want to use::from mochila import Sequences = Sequence([1,2,3])The complete reference is hosted in `Read the Docs <http://mochila.readthedocs.io/en/latest/>`_.Development-----------Development of this happens on `Bitbucket <https://bitbucket.org/arcanefoam/mochila>`_, and issues are tracked in`Youtrack <https://mofongo.myjetbrains.com/youtrack/issues/MCH>`_.Bug reports, patches (including tests), and documentation are very welcome!`Contributing <CONTRIB.rst>`_ contains information on contributing to the project.Changelog=========All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).[Unreleased]------------Added~~~~~Changed~~~~~~~- Fixes[0.2.4] - 2017-11-04--------------------Changed~~~~~~~- Fixes MCH-10[0.2.3] - 2017-11-04--------------------Changed~~~~~~~- Fixes MCH-9[0.2.2] - 2017-10-31--------------------Changed~~~~~~~- Fixes some issues with excluding/including operations[0.2.1] - 2017-10-26--------------------Changed~~~~~~~- Changed __init__ methods so they invoke the correct add/insert methods the init will also be checked by anyconstraints added by subclasses.- Fixed the implementation of the __iadd__ of the Bag[0.2.0] - 2017-09-|6--------------------Added~~~~~- Additional examples to the documentationChanged~~~~~~~- Fixed some of the method implementation to reduce the number of methods that modify the underlying collections.- Changed the the name of the changelog file and defined it's format and contents[0.1.0] - 2017-08-27--------------------Initial release. Includes the first API implementation, tests and documentation... Added~~~~~Changed~~~~~~~Fixed~~~~~Removed~~~~~~~
Package: mock
mock is a library for testing in Python. It allows you to replace parts of
your system under test with mock objects and make assertions about how they
have been used.mock is now part of the Python standard library, available asunittest.mockin Python 3.3
onwards.This package contains a rolling backport of the standard library mock code
compatible with Python 3.6 and up.Please see the standard library documentation for more details.Homepage:Mock HomepageDownload:Mock on PyPIDocumentation:Python DocsLicense:BSD LicenseSupport:Mailing list (testing-in-python@lists.idyll.org)Code:GitHubIssue tracker:GitHub IssuesBuild status:
Package: mock-aerohive
A mock SSH server emulating Aerohive devices.Install:pip install mock_aerohiveBasic usage:from mock_aerohive import MockAerohive

aerohive = MockAerohive()
# You must add at least 1 user before starting the server!  (Library limitation)
aerohive.addUser("admin", "aerohive")

port = aerohive.run("127.0.0.1")
# Or provide a port: aerohive.run("127.0.0.1", 2222)

aerohive.stop() # Stop a single server.

aerohive.stopAll() # Terminate the background thread running all SSH servers (otherwise the process will hang)
                   # Once you stop the background thread, you may not start another server (with 'run') -
                   # another library limitation.For an example of a py.test fixture that automates starting and stopping servers
(which cleans up servers at the end of the testing session, but allows multiple servers to be run),
seetest/util/MockAerohiveFixture.py, andtest/integration/auth/test_addUser_and_login.pyfor an example.VersioningThis package uses semantic versioning.
Package: mockaioredis
Mock library to replace aioredis during unit testsmockaioredis is toaiorediswhat themockredispylibrary is to plainredis-py.
It uses the mockredispy library and wraps it in the asyncio magic required to work like
aioredis.Uses the newasynckeyword for Python 3.5, so no 3.4 support.Beware: This is an early alpha that isn't even close to API-complete.
In fact, so far it only supports the limited set of calls I needed for another project.
Eventually, as I use more and more aioredis calls in my other projects, this mock layer
will be fleshed out more.InstallationYou can installmockaioredisfrom PYPI by runningpip install mockaioredis.If you want to update an existing install, runpip install --update mockaioredis.You can also clone this repository from github and runpip install .from the repository base directory.UsageYou can use it as a fixture using pytest-mockimportmockaioredis@pytest.fixture(autouse=True)defredis(mocker):"""Mock Redis."""mocker.patch.object(aioredis,'create_pool',new=mockaioredis.create_pool)LicenseLike mockredispy, mockaioredis is licensed under the Apache License, Version 2.0.
SeeLICENSEfor details.
Package: mock-api
mock_apimocks api function returning fake data with specified shape.
Every url can have different shape, these are represented in skema format in a yaml file,/posts/:|Response:ok: Booldata: [postName: Strdate: Strid: Int]/post/:|Response:ok: Booldata:author:name: Strid: Intdescription: StrThe shape of the data can change based on url hostname or path.
an example:frommock_apiimportmock_functionfrommyapiimportapi_callwithmock_function('myapi.api_call','api_shape.yml',arg=0):data=api_call('/posts/')print(data)# {'ok': True, 'data': {'postName': 'sdfsdgx', 'date': 'sdfg4'}}genrating the api shapesYou can generating the shapes calling many times the apifrommock_apiimporttrack_functionfrommyapiimportapi_callwithtrack_function('myapi.api_call','api_shape.yaml',):api_call('/posts/')api_call('/post/34')api_call('/post/14')api_call('/data/')# a file api_shape.yaml is createdassertos.path.exists('api_shape)todo:change shape based on POST, GET ...change shape based on parametersadd url parameters, like posts/:id/remove Response root key maybe (but i can't use root arrays, Root: [...])add possible codes, like 200, 400, then change shape based on them
Package: mockbcrypt
A mock bcrypt plugin for nosetests that answers the question:how much time does every test take?InstallTo install the latest release from PyPI:pip install mockbcryptOr to install the latest development version from Git:pip install git+git://github.com/boneyao/mockbcrypt.gitOr to install the latest from source:git clone https://github.com/boneyao/mockbcrypt.git
cd mockbcrypt
pip install .You can also make a developer install if you plan on modifying the
source frequently:pip install -e .UsageRun nosetests with the--with-mockbcryptflagLicensenose-mockbcryptis an MIT Licensed library.ContributeCheck for open issues or open a fresh issue to start a discussion around a
feature idea or a bug.Fork the repository on GitHub to start making your changes to the master
branch (or branch off of it).Write a test which shows that the bug was fixed or that the feature
works as expected.Send a pull request and bug the maintainer until it gets merged and
published.Make sure to add yourself to the author’s file insetup.pyand theContributorssection below :)Contributors@boneyao
Package: mockbrython
mockbrythonMock brython functions for local testing and debugging.Brython is designed to enable python as a scripting language for the Web. Python scripts are uploaded to a web browser and interpreted by the Brython interpreter that is uploaded along with the python scripts. There are a number of Brython modules that provide web-specific functions to create the web page which are implemented by the interpreter.When developing applications it is useful to test for syntax errors and debug logic before loading web pages. This small collection of files enables this. They provide a set of dummy modules that mirror the Brython modules, but blank off all the Brython-specific calls to enable the python interpreter to syntax scan the scripts and enable a debugger to exercise the logic. Obviously it doesn't do much for the web-specific part of your design, but it means that the logic is fairly sound when the pages are loaded. Also, an IDE source assistant can use the definitions to prompt function parameters etc.At first sight, this is fairly trivial, but it took some effort to get right, so I felt it worth publishing.The library is installable using pip and wont interfere with the Brython interpreter when the pages are uploaded. This is the recommended method, but if you prefer you can clone this directory to a directory OUTSIDE the script you are developing and add the directory to PYTHONPATH
eg$ export PYTHONPATH=${PYTHONPATH}:${HOME}/mockbrythonthen running a script containing brython calls will catch syntax errors without hitting unresolved Brython calls$ python devel_script.pyThe script can also be debugged using idle, our your IDE of choice.There is a simple example in the examples directory.
The script sample.py can be run from examples/index.html, or from the command line as$ cd ${HOME}/mockbrython/examples ; python test.pyThis includes a simulated event (a button click).The script brythontest.py contains all the sample scripts in the section "Brython-specific built-in modules" from the documentation part of the Brython website and should run locally without errors and can be inpected with a debugger.