Saravanan666/pypi-org huggingface dataset:
Package: mavometer
MavometerMavometeris a PyQt GUI to display MAVLink Connection Information and
Statistics.It can operate on a live connection (e.g. the stream mirrored byMission Planner) or it can read a file.It provides connection-level information, such as protocol version, and
message information, such as data rate by message type.It is not a protocol analyzer - it does not display individual message
contents. It is not a ground station - it does not read or display telemetry
values from MAVLink messages.It is written in python, and should run on any OS that supports PyQt5
and pymavlink.Getting StartedPrerequisitespymavlink- MAVLink protocol implementationPyQt5- Mavometer is based on the Qt version 5 frameworkUQtie- utility package for PyQt5 usageTheMavometerdistribution package does not namePyQt5as a dependency
because you may have already installed it in some custom way, and
you don't want theMavometerinstallation process to create a redundantPyQt5installation.If you don't already have it, you can installPyQt5by doing this:pip3installpyqt5pymavlinkanduqtiecan be installed in the same way:pip3installpymvalink
pip3installuqtieBe aware that the appropriate installation procedure for a package can
vary depending on your OS and other factors.Installing MavometerInstall the package:pip3installmavometerOr clone from GitHub:gitclonehttps://github.com/langrind/mavometer.gitand then run the setup script:python3setup.pyRun MavometerSay you have a Pixhawk connected to a USB port on your Linux machine:$ mavometer --mavlink-port /dev/ttyACM0Or you have a log file produced by QGroundControl:$ mavometer --mavlink-port '/home/langrind/Documents/QGroundControl/Telemetry/2019-11-19 20-38-03.tlog'For (a little) more info,RTFD.Tests$ mavometer --mavlink-port test/test.tlogNOTE:timestamping is not supported yet for replaying from files, so bandwidth and frequency
displays are garbage in this case.DeploymentTBS: details about usage in different OS environmentsContributingThis project isad hocin nature, so I don't foresee contributions. Nevertheless,
feel free to make a pull request.VersioningVersions are assigned in accordance withSemantic Versioning.
For the versions available, see thetags on this repository.AuthorsNik Langrind-Sole authorLicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsAcknowledgmentsI used thePurpleBoothREADME templateThepymavlinktools/mavsummarize.pyprogram performs a
similar function toMavometer.
Package: mavprint
mavprintPrint mavlink messages to consoleQuickstartpip install mavprint
mavprint --port /dev/ttyACM1 showExamples# show all messages except BAD_DATA
$ mavprint show --exclude BAD_DATA

# show number of messages of each type captured while running
$ mavprint unique
^C
{   'ACTUATOR_CONTROL_TARGET': 34,
    'ALTITUDE': 11,
    'ATTITUDE': 56,
    'ATTITUDE_QUATERNION': 57,
    'ATTITUDE_TARGET': 10,
    'BAD_DATA': 4,
    'BATTERY_STATUS': 1,
    'ESTIMATOR_STATUS': 6,
    'EXTENDED_SYS_STATE': 3,
    'HEARTBEAT': 2,
    'HIGHRES_IMU': 57,
    'LOCAL_POSITION_NED': 35,
    'PING': 2,
    'SCALED_IMU': 29,
    'SCALED_IMU2': 29,
    'SERVO_OUTPUT_RAW': 22,
    'SYS_STATUS': 2,
    'TIMESYNC': 12,
    'VFR_HUD': 22,
    'VIBRATION': 3}
