Saravanan666/pypi-org huggingface dataset:
Package: mipas-noxy
PyMIPAS_NOxyMIPAS NOx/NOy calculator toolsSome tools to handle MIPAS level-2 netCDF files,
and to combine trace gas species to calculate
NOx (= NO + NO2) and NOy (= NO + NO2 + ClONO2 + N2O5 + HNO3 + HNO4)
from the single species.:warning: This package is inalphastage, that is, it works mostly,
but the interface might still be subject to change.InstallRequirementsnumpy- requiredxarray- required for reading netCDF filesh5netcdf- required for reading netCDF filesscipy- required for the interpolation interfaceclick- required for the command line interfacetoml- required to read the configuration filespytest- optional, for testingmipas_noxyAn installablepippackage calledmipas_noxywill soon be available
from the main package repository, it can then be installed with:$pipinstallmipas_noxyThe latest development version can be installed
withpipdirectly from github
(seehttps://pip.pypa.io/en/stable/reference/pip_install/#vcs-supportandhttps://pip.pypa.io/en/stable/reference/pip_install/#git):$pipinstall[-e]git+https://github.com/st-bender/pymipas_noxy.gitThe other option is to use a local clone:$gitclonehttps://github.com/st-bender/pymipas_noxy.git
$cdpymipas_noxyand then usingpip(optionally using-e, seehttps://pip.pypa.io/en/stable/reference/pip_install/#install-editable):$pipinstall[-e].or usingsetup.py:$pythonsetup.pyinstallOptionally, test the correct function of the module with$py.test[-v]or even including thedoctestsin this document:$py.test[-v]--doctest-glob='*.md'UsageThe python module itself is namedmipas_noxyand is imported as usual.All functions should benumpy-compatible and work with scalars
and appropriately shaped arrays.>>>importmipas_noxyasmoxyOpening MIPAS level-2 netcdf filesThe MIPAS level-2 netcdf files contain 2-D altitude coordinates whichxarraycan currently not deal with nicely. This module provide a convenience
function to read those files:>>>frommipas_noxyimportopen_mipas_l2>>>open_mipas_l2("/path/to/mipas-level2-file.nc")It also contains one that can combine multiple files into one data set,
taking a glob-string or list of files:>>>frommipas_noxyimportopen_mfmipas_l2>>>open_mfmipas_l2("/path/to/mipas-level2-files*.nc")Command line interfaceA command line interface to combine different species to "NOx" or "NOy"
(and possibly others)
is available asmipas_noxy <args>, or using python's-mswitch aspython -m mipas_noxy <args>.
The argument is basically the configuration file for processing,
more command line options are listed by passing-hor--help:mipas_noxy -h.
The processing is configured through atomlfile,
currently available options are described in theexample configuration file.Basic class and method documentation is accessible viapydoc:$pydocmipas_noxyLicenseThis python interface is free software: you can redistribute it or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 2 (GPLv2), seelocal copyoronline version.
Package: mipathway
MIPathInstallationpip install mipathwayHow to use MIPathYou can find an example of a simple analysis in thevignette.MIPath functionsHereyou can find a complete overview of the main functions in the package.Help and supportThis is a young package, and the documentation is still ongoing. If you have any issues or need help running it, pleaseopen an issueand I will do my best to provide all the guidance and help that I can.
Package: mipc-camera-client
mipc_camera_clientSimple client for MIPC-based webcam.
I bought a cheapo used WiFi camera on eBay, turns out the local web UI accessible over LAN is broken,
and using the OEM's app proxies all the video through random IP addresses which I'm not cool with.supported featureslogin & auth - reverse-engineered from the broken web UI on my camera :)getting a snapshotgetting a stream URLcontrol pan/tiltUsing the libraryInstall the package as usual per your package manager and:camera_ip="192.168.0.123"camera_user="exampleuser"camera_password="P@ssw0rd"frommipc_camera_clientimportMipcCameraClientc=MipcCameraClient(camera_ip)c.login(camera_user,camera_password)jpeg_data=c.get_image()withopen("hello.jpg",mode="wb")asfile:file.write(jpeg_data)Also seeexamples/.CLI$ usage: mipc_camera_client [-h] [--host HOST] [--user USER] {snapshot,stream,ptz} ...

CLI client for MIPC cameras

options:
  -h, --help            show this help message and exit
  --host HOST           Camera address (hostname or IP), uses CAMERA_HOST env var if not supplied
  --user USER           Camera username (from the web interface), uses CAMERA_USER env var if not supplied. Set CAMERA_PASSWORD for password.

commands:
  Available commands

  {snapshot,stream,ptz}
    snapshot            take a JPEG snapshot
    stream              get RTMP stream URL
    ptz                 control pan/tilt/zoom
Package: mip-cvxpy
mip-cvxpy|This package allows you to solveCVXPYproblems using thepython-mippackage as a backend solver. It works for mixed integer linear problems.This allows you to use CBC from CVXPY without needing to manually install
CBC. By default, CVXOPT callsCyLPto use CBC and requires CBC to be manually installed. python-mip, on
the other hand, comes with CBC bundled through pypi.This package is based heavily off theCyLP/CBC interfaceand is slower: on smaller problems mip_cvxpy interface takes perhaps 1.3x as long
as CyLP, and on larger problems perhaps 5x as long (see the benchmark in the
test suite). CyLP has a significant advantage in natively supporting sparse
matrices and vectorisation.InstallationInstall from pypipip install mip_cvxpyUsageUse as acustom solverimportnumpyasnpimportcvxpyascpfrommip_cvxpyimportPYTHON_MIPn=int(1e3)vars=cp.Variable(n,integer=True)objective=cp.Maximize(cp.sum(vars))constraints=[vars[0]==1,vars<=np.linspace(10,n+10,num=n),]problem=cp.Problem(objective,constraints)optimal_value=problem.solve(solver=PYTHON_MIP())print(problem.status)Additional solver optionsYou can pass additional solver options likeoptimal_value=problem.solve(solver=solver,max_seconds=10,other_option=7)This is equivalent toimportmipm=mip.Model()m.max_seconds=10m.other_option=7...
Package: mipea
mipeapy: mipea Python wrapperUnder constructionThis Python module makes use of themipeaC library to access the peripherals of the Raspberry Pi.
The module is written in C and uses the Python C API.
Most functions are just wrappers to the mipea functions with conversion to
Python objects and some improvements.Contributions are welcome (especially documentation or examples), please fork
and open a pull request.Please add an issue if you find any bugs or have ideas for improvements.Like the mipea C library, there are nearlyno checks performedto protect
your Pi to archive best performance and because this is alibrary for developers.
This library is useful tolay a foundation for other programs or libraries.InstallationYou need to install themipeaC library to
use this library, seeREADME.mdfor installation instructions.PyPI$ pip install mipeaSource$ python setup.py installUsageLook at theexamplesfor some starting help.
Package: mip-helper
This is a Python library used in the hbpmip/python-mip Docker image in
order to ease developers job. It provides functions to read and write
data from/to the MIP.For more details, please have a look atpython-mip.How to update itUpdate the library codeRun thebuild.shscript in order to generate the.rstversion
of the README and build the libraryCommit and push your changes and run thepublish.shscript in
order to publish the new release on PyPI
Package: miping
MiningPersonalityInGermanMiningPersonalityInGerman (MiPInG)Mining Personality In German (MiPinG) predicts your Big Five personality score based on your public Twitter profile. Simply enter your Twitter username and we will analyze the language of your Tweets. To learn more about MiPinG go tohttps://miping.de/or visit our GitHubhttps://github.com/iUssel/MiningPersonalityInGerman.Please checkhttps://github.com/iUssel/MiningPersonalityInGerman/blob/master/docs/main.htmlfor detailed source code documentation.
For further documentation checkhttps://github.com/iUssel/MiningPersonalityInGerman/blob/master/docs/SettingUpMiPinG.pdfandhttps://github.com/iUssel/MiningPersonalityInGerman/blob/master/docs/TrainingMiPinG.pdf.Copyright 2020 Henning UsselmannLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: mipkit
MIPToolsIntroductionMIPkit -Multimedia AndImagesProcessing LabKitis a package of common data processing tools.The package contains various functions and classes for quick analysis, processing and visualization.InstallationYou can install this package usingpippipinstallmipkitOr, re-compile and setup from source:gitclonehttps://github.com/congvm-it/mipkit.gitcdmipkit# For productionpython-msetup.pyinstall# For developmentpipinstall-e.ContributionIf you want to contribute to this package, you can push your code to our repository.Contributors[1] CongVM -congvm.it@gmail.com
Package: miprem
MipremAmeritprofilerenderer formajority judgment.This project aims to generate vector and bitmap images representing the merit profile of amajority judgmentelection, based on the merit profile raw data.
Miprem does not process poll results, it just render as pretty as possible.This project is under active development - installation and usage will rapidly evolve.Installationcurl https://framagit.org/roipoussiere/miprem/-/archive/master/miprem-master.tar.gz | tar -zx -C miprem
cd miprem
pip install --userUsageGenerate the imagemiprem > merit_profile.svgYou can the view the merit profile with your favorite vector image renderer, for instance:firefox merit_profile.svgContributingWoohoo thanks! Please read thecontribution guide.Licence & authorshipThis project is published underMIT licenceand developed by Nathanaël Jourdane & contributors
(maybe you?).
Package: miprimerproyectoexchange
miprimerproyectoexchangeExchange lib exampleFree software: GNU General Public License v3Documentation:https://miprimerproyectoexchange.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-01-07)First release on PyPI.
Package: miprobe
MiProbe Data Logging Tool and Python LibrariesA USB/Serial data logging tool and python functions/libraries for MiProbe Sensor boards developed by under various U.S. Department of Energy Small Business Innovative Research grant awards forBurge Environmental, Inc.Supported PlatformsLinux, Mac, and FreeBSD on amd64 and aarch64 system architectures.Installation & Usagepython3 -m pip install miprobeThe executable, miprober, is installed to ~/.local/bin on Linux and BSD systems and ~/Library/Python//bin on Mac OS X using homebrew.miprober UsageThe miprober executable is an example python script that provides a simple interface for initializing automated data logging experiments using MiProbe system boards using the supplied mp_lib.py library.miprober -type "B56" -experimentname "ExperimentName" -interval 60 -number 1000 -query "N01,N02,N03,T1"This will log only Nodes 1, 2, and 3 and Thermistor sensor 1.  Use the query "ALLVT" for all possible sensors.  The latest experiment configuration will be stored in ~/mp_data/ as latest_config.json.Passing no arguments or configuration file to miprober will default to loading the latest_config.json file.See Help below for more advanced usage:API.key and API.url filesOn first-run miprober will create a folder $HOME/mp_data and request a API URL endpoint and Key.  These files are stored in the mp_data folder as API.key and API.url respectively and are provided by the MiProbe team to access the MiProbe Cloud database servers.mp_lib usagemp_lib provides simple functions for initializing serial connections with MiProbe devices, querying them for sensor data, and pushing the data to an API server for further processing or database storage.Experimental Network Logger JSON APISince version 0.5 miprober now runs a flask server to allow a HTTP/JSON api for checking on data logger status over local networks.Supply the device name or IP address to query the system on port 5000 using http get requests:Get current experiment configuration:http://device:5000/miprobe/configGet latest reading off device:http://device:5000/miprobe/latest/jsonGet a JSON dump of ALL readings stored to /mp_data/ExperimentName.csv:http://device:5000/miprobe/dump/jsonHighly experimental:Instruct miprober to immediately query the board, pushing data to the API server and responding in JSON to the query request.http://device:5000/miprobe/query/jsonDynamoDB API Server (Example)Example code for a rudimentary Python/Flask API Server to receive data using AWS API Gateways and Lambda Functions is provided for testing.  See api_server folder for example.You will need to configure your DynamoDB Tables to use ExperimentName and Timestamp as the has key and range key for the Data_DB table and just the ExperimentName as the Hash key for the ExperimentID_DB table.
Package: miproman
[Infomercial voice]“Hey kids! Are you tired of maintaining those pesky iTerm2 profiles?Well look no further because we have just the thingMiProMan.Adding a new profile withMiProManis easy.$add_profileserver007--tags"Super Secret Server"Usageusage:add_profile[-h][-cCOMMAND][-t[TAGS[TAGS...]]][-rSTOP|START,STOP][-pFILE][-nTEMPLATE_NAME][-v][--version]servers[servers...]MiProMan-iTerm2ProfilesManagerforHumans!positionalarguments:serversServerstocreateprofilesfor.Canusetheformserver{0:02d}withtherangeflagtoaddarangeofservers.Skipsifserveralreadyexists.optionalarguments:-h,--helpshowthishelpmessageandexit-cCOMMAND,--commandCOMMANDThecommandtorunforeachprofile.Use{0}toreferncetheservernameinthecommand.Default:ssh{0}-t[TAGS[TAGS...]],--tags[TAGS[TAGS...]]Tagsfortheprofiles.-rSTOP|START,STOP,--rangeSTOP|START,STOPIfserverusesrangeformataddprofilesforspecifiedrange.Canbeprovidedasasinglenumberorcommaseparatedpair.Ifsinglevaluerangestartsfrom1.Ex.server{0:02d}-r4=>server01-server04Ex.server{0:02d}-r10,20=>server10-server20-pFILE,--profileFILEiTerm2profileplist.Default:$HOME/Library/Preferences/com.googlecode.iterm2.plist-nTEMPLATE_NAME,--templateTEMPLATE_NAMEiTerm2profilenametobeusedasbasetemplatefornewserverentries.Templateisrequiredtoaddnewprofiles.Default:Default-v,--verboseIncreaseoutputverbosity.--versionshowprogram'sversionnumberandexitInstallationTo install MiProMan, simply:$pipinstallmipromanOr, if you choose to build it yourself:$pythonsetup.pyinstallFeaturesAdd new profiles from the consoleSupports python string substitution format for the server and commandDefine default settings in user config to avoid typing oll options
Package: mipscripts
mipscriptsmipscripts is a python package containing various tools for use with MIPTools
pipelines.InstallationYou may install using pip:pipinstallmipscriptsUsagemipscripts is setup as one uniform program containing multiple subcommands,
each designed for a different purpose. To use, simply type the name of the
package, followed by the subcommand:python3-mmipscriptssubcommand[options]Developer NotesWhen developing mipscripts, we recommend the use of a virtual environment:python3-mvenvenvsourceenv/bin/activateThe packages used during development are saved in therequirements.txtfile.
To install, use pip:pipinstall-rrequirements.txtIf you update packages or add any new ones into the virtual environment, please
make sure to freeze the package versions before committing:pipfreeze>requirements.txtAfter adding any new code, we encourage writing unit tests to test
functionality. mipscripts is tested via thepytest
framework. To test the code, run:python3-mpytest
Package: miptlabs
Длинное описание, которое когда-то появитсяДля сборки:python-mpipinstall--upgradebuildwheeltwine
python-mpipinstall-rrequirements.txt
python-mbuild--no-isolation
twineuploaddist/*Для установки:pip install -i https://test.pypi.org/simple/ miptlabsЧтобы нарисовать что-то:from miptlabs.plotter import pretty_plot, show
from numpy import linspace

# точки для построения графика
x = linspace(0, 5, 20) 
y = x * x

pretty_plot(x, y)
show()Точки можно просто соединить написав line=True:pretty_plot(x, y, line=True, legend='$y = x^2$')Так как для данный с лаб простое соединение вряд ли подойдет, то в пакете есть разные апроксиматоры Для примера можно
взять зависимость координаты от рвемени при равноускоренном движенииfrom src.miptlabs.plotter import pretty_plot, show
from src.miptlabs.approximators import Polynomial
from numpy import linspace
import numpy as np


# точки для построения графика
x = linspace(0, 5, 20)
y = x * x + np.random.normal(size=x.shape)
ax = pretty_plot(x, y, legend='$x = t^2$ + random')


# Апроксимация
approximator = Polynomial(deg=2)
appr_x, appr_y = approximator.approximate(x, y)
# Вывод формулы для латеха
print(approximator.label('t', 'x'))
# >>> $y = 1.03t^{2}-0.205t+0.158$

№ Построение графика. Параметры говорят сами за себя
pretty_plot(appr_x, appr_y, axes=ax, points=False, line=True,
            legend=approximator.label('t', 'x'), xlabel='t, сек', ylabel='x, м', title='График $x(t)$')

ax.figure.savefig('examples/approx.png')
show()
Package: mipt-npm-hv-controls
hv-controlsSimple GUI for HV source controls.Can be used forMantigoradevices.Tested on Ubuntu 21.10 with HT-60-30-P. Proposal correct work on all platform for HT-60-*, HT-15-*, HT2000, HV2000, HV6000.InstallationInstall USB/FTDI drivers. Application can be used different drivers for Linux and Windows. For Linux/Windows can be usedpyftdiwithlibusb(On Debian/Ubuntu usesudo apt-get install libusb-1.0). For Windows can be used FTD2XX (Not implemented).Configure our system what would to allow using drivers from user-space. For linux seehereor run application withsudo.Install application:For installation from PyPI runpip install mipt-npm-hv-controlsFor installation from source, move application source directory and runpip install -e .(Also you can install dependencies manuallypip install pyqt5 pyftdi matplotlib Jinja2)Runhv-controlsin terminal (orpython3 main.py). Use option--no-guifor run console apps. Use options--debugfor getting debug information in log.For developersDevices parametersDevices parameters located inhv/device_dataand based on fileUnit1.pas, inforamtion from vendor and specification of protocol.Parameters of next devices isn't consistent:HT-15-10-PandHT-15-10-N: max current 3000 mcA or 750 mcA?HT-6-...absent current step.HT4000,HT6000,HR...absent codemax ADC and DAC.Code overviewФайлhv_device.pyсодержит классHVDevice, который принимает команды от консольного или графического интерфейса и превращает их в команды для низкоуровневых драйверов. Файлыftdi_device.pyиftd2xx_device.pyсодержать классы-обертки над драйверами STDI и STD2XX (для него пока только заглушка).Файлcmd_ui.pyпредоставляет консольный интерфейс для управления прибором, будет полезен при отладке.
Директорияhv/uiпредоставляет графический интерфейс для управления прибором.
Файлrun.pyсодержит точки входа, для запуска которыхpipумеет создавать shell и bat скрипты.
Файлmain.pyпозволяет запускать консольный и графический интерфейсВ директорииhv/device_dataхранится информация об источниках различных серий, источник должен сообщать свою серию, и оттуда буду браться данные.
Package: mipt-npm-optics
python-optics-labВиртуальные лабораторные работы:405: Эффект Поккельса407: Проебразование Фурье в оптикеУстановкаУстнавливемAnacondaдля Python3
или устанавливаем Python софициального сайтаУстанавливаем пакет с помощьюpip, для этого в терминале (например, программа Anaconda Power Shell) введите:pip install mipt-npm-opticsТеперь можно заускать программу:mipt-opticsилиmipt-optics.exeтак же вы можете запустить программу из исходного кода. Скачайте код из этого репозитория, откройте в терминале директорию с кодом и введите:pip3 install -e .
# или
pip install -e .для установки зависимостей. Затем для запуска программы введиде:python3 main.pyUbuntuСистемный питонsudo apt-get install python3-pipУстановка зависимостей вручнуюconda install pyqt numpy scipy matplotlib appdirs diffractio hickle pandas pillowилиpip3 install pyqt5  numpy scipy matplotlib appdirs diffractio hickle pandas pillow
Package: mip-tool
MIP-ToolMIP-Tool is a package forPython-MIP.Installationpip install mip-toolExampleNon-convex piecewise linear constraintMaximize y which is on points of (-2, 6), (-1, 7), (2, -2), (4, 5).importnumpyasnpfrommipimportINF,Model,OptimizationStatusfrommip_toolimportadd_lines,show_modelm=Model(solver_name="CBC")x=m.add_var("x",lb=-INF)y=m.add_var("y",obj=-1)curve=np.array([[-2,6],[-1,7],[2,-2],[4,5]])add_lines(m,curve,x,y)m.verbose=0m.optimize()assertm.status==OptimizationStatus.OPTIMALassert(x.x,y.x)==(-1,7)show_model(m)Output\Problem name: 

Minimize
OBJROW: - y
Subject To
constr(0):  x - w_0 - w_1 - w_2 = -2
constr(1):  y - w_0 + 3 w_1 -3.50000 w_2 = 6
constr(2):  - w_0 + z_0 <= -0
constr(3):  w_0 <= 1
constr(4):  - w_1 + 3 z_1 <= -0
constr(5):  w_1 -3 z_0 <= -0
constr(6):  w_2 -2 z_1 <= -0
Bounds
 x Free
 0 <= z_0 <= 1
 0 <= z_1 <= 1
Integers
z_0 z_1 
EndF exampleEasy to understand using F.attention: Change Model and Var when using mip_tool.func.frommip_tool.funcimportFm=Model(solver_name="CBC")x=m.add_var("x")y=m.add_var("y",obj=-1)m+=y<=F([[0,2],[1,3],[2,2]],x)m.verbose=0m.optimize()print(x.x,y.x)# 1.0 3.0y <= F(curve, x)andy >= F(curve, x)calladd_lines_conv.y == F(curve, x)callsadd_lines.pandas.DataFrame exampleattention: Change Series when using mip_tool.func.importpandasaspdfrommipimportModel,maximize,xsumfrommip_tool.funcimportaddvarsA=pd.DataFrame([[1,2],[3,1]])b=pd.Series([16,18])m=Model(solver_name="CBC")x=addvars(m,A,"",False)m.objective=maximize(xsum(x))m+=A@x<=bm.verbose=0m.optimize()print(x.astype(float))# [4. 6.]Expressionm += A.T.apply(lambda row: xsum(row * x)) <= bmay be faster thanm += A @ x <= b.
Package: miPubSub
Publish/Subscribe pattern build with RabbitMQ and Protocol Buffers.InstallationTo install miPubSub, usepipenv(or pip):$pipenvinstall-egit@github.com:azylinski/miPubSub.git@master#egg=miPubSubRun RabbitMQIn order to use miPubSub, you need to have access to RabbitMQ server.
To setup locally withdocker:dockerrun-d\--namedemo-rabbit\-p5672:5672\-p15672:15672\rabbitmq:3.6.15-management-alpineDefine events structure# schemas/events/user.proto

syntax = "proto3";

package events;


message User {
  string name = 1;
  string email = 2;
}# compile proto filesprotoc-I=schemas/events/--python_out=proto/schemas/events/*.protoExample# producer.pyfrommiPubSubimportPubSubfromproto.user_pb2importUserps=PubSub('user_management')u=User(name='Adam West',email='adam.west@mail.com')ps.publish('signup_completed',u)# consumer.pyfrommiPubSubimportPubSubfromproto.user_pb2importUserps=PubSub('mailer')@ps.listen('signup_completed',User)defon_signup_completed(user):# Send welcome email to: user.emailpassps.run()How it worksTBDMore details on rabbitmq pub/sub:https://www.rabbitmq.com/tutorials/tutorial-three-python.htmlAuthors@ArturZylinskiLicenseThis project is licensed under the MIT License - see theLICENSEfile for details