Saravanan666/pypi-org huggingface dataset:
Package: mbt
Note:this specs are a draft, might change.Micro Backup ToolMicro Backup Tool (shorted from here withmbt) is a light-weighted,
cross-platform and very simple project for backing-up files.It is made with python to allows portability on different operative system,
and it’s main goal is to make is work done without hand-waving.The project is at very being, so for now the main implementation will be
rude and straight to the objective.Featuresmultiple dirctory trees backupcommon compressionslogs keepingeasy configuration and schedulefiles ignore with regular expressioneasy customizationready to goHow it worksmbtbackup files and directories compressing it in a.tar.gzor.zipfile, setting the starting point equals to the launcher path.
If the directory option is specifiedmbtbackups all the directories
listed in the option, excluding (if not explicitly specified) the
launcher path.If something goes wrong?If something goes wrong the backup processcontinues, but the error
is written on logs (see logs section).
Unbacked-up list
^^^^^^^^^^^^^^^^^^^^^^^^
At the end of every backup a list containing “unbacked” up files is written,
and with the right optionmbtautomatically tries to backup again those
files (see options section). [TODO: define better]LogsHistory logsDuring the backup process logs are keeped and if something fails it
will be written on logs.
Error logs
^^^^^^^^^^^^^^^
If something goes wrong while backing up, the process continues but the
error log file will be written with error details.GuideInstallationComing soon…UsageDefine your own .mbtignore if needed to include or exclude certain files or
directories based on their names.Coming soon…
Package: mbtask
mbtaskDocumentationdocspypiDevelopmenthow install project for development.Typicaly:pip install -e .[dev]Available climake proj-docmake testmake test-pypito test deploy to testpypimake log- insert fragmet name to store new about projectmake ipythonrun interactive terminalmake checkcheck flake8 and mypyAvailable fragmet naming:.feature: Signifying a new feature..bugfix: Signifying a bug fix..doc: Signifying a documentation improvement..removal: Signifying a deprecation or removal of public API..misc: A ticket has been closed, but it is not of interest to users.make draft- to check changelog output before release.make release- to bump version, build changelog, commit, push tags and changes.* for version management are usedincrementalandtowncrierfor changelog
Package: mbtest
mbtestOpinionated Python wrapper & utils for theMountebankover the wire test double tool.Includespytestfixture andPyHamcrestmatchers.SetupInstall with pip:pip install mbtest(As usual, use of avenvorvirtualenvis recommended.) Also requiresMountebankto have been installed:npm install mountebank@2.8 --omit=dev(Alternatively, you can attach to an instance of Mountebank running elsewhere, perhapsin docker.)Basic exampleimportrequestsfromhamcrestimportassert_thatfrombrunns.matchers.responseimportis_responsefrommbtest.matchersimporthad_requestfrommbtest.impostersimportImposter,Predicate,Response,Stubdeftest_request_to_mock_server(mock_server):# Set up mock server with required behaviorimposter=Imposter(Stub(Predicate(path="/test"),Response(body="sausages")))withmock_server(imposter):# Make request to mock server - exercise code under test hereresponse=requests.get(f"{imposter.url}/test")assert_that("We got the expected response",response,is_response().with_status_code(200).and_body("sausages"))assert_that("The mock server recorded the request",imposter,had_request().with_path("/test").and_method("GET"))Needs apytest fixture, most easily defined inconftest.py:importpytestfrommbtestimportserver@pytest.fixture(scope="session")defmock_server(request):returnserver.mock_server(request)This will take care of starting and stopping the Mountebank server for you. Examples of more complex predicates can be
found in theintegration tests.See theDocumentationfor more.ContributingRequiresmakeandtox.PyEnvmay also come in handy so tests can be run against various Python versions.Integration tests run against an instance of Mountebank running in Docker.Currently, theMakefiletargets use Python 3.8 and 3.11 via tox, so a quick-start setup could be:brewinstallpyenvcolimadockerversions=(3.73.11)forvin"${versions[@]}";dopyenvinstall$v-s;donepyenvlocal3.113.7
pipinstalltoxtox-pyenv
colimastartIn order to runmake test, you'll also need to have Mountebank installed locally:npminstallmountebank@2.6--production(mbtestis tested against Mountebank versions back as far as 1.16, but obviously only features supported by the Mountebank version you're using will work.)After that, you should be ready to roll; runningmake testwill let you know if your setup is correct.Runningmake precommittells you if you're OK to commit. For more options, run:make helpReleasingRequireshub,setuptools,wheelandtwine. To release versionn.n.n, first
update the version number insetup.py, then:version="n.n.n"# Needs to match new version number in setup.py.gitcheckout-b"release-$version"makeprecommit&&gitcommit-am"Release$version"&&gitpush--set-upstreamorigin"release-$version"# If not already all pushed, which it should be.hubreleasecreate"V$version"-t"release-$version"-m"Version$version"pythonsetup.pysdistbdist_wheel&&twineuploaddist/*$version*
gitcheckoutmaster&&gitmerge"release-$version"gitpush
Package: mbtr
Multivariate Boosted TReeWhat is MBTRMBTR is a python package for multivariate boosted tree regressors trained in parameter space.
The package can handle arbitrary multivariate losses, as long as their gradient and Hessian are known.
Gradient boosted trees are competition-winning, general-purpose, non-parametric regressors, which exploit sequential model fitting and gradient descent to minimize a specific loss function. The most popular implementations are tailored to univariate regression and classification tasks, precluding the possibility of capturing multivariate target cross-correlations and applying conditional penalties to the predictions. This package allows to arbitrarily regularize the predictions, so that properties like smoothness, consistency and functional relations can be
enforced.Installationpipinstall--upgradegit+https://github.com/supsi-dacd-isaac/mbtr.gitUsageMBT regressor follows the scikit-learn syntax for regressors. Creating a default instance and training it is as simple as:m=MBT().fit(x,y)while predictions for the test set are obtained throughy_hat=m.predict(x_te)The most important parameters are the number of boostsn_boost, that is, the number of fitted trees,learning_rateand theloss_type. An extensive explanation of the different parameters can be found in the documentation.DocumentationDocumentation and examples on the usage can be found atdocs.ReferenceIf you make use of this software for your work, we would appreciate it if you would cite us:Lorenzo Nespoli and Vasco Medici (2020).
Multivariate Boosted Trees and Applications to Forecasting and ControlarXiv@article{nespoli2020multivariate,
  title={Multivariate Boosted Trees and Applications to Forecasting and Control},
  author={Nespoli, Lorenzo and Medici, Vasco},
  journal={arXiv preprint arXiv:2003.03835},
  year={2020}
}AcknowledgmentsThe authors would like to thank the Swiss Federal Office of Energy (SFOE) and the
Swiss Competence Center for Energy Research - Future Swiss Electrical Infrastructure (SCCER-FURIES),
for their financial and technical support to this research work.
Package: mbtrack2
mbtrack2mbtrack2 is a coherent object-oriented framework written in python to work on collective effects in synchrotrons.mbtrack2 is composed of different modules allowing to easily write scripts for single bunch or multi-bunch tracking using MPI parallelization in a transparent way. The base of the tracking model of mbtrack2 is inspired by mbtrack, a C multi-bunch tracking code initially developed at SOLEIL.InstallationUsing pipRun:pip install mbtrack2To test your installation run:from mbtrack2 import *Using condaClone the mbtrack2 repo and enter the repo:git clone https://gitlab.synchrotron-soleil.fr/PA/collective-effects/mbtrack2.git
cd mbtrack2To create a new conda environment for mbtrack2 run:conda env create -f mbtrack2.yml
conda activate mbtrack2Or to update your current conda environment to be able to run mbtrack2:conda env update --file mbtrack2.ymlTo test your installation run:from mbtrack2 import *ExamplesJupyter notebooks demonstrating mbtrack2 features are available in the example folder and can be opened online using google colab:mbtrack2 base featuresdealing with RF cavities and longitudinal beam dynamicscollective effectsbunch by bunch feedbackRF loops and feedbacksReferencesA. Gamelin, W. Foosang, and R. Nagaoka, “mbtrack2, a Collective Effect Library in Python”, presented at the 12th Int. Particle Accelerator Conf. (IPAC'21), Campinas, Brazil, May 2021, paper MOPAB070.Yamamoto, Naoto, Alexis Gamelin, and Ryutaro Nagaoka. "Investigation of Longitudinal Beam Dynamics With Harmonic Cavities by Using the Code Mbtrack." Proc. 10th International Partile Accelerator Conference (IPAC’19), Melbourne, Australia, 19-24 May 2019. 2019.
Package: mbufferio
A convenient class to manipulate buffer objects as streams in Python.Historyv0.5.8expose utility function “murmur128”v0.5.7expose utility functions “make_utf8, make_unicode, umurmur128”v0.5.6fix: memoryview(MBufferIO()) used to raise BufferErrorv0.5.5fix: simple MBUfferIO() raised a TypeErrorv0.5.3, v0.5.4Allow to make MBufferIO objects from memory views that have been built by PyMemoryView_FromMemory() or PyMemoryView_FromBuffer().v0.5.2Added a “from_mview” class method.v0.5.1Removed the oldbuffer method, for compatibility with Python 3.v0.5First release on github.
Package: mbuild
mBuild: A hierarchical, component based molecule builderWith just a few lines of mBuild code, you can assemble reusable components into
complex molecular systems for molecular dynamics simulations. mBuild is
designed to minimize or even eliminate the need to explicitly translate and
orient components when building systems: you simply tell it to connect two
pieces! mBuild also keeps track of the system’s topology so you don’t have to
worry about manually defining bonds when constructing chemically bonded
structures from smaller components.
Package: mbus
A Python library for M-BusThis is an early python 2.7 implementation that we are planning on
open sourcing and convert to python 3. We didn’t make the heaviest effort the
first time since the use case was very limited.Now we plan on:Making a better client implementation with cleaner API.Adding support for communication over serial and transparent M-Bus over TCP.More general M-Bus approach.Smarter parsing of messages.OBIS conversionChangelog
Package: mbus-gem-decoder
mbusgemdecoder packageDecode MBUS-GEM register data into human-readable JSON.IntroductionThe goal ofmbusgemdecoderpackage is to convert a list of ten integer values into human-readable data object.mbusgemdecoderpackage automatically detects the type (MBUS-GEM gateway,METER,METER VALUE) of the register(s) and parses the data accordingly.However,mbusgemdecoderpackage is only for data conversion. Use, for example,pyModbusTCPto obtain data to convert withmbusgemdecoder.
Package: mbuslite
mbusliteprovides a message bus implementation embedded within the application’s process.With it, you can loosely couple your application components. It implements the publish-subscribe
pattern.MotivationHaving worked with crossbar and autobahn, as well as DBus, I like the message bus pattern. I’ve
wanted to use it in some projects to achieve the same loose coupling between internal components.Having also worked wih sqlite, I like the simplicity of a library instead of a remote service.Thus,mbuslite.InstallationpipinstallmbusliteUsageTo get started, importmbuslite.Busand start calling.subscribe()and.publish().frommbusliteimportBusclassProducer:defannounce(self):Bus.publish('topic.name','Hello, consumers!')classConsumer:def__init__(self):Bus.subscribe('topic.name',self.on_message)defon_message(self,msg):print(msg)consumer1=Consumer()consumer2=Consumer()consumer3=Consumer()producer=Producer()producer.announce()Hello, consumers!
Hello, consumers!
Hello, consumers!Publishers and subscribers must agree upon a call signature as the arguments are passed as-is by
mbuslite.defhandler(one,two,three,four):passBus.subscribe('foo',handler)Bus.publish('foo',1,2,three=3,four=4)See more inexamples/.Loggingmbuslitemakes use of the pythonloggingmodule. To manipulate mbuslite’s logging behavior,
uselogging.getLogger('mbuslite')or importmbusliteand manipulatembuslite.logger.
For example, you can set that logger’s level to info or debug to get additional information about
what mbuslite is doing.Note that mbuslite does not configure theloggingmodule, so unless your application does, logs
from mbuslite will not be written anywhere, even those that match the default level ofWARNING.
You are encouraged to at least calllogging.basicConfig()to ensure you see warning messages
from mbuslite. For example, unhandled exceptions from handlers you subscribe to topics are logged
as warnings and will not be available if you never configure logging.LinksPyPI:https://pypi.org/project/mbusliteSource:https://gitlab.com/francisferrell/mbusliteAPI Docs:https://francisferrell.gitlab.io/mbuslite
Package: mbutil
# MBUtilMBUtil is a utility for importing and exporting the [MBTiles](http://mbtiles.org/) format,typically created with [Mapbox](http://mapbox.com/) [TileMill](http://mapbox.com/tilemill/).Before exporting tiles to disk, see if there's a [Mapbox Hosting plan](http://mapbox.com/plans/)or an open source [MBTiles server implementation](https://github.com/mapbox/mbtiles-spec/wiki/Implementations)that works for you - tiles on disk are notoriously difficult to manage.[![Build Status](https://secure.travis-ci.org/mapbox/mbutil.png)](http://travis-ci.org/mapbox/mbutil)## InstallationGit checkout (requires git)git clone git://github.com/mapbox/mbutil.gitcd mbutil# get usage./mb-util -hThen to install the mb-util command globally:sudo python setup.py install# then you can run:mb-utilPython installation (requires easy_install)easy_install mbutilmb-util -h## Usage$ mb-util -hUsage: mb-util [options] input outputExamples:Export an mbtiles file to a directory of files:$ mb-util world.mbtiles tiles # tiles must not already existImport a directory of tiles into an mbtiles file:$ mb-util tiles world.mbtiles # mbtiles file must not already existOptions:-h, --help            Show this help message and exit--scheme=SCHEME       Tiling scheme of the tiles. Default is "xyz" (z/x/y),other options are "tms" which is also z/x/ybut uses a flipped y coordinate, and "wms" which replicatesthe MapServer WMS TileCache directory structure "z/000/000/x/000/000/y.png"''',--image_format=FORMATThe format of the image tiles, either png, jpg, webp or pbf--grid_callback=CALLBACKOption to control JSONP callback for UTFGrid tiles. Ifgrids are not used as JSONP, you canremove callbacks specifying --grid_callback=""--do_compression      Do mbtiles compression--silent              Dictate whether the operations should run silentlExport an `mbtiles` file to files on the filesystem:mb-util World_Light.mbtiles adirectoryImport a directory into a `mbtiles` filemb-util directory World_Light.mbtiles## Requirements* Python `>= 2.6`## MetadataMBUtil imports and exports metadata as JSON, in the root of the tile directory, as a file named `metadata.json`.```javascript{"name": "World Light","description": "A Test Metadata","version": "3"}```## TestingThis project uses [nosetests](http://readthedocs.org/docs/nose/en/latest/) for testing. Install nosetests:pip install noseoreasy_install noseThen run:nosetests## See Also* [node-mbtiles provides mbpipe](https://github.com/mapbox/node-mbtiles/wiki/Post-processing-MBTiles-with-MBPipe), a useful utility.* [mbliberator](https://github.com/calvinmetcalf/mbliberator) a similar program but in node.## LicenseBSD - see LICENSE.md## Authors- Tom MacWright (tmcw)- Dane Springmeyer (springmeyer)- Mathieu Leplatre (leplatrem)
Package: mbx
Welcome to MBX, a mailbox scanner.MBX can be used to scan a unix mailbox and make it searchable.MBX is placed in the Public Domain and has no COPYRIGHT and no LICENSE.INSTALLMBX can be found on pypi, seehttp://pypi.org/project/mbxinstallation is through pypi:$ sudo pip3 install mbx --upgrade --force-reinstallUSAGEexamples:$ mbx cmd
cmd,find,scan,ver

$ mbx scan ~/Desktop/25-1-2013
reading from /home/bart/Desktop/25-1-2013
ok 6892

$ mbx find From==pvp- Subject -t
0 Subject=RE: afspraak donderdag 11y41d
1 Subject=RE: FW: verzoek afspraak gesprek 11y90d
2 Subject=RE: afspraak Pjotr K en Henk O 11y85d
3 Subject=RE: afspraak donderdag 11y42d
4 Subject=RE: goede morgen 11y85d
5 Subject=FW: verzoek afspraak gesprek 11y90d
6 Subject=RE: Annemiek en afspraak Henk O 11y88d
7 Subject=RE: afspraak donderdag 11y41d
8 Subject=brief 11y215d
9 Subject=RE: De gevaren van de FACT methodiek 8y232d
10 Subject=Automatisch antwoord: Weer vergiftiging opgelopen bij de GGZ 9y103d
11 Subject=RE: Weer vergiftiging opgelopen bij de GGZ 9y101d
12 Subject=RE: Hulp 9y192d
13 Subject=Automatisch antwoord: Brief aan de GGZ-NHN 8y228d
14 Subject=Re: Klacht over het negeren van een signaal en het niet opbouwen van vertrouwen bij de client 9y1d

$ mbx ver
MBX 1CONTACTBart Thate (bthate67@gmail.com)botfather on #dunkbots irc.freenode.net
Package: mbzero
mbzero: simple python bindings for Musicbrainzmbzero is a simple library to provide bindings to the musicbrainz ws/2 API.LicenseThe license is BSD-2 to give the maximum permission for hacking and sharing.However, if one day we have a license that forbids AI exploration in commercial
use such as copilot, I may change the license.RequirementsThis requirespython3,python-request,python-requests-oauthlibManual build/installationManual build and install requirespython-buildandpython-installerYou can build the library usingpython -m buildand install withpython -m installer --dest=<destination>orpython -m installer --prefix=<prefix>.ContributeFeel free to fork or contribute onhttps://gitlab.com/Louson/python-mbzero. Issues and PR are welcome as much as
much I can support them.I am not a good python developper. If you think it can be placed in better
hands, please ask.TestTest the library withpytest -vAuthorsmbzero is byLouis Rannou
Package: mc10-tools
mc10-toolsThis is a simple collection of tools to assist with developing software for
theTRS-80 Microcolor Computer MC-10.Installationgit clone https://github.com/jamieleecho/mc10-tools.git
cd mc10-tools
python3 setup.pyToolsc10tobasUsage: c10tobas [OPTIONS] INPUT_FILE OUTPUT_FILE

  Extract and detokenizes the *.bas file in INPUT_FILE and stores it in
  OUTPUT_FILE

Options:
  --version  Show the version and exit.
  --help  Show this message and exit.bastoc10Usage: bastoc10 [OPTIONS] INPUT_FILE OUTPUT_FILE

  Tokenizes the given *.bas file specified byt INPUT_FILE, outputing the
  result into a *.c10 file specified by OUTPUT_FILE.

Options:
  --version  Show the version and exit.
  --help  Show this message and exit.Developing and Testing# Build the docker image
docker-compose build test

# Run tests using the source on the docker image
docker-compose run test

# Run tests using the source on the host computer
docker-compose run testv

# Run a shell using the source on the docker image
docker-compose run bash

# Run a shell using the source on the host computer
docker-compose run bashv
Package: mc2p-django
MyChoice2Pay DjangoOverviewMyChoice2Pay Django provides integration access to the MyChoice2Pay API through django framework.RequirementsDjangoMyChoice2Pay PythonInstallationInstall usingpip...pip install mc2p-djangoAdd'django_mc2p'to yourINSTALLED_APPSsetting.INSTALLED_APPS = (
    ...
    'django_mc2p',
    ...
)Add django_mc2p urls:urlpatterns = patterns('',
    ...
    url(r'^mc2p/', include('django_mc2p.urls'))
    ...
)ConfigurationAfter execute migrations you must define KEY and SECRET KEY in administration site, section MyChoice2Pay Configuration.You can obtain KEY and SECRET KEY fromMyChoice2Paysite.Quick ExampleBasic transaction# Sending user to pay
from django_mc2p import MC2PClient

mc2p = MC2PClient()
transaction = mc2p.Transaction({
    "currency": "EUR",
    "order_id": "order id",
    "products": [{
        "amount": 1,
        "product": {
            "name": "Product",
            "price": 50
        }
    }],
    "notify_url": "https://www.example.com" + reverse('mc2p-notify'),
    "return_url": "https://www.example.com/your-return-url/",
    "cancel_return": "https://www.example.com/your-cancel-url/"
})
transaction.save()
transaction.pay_url # Send user to this url to pay

# After user pay a notification will be sent to notify_url
from django_mc2p.constants import MC2P_PAYMENT_DONE
from django_mc2p.signals import notification_received

def check_payment(sender, **kwargs):
    notification_data = sender
    if notification_data.type == MC2P_TYPE_TRANSACTION and notification_data.status == MC2P_PAYMENT_DONE:
        transaction = notification_data.transaction
        sale = notification_data.sale
        order_id = notification_data.order_id
        # Use transaction, sale and order_id to check all the data and confirm the payment in your system
notification_received.connect(check_payment)Basic subscription# Sending user to pay a subscription
from django_mc2p import MC2PClient

mc2p = MC2PClient()
subscription = mc2p.Subscription({
    "currency": "EUR",
    "order_id": "order id",
    "plan": {
        "name": "Plan",
        "price": 5,
        "duration": 1,
        "unit": "M",
        "recurring": true
    },
    "notify_url": "https://www.example.com" + reverse('mc2p-notify'),
    "return_url": "https://www.example.com/your-return-url/",
    "cancel_return": "https://www.example.com/your-cancel-url/"
})
subscription.save()
subscription.pay_url # Send user to this url to pay

# After user pay a notification will be sent to notify_url
from django_mc2p.constants import MC2P_PAYMENT_DONE
from django_mc2p.signals import notification_received

def check_payment(sender, **kwargs):
    notification_data = sender
    if notification_data.type == MC2P_TYPE_SUBSCRIPTION and notification_data.status == MC2P_PAYMENT_DONE:
        subscription = notification_data.subscription
        sale = notification_data.sale
        order_id = notification_data.order_id
        # Use subscription, sale and order_id to check all the data and confirm the payment in your system
notification_received.connect(check_payment)