Package: mavsniff
mavsniffCapture and replay MAVLink packets from your drone or GCS.You can read from a serial line (ttyS0/COMx) or from network (TCP). Mavsniff stores packets in pcapng format
so you can analyse them with Wireshark.Instalation$ pip install mavsniffMavsniff is distributed via PYPI and an entrypointmavsniffshould be available in your$PATHafter installation.Usage$mavsniffcapture--device/dev/ttyS0--filerecording.pcapng
$mavsniffreplay--filerecording.pcapng--devicesocket://localhost:5467Available device urls:-d /dev/ttyS0- standard serial port on UNIX systems-d COMx- e.g. COM1 or COM4 - standard serial ports on Windows systems-d socket://<host>:<port>- receive packets via TCP (only forcapturecommand)currently, there is no option how tosendMAVLink packets over the network.Consult more device urls onpyserial documenation page.CaviatsWhen using aloop://device please note that there is a finite buffer size (usually 4096 bytes). Do not
send larger files there withou reading from the buffer in parallel.
Package: mawaqit
MAWAQIT Python Library‏السلام عليكم ورحمة الله وبركاتهThis is the official Python library to access theMAWAQITAPI.InstallationTo use this Python library, you can install it via pip:pipinstallmawaqitUsageSynchroneous versionTODO : Not made yet.Asynchroneous versionHere's a simple example (with asyncio) on how to use this library.
You can check theasync_example.pyfile to copy this code.importasynciofrommawaqitimportAsyncMawaqitClientasyncdefmain():# Initialize the Mawaqit client:# You can pass the username and password as parameters,# or directly your valid MAWAQIT API token# You can also pass your location (latitude and longitude) as parameters to get the nearest mosquesclient=AsyncMawaqitClient(username=USERNAME,password=PASSWORD,longitude=LONGITUDE,latitude=LATITUDE)# Get your API tokenapi_token=awaitclient.get_api_token()# Get information of the 5 nearest mosques around the given position (long, lat)mosques=awaitclient.all_mosques_neighborhood()# Set the mosque to useclient.mosque=mosques[0]['uuid']# Fetch the prayer times from client.mosqueprint(client.fetch_prayer_times())awaitclient.close()if__name__=="__main__":asyncio.run(main())ExceptionsNotAuthenticatedException: Raised when authentication fails.BadCredentialsException: Raised when login credentials are incorrect.NoMosqueAround: Raised when no mosques are found around the specified location.MissingCredentials: Raised when required credentials are not provided.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.ContributingIf you want to contribute to this project, feel free toforkit and submit a pull request.You can also open anissueif you find any bug or have any suggestion.QuestionsIf you have any question, feel free to contact us atsupport@mawaqit.net.May Allah reward you!
Package: mawk
μ-awkThis is a tiny Python implementation of a line processor with Awk-like semantics. You write a set of regex-based rules. The program loops through the lines of some input file, running the matching functions on lines that match.This package is too small by any margin to qualify for the status of "package", but I keep finding myself copy-pasting this code,making small improvements every time otherwise.InstallIt is considered best practice to use a virtual environment. I recommend usingpoetry. If you do use Poetry, you can add it to your project by running:poetry add mawkOtherwise, usingpip:pip install mawkTutorialA μ-awk routine is a set of methods that are triggered on regexes. The routine will recieve there.Matchobject and is expected to return one of three things:None: ignore that I was ever called, continue to find another rule[]: the rule completed successfully, but didn't generate any output["any", "number of", "strings"]: replace the given input line with these linesSuppose we want to create an outline from a Markdown document, we may filter on lines starting with a#character.
You then write a class that derives frommawk.RuleSetand decorate its methods withmawk.on_match.fromdataclassesimportdataclassimportmawkimportre@dataclassclassOutliner(mawk.RuleSet):ignore:bool=False@mawk.on_match(r"^#.*$")defon_header(self,m:re.Match):ifself.ignore:returnreturn[m[0]]@mawk.on_match(r"^```")defon_codeblock(self,_):self.ignore=notself.ignorereturn[]@mawk.alwaysdefotherwise(self,_):return[]if__name__=="__main__":withopen("README.md","r")asf:print(Outliner().run(f.read()))This will output:# μ-awk
## Install
## Tutorial
## LicenseNote that we had to ignore the content of code-blocks, so that the expected output above isn't included in the real output.Themawk.alwaysdecorator always matches; the passed argument is therefore astrnotre.Match. Rules are matched in order of definition; by default only the first match is used.LicenseCopyright 2023, the Netherlands eScience Center.
This package is distributed under the Apache 2 License, see LICENSE.
Package: max30105
MAX30105 - Heart Rate, Oximeter, Smoke SensorThe MAX30105 is an precision optical sensor that can be used to measure heart rate, pulse oximetry (SPO2 / blood oxygen saturation), and smoke (and other particles).InstallingStable library from PyPi:Just runsudo pip install max30105Latest/development library from GitHub:git clone https://github.com/pimoroni/max30105-pythoncd max30105-pythonsudo ./install.shImportant!This code should not be used for medical diagnosis, as the basis for a real smoke or fire detector, or in life-critical situations. It's for fun/novelty use only, so bear that in mind while using it.Changelog0.0.5Bugfix: fix off-by-one error in sample average bitmask0.0.4Bugfix: fix timeout bug in get_temperature(), requires i2cdevice>=0.0.70.0.3Bugfix: support 0 init value of MODE_CONFIG register0.0.2Port to i2cdevice>=0.0.6 set/get API0.0.1Initial Release
Package: max7219-driver
For more information, see theGitHub Repository.MAX7219 Sample DriveThis repository contains the code required to drive a max7219 8x8 LED matrix using a Raspberry Pi (withspidev).The code written is extremely rigid and should not be used in any form of production applications.Pypi LinkPyPi Package LinkInstallationpip install max7219-driverConnectionsThe following are the table lists the connetionLEDPhysical Pin (Raspberry Pi)DIN19CLK23CS24Driving the led matrixYou can either modiy thetest.pyfile, or paste themax7219folder into your project directory.The following are the methods available.bootstrap()- Initialize the matrix to display fonts.CLEAR_DISPLAY()- Clears the entire display.setBitmap(bitMap)- Display the providedbitMap. (Can be used to display special characters or symbols)show(string, delay = 0)- Display the given string with a word delay of thedelay.close()- Closes thespiconnection
Package: max7219LED
For more information, see theGitHub Repository.MAX7219 Sample DriveThis repository contains the code required to drive a max7219 8x8 LED matrix using a Raspberry Pi (withspidev).The code written is extremely rigid and should not be used in any form of production applications.Pypi LinkPyPi Package LinkInstallationpip install max7219-driverConnectionsThe following are the table lists the connetionLEDPhysical Pin (Raspberry Pi)DIN19CLK23CS24Driving the led matrixYou can either modiy thetest.pyfile, or paste themax7219folder into your project directory.The following are the methods available.bootstrap()- Initialize the matrix to display fonts.CLEAR_DISPLAY()- Clears the entire display.setBitmap(bitMap)- Display the providedbitMap. (Can be used to display special characters or symbols)show(string, delay = 0)- Display the given string with a word delay of thedelay.close()- Closes thespiconnection
Package: max7219LEDMATRIX
For more information, see theGitHub Repository.MAX7219 Sample DriveThis repository contains the code required to drive a max7219 8x8 LED matrix using a Raspberry Pi (withspidev).The code written is extremely rigid and should not be used in any form of production applications.ConnectionsThe following are the table lists the connetionLEDPhysical Pin (Raspberry Pi)DIN19CLK23CS24Driving the led matrixYou can either modiy thetest.pyfile, or paste themax7219folder into your project directory.The following are the methods available.bootstrap()- Initialize the matrix to display fonts.CLEAR_DISPLAY()- Clears the entire display.setBitmap(bitMap)- Display the providedbitMap. (Can be used to display special characters or symbols)show(string, delay = 0)- Display the given string with a word delay of thedelay.close()- Closes thespiconnection
Package: max7301
max7301==========A python library to control a MAX7301.It uses spidev to talk to the chip.# Installation on Raspberry Pi1. sudo pip install max73012. sudo py-max7301-rpi-spi-setup3. reboot4. PROFIT# Example```import max7301import timedevice = max7301.MAX7301()device.set_pin_as_output(30)device.set_pin_as_input(31, pullup = False)while 1:device.set_pin(30, 1)time.sleep(0.1)print "Pin 31 =", device.get_pin(31)device.set_pin(30, 0)time.sleep(0.1)print "Pin 31 =", device.get_pin(31)```
Package: maxconsole
MaxConsole v0.5.1PurposeMaxConsole instantiates a singleton class that wraps the console provided by the awesomerichlibrary. It provides a simple interface for printing to the console, and is intended to be used as a global console object. It also has customized theme to allow for more variety of generic colors.InstallationMaxConsole is available on PyPI and can be installed with either pip, pdm, or your favorite package manager.PippipinstallmaxconsolePDMpdmaddmaxconsoleUsagefrommaxconsoleimportMaxConsoleconsole=MaxConsole()# It's that easy.MIT LicenseCopyright (c) 2021 Max well Owen LuddenPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: max-contrast
max-contrastLibrary which replicates the Paint.net contrast & brightness functionality in Python, allowing you to increase the contrast of an image until it turns B&W.Usagefrommax_contrastimportcontrast_image# contrast_image(image_path, brightness, contrast, save_path=False, show=False)contrast_image("./example.png",0,100,"./example-contrasted.png")Example (Contrasting 100, Brightness 0)Example (Contrasting -100, Brightness 0)CreditsInspiration for the code has been taken from OpenPND:https://github.com/rivy/OpenPDN
Package: maxcord.py
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.Key FeaturesModern Pythonic API usingasyncandawait.Proper rate limit handling.100% coverage of the supported Discord API.Optimised in both speed and memory.InstallingPython 3.5.3 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Udiscord.py# Windowspy-3-mpipinstall-Udiscord.pyOtherwise to get voice support you should run the following command:# Linux/macOSpython3-mpipinstall-U"discord.py[voice]"# Windowspy-3-mpipinstall-Udiscord.py[voice]To install the development version, do the following:$gitclonehttps://github.com/Rapptz/discord.py$cddiscord.py$python3-mpipinstall-U.[voice]Optional PackagesPyNaCl (for voice support)Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g.apt,dnf, etc) before running the above commands:libffi-dev (orlibffi-develon some systems)python-dev (e.g.python3.6-devfor Python 3.6)Quick ExampleimportdiscordclassMyClient(discord.Client):asyncdefon_ready(self):print('Logged on as',self.user)asyncdefon_message(self,message):# don't respond to ourselvesifmessage.author==self.user:returnifmessage.content=='ping':awaitmessage.channel.send('pong')client=MyClient()client.run('token')Bot Exampleimportdiscordfromdiscord.extimportcommandsbot=commands.Bot(command_prefix='>')@bot.command()asyncdefping(ctx):awaitctx.send('pong')bot.run('token')You can find more examples in the examples directory.LinksDocumentationOfficial Discord ServerDiscord API
Package: maxcube-api
eQ-3/ELV MAX! Cube Python APIA python api to control the Max! Cube thermostats:get basic info about the cube itselfget info about the max thermostats connected to the cube (mode, temperatures …)Basic usage:frommaxcube.cubeimportMaxCubecube=MaxCube('192.168.0.20')fordeviceincube.devices:print(device.name)print(device.actual_temperature)This api was build for the integration of the Max! thermostats intoHome Assistantand
mostly only covers the functions needed for the integration.It does also include functions needed to save and restore thermostat programmes.  For example:# dump programmes (and other data) to a JSON filepython3prog.pydump--host=192.168.0.11>backup.json# load programmes (not other data!) from a JSON filepython3prog.pyload--host=192.168.0.11<backup.jsonRunning testspython3-munittestdiscovertests/AcknowledgementsThanks to:https://github.com/Bouni/max-cube-protocolhttps://github.com/ercpe/pymaxhttps://github.com/aleszoulek/maxcubeopenhab integration
Package: maxcube-mqtt
Copyright (c) 2015 David ÜbelackerPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.Description: eQ-3/ELV MAX! Cube MQTT=============================Control your eQ-3/ELV MAX! Cube with MQTTInstallation:-------------------pip install maxcube-mqttConfiguration:-------------------Needs a json configuration file as follows (don't forget to change ip's and credentials ;-)):.. code:: json{"cube_host": "192.168.0.20","cube_port": "62910","mqtt_client_id": "maxcube","mqtt_host": "192.168.0.210","mqtt_port": "1883","mqtt_user": "user","mqtt_password": "xxx","mqtt_topic_prefix": "halti"}Start:-------------------maxcube-mqtt config.jsonPlatform: UNKNOWN
Package: maxcul
# About MaxCul for PythonThis Module is forked from this Projecthttps://github.com/jokey2k/MoritzServer.
It can communicate over a serial connection and a cul stick with MAX! Devices build by eQ-3http://www.eq-3.de/produkte/max.html.The CUL (or CC1101 USB Lite) is a USB Stick, which sends and receive Packages in the 868Mhz frequency.
The FHEM community developed a open firmeware for the stick and so the MAX! protocol ist only one of many protocols you can use with this stick.
I build my own stick with this instruction:https://wiki.fhem.de/wiki/Selbstbau_CULBut you can buy it for example here:http://www.busware.de/tiki-index.php?page=CULTo install the dependecys use this command.` python setup.py install `After that you can start a test server with this command.` pythonbin/moritz-server.py--cul-path/dev/ttyUSB0 `This open a small webserver with some tools to control your devices and see there states.
Package: maxentropy
maxentropy: Maximum entropy and minimum divergence models in PythonPurposeThis package helps you to construct a probability distribution
(Bayesian prior) from prior information that you encode as
generalized moment constraints.You can use it to either:find the flattest distribution that meets your constraints, using the
maximum entropy principle (discrete distributions only)or find the "closest" model to a given prior model (in a KL divergence
sense) that also satisfies your additional constraints.BackgroundThe maximum entropy principle has been shown [Cox 1982, Jaynes 2003] to be the unique consistent approach to
constructing a discrete probability distribution from prior information that is available as "testable information".If the constraints have the form of linear moment constraints, then
the principle gives rise to a unique probability distribution ofexponential form. Most well-known probability distributions are
special cases of maximum entropy distributions. This includes
uniform, geometric, exponential, Pareto, normal, von Mises, Cauchy,
and others: seehere.Examples: constructing a prior subject to known constraintsSee thenotebooks folder.Quickstart guideThis is a good place to start:Loaded die example (scikit-learn estimator API)HistoryThis package previously lived in SciPy
(http://scipy.org) asscipy.maxentropyfrom versions v0.5 to v0.10.
It was under-maintained and removed from SciPy v0.11. It has since been
resurrected and refactored to use the scikit-learn Estimator inteface.Copyright(c) Ed Schofield, 2003-2019
Package: maxframe
MaxFrame is a computational framework created by Alibaba Cloud to
provide a way for Python developers to parallelize their code with
MaxCompute. It creates a runnable computation graph locally, submits it
to MaxCompute to execute and obtains results from MaxCompute.MaxFrame client is the client of MaxFrame. Currently it provides a
DataFrame-based SDK with compatible APIs for pandas. In future, other
common Python libraries like numpy and scikit-learn will be added as
well. Python 3.7 is recommended for MaxFrame client to enable all
functionalities while supports for higher Python versions are on the
way.InstallationYou may install MaxFrame client through PIP:pipinstallmaxframeLatest beta version can be installed with--preargument:pipinstall--premaxframeYou can also install MaxFrame client from source code:pipinstallgit+https://github.com/aliyun/alibabacloud-odps-maxframe-client.gitGetting startedWe show a simple code example of MaxFrame client which read data from a
MaxCompute table, performs some simple data transform and writes back
into MaxCompute.importmaxframe.dataframeasmdimportosfrommaxframeimportnew_sessionfromodpsimportODPSo=ODPS(os.getenv('ALIBABA_CLOUD_ACCESS_KEY_ID'),os.getenv('ALIBABA_CLOUD_ACCESS_KEY_SECRET'),project='your-default-project',endpoint='your-end-point',)session=new_session(o)df=md.read_odps_table("source_table")df["A"]="prefix_"+df["A"]md.to_odps_table(df,"prefix_source_table")DocumentationDetailed documentations can be foundhere.LicenseLicensed under theApache License
2.0.
MaxCompute MaxFrame Client
==========================MaxFrame is a computational framework created by Alibaba Cloud to
provide a way for Python developers to parallelize their code with
MaxCompute. It creates a runnable computation graph locally, submits it
to MaxCompute to execute and obtains results from MaxCompute.MaxFrame client is the client of MaxFrame. Currently it provides a
DataFrame-based SDK with compatible APIs for pandas. In future, other
common Python libraries like numpy and scikit-learn will be added as
well. Python 3.7 is recommended for MaxFrame client to enable all
functionalities while supports for higher Python versions are on the
way.InstallationYou may install MaxFrame client through PIP:pipinstallmaxframeLatest beta version can be installed with--preargument:pipinstall--premaxframeYou can also install MaxFrame client from source code:pipinstallgit+https://github.com/aliyun/aliyun-odps-maxframe.gitGetting startedWe show a simple code example of MaxFrame client which read data from a
MaxCompute table, performs some simple data transform and writes back
into MaxCompute.importmaxframe.dataframeasmdimportosfrommaxframeimportnew_sessionfromodpsimportODPSo=ODPS(os.getenv('ALIBABA_CLOUD_ACCESS_KEY_ID'),os.getenv('ALIBABA_CLOUD_ACCESS_KEY_SECRET'),project='your-default-project',endpoint='your-end-point',)session=new_session(o)df=md.read_odps_table("source_table")df["A"]="prefix_"+df["A"]md.to_odps_table(df,"prefix_source_table")DocumentationDetailed documentations can be foundhere.LicenseLicensed under theApache License
2.0.