Saravanan666/pypi-org huggingface dataset:
Package: mayavoz
mayavoz is a Pytorch-based opensource toolkit for speech enhancement. It is designed to save time for audio researchers. Is provides easy to use pretrained audio enhancement models and facilitates highly customisable model training.|Quick Start|Installation|Tutorials|Available Recipes|DemoKey features :key:Various pretrained models nicely integrated with huggingface 	:hugs: that users can select and use without any hastle.:package: Ability to train and validation your own custom speech enhancement models with just under 10 lines of code!:magic_wand: A command line tool that facilitates training of highly customisable speech enhacement models from the terminal itself!:zap: Supports multi-gpu training integrated with Pytorch Lightning.DemoNoisy audio followed by enhanced audio.https://user-images.githubusercontent.com/25312635/203756185-737557f4-6e21-4146-aa2c-95da69d0de4c.mp4Quick Start :fire:frommayavoz.modelsimportMayamodelmodel=Mayamodel.from_pretrained("shahules786/mayavoz-waveunet-valentini-28spk")model.enhance("noisy_audio.wav")RecipesModelDatasetSTOIPESQURLWaveUnetValentini-28spk0.8362.78shahules786/mayavoz-waveunet-valentini-28spkDemucsValentini-28spk0.9612.56shahules786/mayavoz-demucs-valentini-28spkDCCRNValentini-28spk0.7242.55shahules786/mayavoz-dccrn-valentini-28spkDemucsMS-SNSD-20hrs0.561.26shahules786/mayavoz-demucs-ms-snsd-20Test scores are based on respective test set associated with train dataset.Seetutorialsto train your custom modelInstallationOnly Python 3.8+ is officially supported (though it might work with Python 3.7)With Pypipip install mayavozWith condaconda env create -f environment.yml
conda activate mayavozFrom source codegit clone url
cd mayavoz
pip install -e .SupportFor commercial enquiries and scientific consulting, pleasecontact me.AcknowledgementsSincere gratitude toAMPLYFIfor supporting this project.
Package: mayawaves
mayawavesMayawavesserves as an analysis library for Einstein Toolkit and MAYA simulations. Follow the tutorials and documentation athttps://mayawaves.github.io/mayawavesto learn how
to use this library to analyze both your own simulations and the simulations in the MAYA Catalog
(https://cgp.ph.utexas.edu/waveform).The Coalescence object is the heart of the library. It interacts with an h5 file that contains everything about the
simulation. Each Coalescence object has CompactObjects for each of the black holes involved in the simulation.
Refer to the compact_objects tutorial for more details on how to use CompactObjects.Each Coalescence object also has a RadiationBundle that handles all the information pertaining to gravitational
radiation. This is primarily done behind the scenes and you can access all gravitational wave information directly
through Coalescence. Refer to the gravitational_waves tutorial for more information on reading gravitational wave data.There is also a utility to stitch a raw simulation into the h5 format that the Coalescence object reads. This is
shown in the creating_h5 tutorial. Coalescence objects can also be exported to the format used by LVK analyses, as shown in
the exporking_lvk tuttorial.The catalog_utils tutorial walks through using the Catalog object in the catalogutils module to obtain metadata about
the MAYA catalog and to download simulations from the MAYA catalog.ContributingMayawavesis intended to be a library that will grow and expand with additional analysis tools. We welcome the
input of the community to both request new features and help in implementing them.
Package: maybach-request
maybach_request用户实现 Python 自动批改的库下载pipinstallmaybach_request使用举一个例子，现在要断言一下代码的正确性：# main.py# student_code_startsname=input('请输入姓名：')print(name)# student_code_ends要求：用户输入xigua，控制台能正确打印出来xigua并且能检查到name变量为xigua# test.pyfrommaybach-requestimportget_print,send_print,pass_test,no_pass_test# 获取用户的输入# 模拟一个用户的输入send_print('xigua')# 获取用户的输入text=get_print()passed=Falsemsg='请打印name变量'ifname=='xigua':foriintext:ifi.find('xigua'):passed=Truemsg='success'breakelse:msg='请声明name变量'ifpassed:# 通过测试pass_test(msg)else:# 测试不通过no_pass_test(msg)运行python test.py --port 3004 --host 127.0.0.1，当不传--host默认使用127.0.0.1依赖maybach_request依赖服务提供接口获取用户的输入，以及通知服务测试的结果。@xigua/maybach-server提供了整套服务。动态端口号maybach_request依赖的服务端口号是动态产生的，因此在执行相应的python代码的时候，需要通过argv的形式传递给python进程python xxx.py --port port这样maybach_request能够拿到相应的端口号，跟对应的进程通信。如果使用了@xigua/maybach-vmimport{run}from'@xigua/maybach-vm';run(0,xxx.py,cwd,['--port',port]).then((res)=>{console.log(res);});run(1,'print(123)',cwd,['--port',port],(res)=>{console.log(res);});
Package: maybach-requests
maybach_requests用户实现 Python 自动批改的库下载pipinstallmaybach_requests使用举一个例子，现在要断言一下代码的正确性：# main.py# student_code_startsname=input('请输入姓名：')print(name)# student_code_ends要求：用户输入xigua，控制台能正确打印出来xigua并且能检查到name变量为xiguafrommaybach-requestsimportget_print,pass_test,no_pass_test# 获取用户的输入text=get_print()passed=Falsemsg='请打印name变量'ifname=='xigua':foriintext:ifi.find('xigua'):passed=Truemsg='success'breakelse:msg='请声明name变量'ifpassed:# 通过测试pass_test(msg)else:# 测试不通过no_pass_test(msg)依赖maybach-requests依赖服务提供接口获取用户的输入，以及通知服务测试的结果。@xigua/maybach-server提供了整套服务。动态端口号maybach-requests依赖的服务端口号是动态产生的，因此在执行相应的python代码的时候，需要通过argv的形式传递给python进程python xxx.py --port port这样maybach-requests能够拿到相应的端口号，跟对应的进程通信。如果使用了@xigua/maybach-vmimport{run}from'@xigua/maybach-vm';run(0,xxx.py,cwd,['--port',port]).then((res)=>{console.log(res);});run(1,'print(123)',cwd,['--port',port],(res)=>{console.log(res);});
Package: maybe-bool
Maybe-BooleanTheMaybetype from themaybe_booleanpackage creates a new boolean-like value that could could be true OR false when evaluated. Once it is evaluated to a boolean value, it keeps its identity. Install the library withpip install maybe-bool.Short Examplefrommaybe_booleanimportMaybeval=Maybe()ifval:print(val)# prints `True`else:print(val)# prints `False`
Package: maybedata
maybedataThis is a package that implements a Maybe data type in Python that represents values that might or might not exist.It is implemented as a class hierarchy with an abstract base classMaybe. This class is not constructible, but can be called to construct members of its subclasses,JustandNothing.All methods are documented, feel free to callhelp()on the classes!CallMaybe(value)orJust(value)to create a value that is present.CallMaybe()orNothing()to create a missing value.Checkmaybe.presentto find out if a value is present.Accessmaybe.valueto get the value if it is present.Callmaybe.assume_present()to raise an exception if the value is not present.Callmaybe.get(default)to get the value or a default value.MaybeandJustare generic classes if you use type hinting.JustandNothingsupport pattern matching.Maybe,Just, andNothingsupportlen(),bool(),hash(),iter(),in, and==.The methodmaybe.alternatively()can be expressed using|.The methodmaybe.then()can be expressed using>>.
Package: maybe-type
Adds the Maybe type to PythonClassesMaybe: A union type that represents a value of Some[T] or NoneSome: A container for a value of type T. Has the functions bind and mapFunctionswith_maybe: A decorator that takes a function, which might throw an exception, and returns a function that returns a MaybeExamplesfrommaybeimportMaybe,Somedefdivide(a:int,b:int)->Maybe[int]:ifb==0:returnNonereturnSome(a//b)res=divide(10,2)# Some(5)res=divide(10,0)# Nonefrommaybeimportwith_maybe,Some@with_maybedefdivide(a:int,b:int)->int:returna//bres=divide(10,2)# Some(5)res=divide(10,0)# NonefrommaybeimportMaybe,Somedefdivide(a:int,b:int)->Maybe[int]:ifb==0:returnNonereturnSome(a//b)defplus_one(a:int)->int:returna+1defminus_one(a:int)->Maybe[int]:returnSome(a-1)res1=divide(10,2).map(plus_one)# Some(6)res1=divide(10,2).bind(plus_one)# Some(Some(6))res2=divide(10,2).bind(minus_one)# Some(4)
Package: mayfpayapi
MayfPayApi BETAMayfPayApi is a Python library for interacting with the MayfPay payment system API. It provides methods for retrieving kassa balances, creating and checking invoices.InstallationYou can install MayfPayApi using pip:pipinstallmayfpayapiUsageCreating an instance of the MayfPayApi classapi=MayfPayApi(api_token="your_api_token",kassa_id=your_kassa_id,public_key="your_public_key",secret_key="your_secret_key")Calling the get_kassa_balance methodkassa_balance=api.get_kassa_balance()print(kassa_balance)Calling the create_invoice methodamount=100.0order_id="your_order_id"expire_invoice=3600payment_method="your_payment_method"comment="your_comment"data={"key":"value"}invoice=api.create_invoice(amount,order_id,expire_invoice,payment_method,comment,data)print(invoice)Calling the check_invoice methodorder_id="your_order_id"invoice_status=api.check_invoice(order_id)print(invoice_status)ContributingContributions are welcome! Please feel free to submit a pull request.LicenseMayfPayApi is released under the MIT License. See LICENSE for more information.
Package: mayim
MayimTheNOTORM Python hydratorWhat is Mayim?The simplest way to describe it would be to call it aone-way ORM. That is to say that it doesnotcraft SQL statements for you. Think of it asBYOQ(Bring Your Own Query).Why?I have nothing against ORMs, truthfully. They serve a great purpose and can be the right tool for the job in many situations. I just prefer not to use them where possible. Instead, I would rather have control of my SQL statements.The typical tradeoff though is that there is more work needed to hydrate from SQL queries to objects. Mayim aims to solve that.Getting Startedpip install mayim[postgres]importasynciofromtypingimportListfrommayimimportMayim,PostgresExecutor,sqlfromdataclassesimportdataclass@dataclassclassPerson:name:strclassPersonExecutor(PostgresExecutor):@sql("SELECT * FROM people LIMIT $limit OFFSET $offset")asyncdefselect_all_people(self,limit:int=4,offset:int=0)->List[Person]:...asyncdefrun():executor=PersonExecutor()Mayim(dsn="postgres://...")print(awaitexecutor.select_all_people())asyncio.run(run())DocumentationThe docs:ahopkins.github.io/mayimFramework supportOut of the box, Mayim comes with extensions to support Quart, Sanic, and Starlette applications. Checkout the docs for more info.
Package: maykin-2fa
1Maykin 2FAVersion:1.0.0Source:https://github.com/maykinmedia/maykin-2faKeywords:django, two factor, multi factor auth, mfaAn opinionated integration ofdjango-two-factor-authin the Django admin interface.Contents1Maykin 2FA2Features3Installation, usage and contributing2FeaturesUses upstream django-two-factor-auth package rather than maintaining a forkShips templates in the Django admin login layout for the two-factor authentication flowMulti-factor authentication is enforced for admin users, but…Allows marking certain authentication backends (like Single-Sign-On solutions) as
exempt from this ruleWorks with django-hijack out of the boxDoes not get in the way of using django-two-factor-auth for your public UICommitment to support (at least) maintained Django LTS versions3Installation, usage and contributingPlease see the documentation hosted on Read The Docs.
Package: maykin-django-better-admin-arrayfield
Django better admin ArrayFieldThis is a fork fromgradam/django-better-admin-arrayfieldBetter ArrayField widget for adminSupported Python versions: 3.5, 3.6, 3.7
Supported Django versions: 1.11, 2.0, 2.1, 2.2It changes comma separated widget to list based in admin panel.Before:After:QuickstartInstall Django better admin ArrayField:pip install maykin-django-better-admin-arrayfieldAdd it to your `INSTALLED_APPS`:INSTALLED_APPS=(...'django_better_admin_arrayfield.apps.DjangoBetterAdminArrayfieldConfig',...)Usagedjango_better_admin_arrayfield.models.fields.ArrayFieldis a drop-in replacement for standard DjangoArrayField.Import it like below and use it in your model class definition.fromdjango_better_admin_arrayfield.models.fieldsimportArrayFieldImport DynamicArrayMixin like belowfromdjango_better_admin_arrayfield.admin.mixinsimportDynamicArrayMixinIn your admin class addDynamicArrayMixin:
...classMyModelAdmin(admin.ModelAdmin,DynamicArrayMixin):That's it.Running TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxPre-commit hooksInstall pre-commit black hooksource <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_dev.txt
(myenv) $ pre-commit installCreditshttps://github.com/gradamfor creating the initial packageInspired by:https://stackoverflow.com/a/49370480/4638248Tools used in rendering this
package:Cookiecuttercookiecutter-djangopackageHistory1.0.4 (2019-09-02)Can add item after removing everything from the list1.0.3 (2019-09-02)Can add item after removing everything from the listDo not call static at startup time1.0.2 (2019-04-03)If field is required empty list raises ValidationError on clean.1.0.1 (2019-02-23)Empty list is no longer recognized as changed.1.0.0 (2019-02-21)First release on PyPI.
Package: maykin-django-contrib-comments
Django used to include a comments framework; since Django 1.6 it’s been
separated to a separate project. This is that project.This framework can be used to attach comments to any model, so you can use it
for comments on blog entries, photos, book chapters, or anything else.This is a fork of the official django maintained package. The only difference
is that the object_pk field is actually an IntegerField instead of a TextField
for performance reasons.For details,consult the documentation.History1.8.0 (2017-02-03)Fixed a packaging error which caused sub-packages of the tests to be
distributed.Useget_current_siteto look up the site instead ofsettings.SITE_ID.Confirmed support for Django 1.11.Dropped Django 1.7 and Python 3.2/3.3 support.Added testing for Python 3.5.Updated translations.1.7.3 (2016-09-13)Fixed a regression which prevented theCommentmodel
from registering with the admin.Updated translations.1.7.2 (2016-08-04)get_comment_listnow returns aQuerySetinstead of alist.Fixed a Django 1.9+ compatibility issue with a customized comment app inINSTALLED_APPS(#87).Confirmed support for Django 1.10.1.7.1 (2016-05-03)Isolated abstract models outside of models.py so they can be imported without
triggering Django’s deprecation warning about models living outside of a
‘models’ module.Updated translations.1.7.0 (2016-03-29)Dropped Django 1.6 and Python 2.6 supportImproved usage ofAppConfigfunctionality for custom models.AddedCommentAbstractModelas another abstract model layer for easier
customization.Avoided N+1 query problem for users on comments.Made the moderation email subject translatable.Added a database index toComment.submit_date, since it is used for the
default ordering.Fixed packaging so locale files are distributed.Updated translations.1.6.2 (2016-12-10)Fixed some Django deprecation warnings.Setup translation system using Transifex.Added missing South migration for the email length.Updated translations.1.6.1 (2016-05-08)Fixed migrations not working when installed as an egg.1.6.0 (2016-04-29)MadeCommentSecurityFormpass keyword arguments to its parent class.AddedCOMMENTS_TIMEOUTsetting to configure the timeout forCommentSecurityForm.MigratedComment.user_emailto 254 characters.Moved South migrations tosouth_migrationsfolder so they can exist with
Django 1.7 migrations.Added Django 1.9 compatibility, dropped support for Django 1.5.
Package: maykin-django-two-factor-auth
Version:2.0.4Download:https://pypi.python.org/pypi/maykin-django-two-factor-authSource:https://github.com/maykinmedia/django-two-factor-authKeywords:django, admin, 2fa, two-factorFork of https://github.com/Bouke/django-two-factor-auth/Complete Two-Factor Authentication for Django. Built on top of the one-time
password frameworkdjango-otpand Django’s built-in authentication frameworkdjango.contrib.authfor providing the easiest integration into most Django
projects. Inspired by the user experience of Google’s Two-Step Authentication,
allowing users to authenticate through call, text messages (SMS), by using a
token generator app like Google Authenticator or aYubiKeyhardware token
generator (optional).If you run into problems, please file an issue on GitHub, or contribute to the
project by forking the repository and sending some pull requests. The package
is translated into English, Dutch and other languages. Please contribute your
own language usingTransifex.Test drive this app through the onlineexample app, hosted byHeroku. It
demos most features except the Twilio integration. The example also includesdjango-user-sessionsfor providing Django sessions with a foreign key to the
user. Although the package is optional, it improves account security control
overdjango.contrib.sessions.Compatible with modern Django versions. At the moment of writing that’s
including 2.2, 3.0, and 3.1 on Python 3.5, 3.6, 3.7 and 3.8.
Documentation is available atreadthedocs.org.InstallationRefer to theinstallation instructionsin the documentation.Getting helpFor general questions regarding this package, please hop over toStack Overflow.
If you think there is an issue with this package; check if the
issue is already listed (either open or closed), and file an issue if
it’s not.ContributeSubmit issues to theissue trackeron Github.Fork thesource codeat Github.Write some code and make sure it is covered with unit tests.Send a pull request with your changes.Provide a translation usingTransifex.Running testsThis project aims for full code-coverage, this means that your code should be
well-tested. Also test branches for hardened code. You can run the full test
suite with:make testOr run a specific test with:make test TARGET=tests.tests.TwilioGatewayTestFor Python compatibility,toxis used. You can run the full test suite,
covering all supported Python and Django version with:toxReleasingThe following actions are required to push a new version:Update release notesIf any new translations strings were added, push the new source language toTransifex. Make sure translators have sufficient time to translate those
new strings:make tx-pushAdd migrations:python example/manage.py makemigrations two_factor
git commit two_factor/migrations -m "Added migrations"Update translations:make tx-pullPackage and upload:bumpversion [major|minor|patch]
git push && git push --tags
python setup.py sdist bdist_wheel
twine upload dist/*See AlsoHave a look atdjango-user-sessionsfor Django sessions with a foreign key to
the user. This package is also included in the onlineexample app.LicenseThe project is licensed under the MIT license.
Package: mayloop
An asynchronous i/o library.FeaturesAsynchronous i/o loop to run socket servers.Telnet interface to control the loop, print the stats, etc.UsageThe following code sample creates a simple protocol that just sends back the message it receives and then starts a server that will use the protocol:class Talkback(FixedLengthMessage):
        def messageReceived(self, message):
                self.sendMessage(message)

config = Config()
config.add_service('', 8080, Factory.forProtocol(Talkback))

server = MainLoop(config)
server.start()DownloadPyPI:http://pypi.python.org/pypi/mayloopSource:https://github.com/amol9/mayloop
Package: mayo
The main use of Mayo is being able to download repositories from a URI
that specifies what version control system (VCS) is being used:import mayo

mayo.fetch("git+https://github.com/mwilliamson/mayo.git", "/tmp/mayo")
print open("/tmp/mayo/README.md").read()Mayo can also be used as a script:mayo fetch git+https://github.com/mwilliamson/mayo.git /tmp/mayoSpecific commits can be selected by appending a hash to the URI,
followed by the name of the commit:mayo.fetch("git+https://github.com/mwilliamson/mayo.git#74d69b4", "/tmp/mayo")At the moment, git and hg URIs are supported.
Package: mayonnaise
mayaMultimediaadapter foryoutubeapi which allows to download content from youtube.InstallationExecute the following command to install using pip:pipinstallmayonnaiseTo create conda environment use theenvironment.ymlfile:condaenvcreate-fenvironment.ymlUsageTo download a playlist as a collection ofmp3files run the following command:python-mmayapullhttps://www.youtube.com/playlist?list=PLyLY-SxMUzOgbhkUkru4esCxNUl3-DEtj-oassets/314-a-uTo do the same but download the whole videos (picking the highest quality):python-mmayapullhttps://www.youtube.com/playlist?list=PLyLY-SxMUzOgbhkUkru4esCxNUl3-DEtj-oassets/314-aIf you are not downloading age-restricted videos, then option-a(authentication) can be omitted:python-mmayapullhttps://www.youtube.com/playlist?list=PLyLY-SxMUzOgbhkUkru4esCxNUl3-DEtj-oassets/314
Package: maysics
maysics本库用于科学计算和快速建模maysics主要包括十一个模块：1、calc 封装了常见的算符算子、函数、积分方法，辅助数学运算；2、equa 封装了部分方程求解方法；3、explain 用于评估和解释模型；4、graph 用于图论分析；5、digital 用于数字图像、序列处理;6、models 封装了几种常用的模型、算法以便快速构建数理模型；7、prep 用于数据预处理；8、stats 用于统计分析；9、time 用于处理时间数据；10、trans 封装了常用的坐标转换及其他数学变换；11、utils 是额外工具箱。This package is used for scientific calculating and fast modelingmaysics includes eleven modules:"calc" packaes common operatoes, functions and integration method;"equa" packages some equation solving operation;"explain" is used for estimating and explaining models;"graph" is used for graph theory analysis;"digital" is used for digital image, sequence process;"models" packages several coommon models and algorithms for fast modeling;"prep" is used for data preproccessing;"stats" is uesd for statistical analysis;"time" is used for processing time data;"trans" packages common coordinate transformations and other mathematical transformations;"utils" is extra Utils.
Package: mayya-connect
# requirements_dev.txt we use for the testing
It makes it easier to install and manage dependencies for development and testing, separate from the dependencies required for production.# difference between requirements_dev.txt and requirements.txtrequirements.txt is used to specify the dependencies required to run the production code of a Python project, while requirements_dev.txt is used to specify the dependencies required for development and testing purposes.# tox.ini
We use if for the testing in the python package testing against different version of the python## how tox works tox enviornment creation
1. Install depedencies and packages
2. Run commands
3. Its a combination of the (virtualenvwrapper and makefile)
4. It creates a .tox# pyproject.toml
it is being used for configuration the python project it is a alternative of the setup.cfg file. its containts configuration related to the build system
such as the build tool used package name version author license and dependencies# setup.cfg
In summary, setup.cfg is used by setuptools to configure the packaging and installation of a Python projec# Testing python applicationtypes of testing1. Automated testing
2. Manual testingMode of testing1. Unit testing
2. Integration testsTesting frameworkspytestunittestrobotframeworkseleniumbehavedoctest# check with the code style formatting and syntax(coding standard)pylintflake8(it is best because it containt 3 library pylint pycodestyle mccabe)pycodestyle