Saravanan666/pypi-org huggingface dataset:
Package: mettler_toledo_device
mettler_toledo_device_python======================This Python package (mettler\_toledo\_device) creates a class namedMettlerToledoDevice, which contains an instance ofserial\_device2.SerialDevice and adds methods to it to interface toMettler Toledo balances and scales that use the Mettler ToledoStandard Interface Command Set (MT-SICS).Authors::Peter Polidoro <polidorop@janelia.hhmi.org>License::BSDExample Usage::from mettler_toledo_device import MettlerToledoDevicedev = MettlerToledoDevice() # Might automatically find device if one available# if it is not found automatically, specify port directlydev = MettlerToledoDevice(port='/dev/ttyUSB0') # Linux specific portdev = MettlerToledoDevice(port='/dev/tty.usbmodem262471') # Mac OS X specific portdev = MettlerToledoDevice(port='COM3') # Windows specific portdev.get_serial_number()1126493049dev.get_balance_data()['XS204', 'Excellence', '220.0090', 'g']dev.get_weight_stable()[-0.0082, 'g'] #if weight is stableNone  #if weight is dynamicdev.get_weight()[-0.6800, 'g', 'S'] #if weight is stable[-0.6800, 'g', 'D'] #if weight is dynamicdev.zero_stable()True  #zeros if weight is stableFalse  #does not zero if weight is not stabledev.zero()'S'   #zeros if weight is stable'D'   #zeros if weight is dynamicdevs = MettlerToledoDevices()  # Might automatically find all available devices# if they are not found automatically, specify ports to usedevs = MettlerToledoDevices(use_ports=['/dev/ttyUSB0','/dev/ttyUSB1']) # Linuxdevs = MettlerToledoDevices(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS Xdevs = MettlerToledoDevices(use_ports=['COM3','COM4']) # Windowsdev = devs[0]
Package: mettmail
mettmailGet mail from IMAP server with IDLE extension and deliver to LMTP server, nothing else.Requirementspython >=3.8poetry(pip install --user poetry)InstallInstall mettmail python package and CLI command.poetryinstall--no-rootRunCreate configuration file based on the example:cpmettmail.example.yamlmettmail.yamlEdit it with your IMAP/LMTP connection details. You can override most ofDeliverLMTPandFetchIMAPconstructor parameters.Run parameters:poetryrunmettmail--helpDevelopmentBuild Dependenciesnoxas test-runnerpyenv(recommended) to manage python versionsInstall dependencies and pre-commit hooks:# you may need to install the following tools outside of your virtualenv, too:pipinstallnoxpoetrypre-commit
poetryinstall--no-root
poetryrunpre-commitinstallTest/Coverage setupQuicklyYou can quickly run tests with:# using your default interpreterpoetryrunpytest# using nox (add -r for the following runs)nox-p3.8ThoroughlyNote:Python 3.10 support is currently broken because of a bug inaioimaplib.Usenoxto run tests and other useful things automatically for all supported python versions.Initial setup for all interpreters and environments:pyenvinstall3.8.12
pyenvinstall3.9.9
pyenvinstall3.10.1
pyenvlocal3.8.123.9.93.10.1
noxAfter that it runs much more quickly reusing the created virtualenvs:nox-r
Package: mettoolbox
mettoolboxThe mettoolbox is set of command line and Python tools for the analysis and
calculation of meteorologic data.InstallationShould be as easy as runningpip install mettoolboxoreasy_install mettoolboxat any command line.Usage - Command LineJust run ‘mettoolbox –help’ to get a list of subcommands:usage: mettoolbox [-h] [-v] {disaggregate,pet,ret,indices,about} ...

positional arguments:
  {disaggregate,pet,ret,indices,about}
    disaggregate        disaggregate subcommand
    pet                 pet subcommand
    ret                 ret subcommand
    indices             indices subcommand
    about               Display version number and system information.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exitUsage - Pythonfrom mettoolbox import mettoolbox
df = mettoolbox.disaggregate.temperature('sine_min_max', ['degC', 'degC'], temp_min_col=1, temp_max_col=2)
Package: metu-cafeteria-menu
metu-cafeteria-menuis a utility for fetchingMiddle East Technical University’s cafeteria menu. It gets data from cafeteria’s website and parses it.Installpipinstallmetu-cafeteria-menuUsagefrommetu_cafeteria_menuimportfetchfrommetu_cafeteria_menu.exceptionsimportDateException,RequestExceptiontry:menu=fetch('2016-05-19')exceptRequestExceptionase:# something went wrong while trying to connect to cafeteria websiteprint(str(e))exceptDateExceptionase:# menu is not available for the selected date, it may be weekend or holidayprint(str(e))LicenseCopyright (c) 2016 H.Gökhan SarıLicensed under the MIT License.
Package: metview
Python interface to Metview, a meteorological workstation and batch system for accessing, examining, manipulating and visualising meteorological data.
See documentation athttps://metview.readthedocs.io/en/latest/index.htmlTry the example notebooks on Binder!Click the link below to start a Binder session to try the examples online now:RequirementsA working Metview 5 installation (at least version 5.0.3, ideally 5.3.0 or above), either from binaries or built from source.
Conda packages are available for Linux, and native packages are available for many Linux distributions.
Seehttps://metview.readthedocs.io/en/latest/install.htmlAn alternative is to build from the Metview Source Bundle.
Seehttps://confluence.ecmwf.int/metview/The+Metview+Source+BundleEnsure that the command ‘metview’ will run this version by setting your PATH to include the ‘bin’ directory
from where you built or installed it if it’s not in a default location.A Python 3 interpreter (ideally version >= 3.5)InstallThe package is installed from PyPI with:$ pip install metviewor from conda-forge with:$ conda install metview-python -c conda-forgeTestYou may run a simple selfcheck command to ensure that your system is set up correctly:$ python -m metview selfcheck
Hello world - printed from Metview!
Trying to connect to a Metview installation...
Metview version 5.2.0 found
Your system is ready.To manually test that your system is properly setup open a Python 3 interpreter and try:>>> import metview as mv
>>> mv.lowercase('Hello World!')
'hello world!'ExamplesThe [examples](examples) folder contains some Jupyter notebooks and some standalone examples for you to try out!Project resourcesDevelopmenthttps://github.com/ecmwf/metview-pythonDownloadhttps://pypi.org/project/metviewCode qualityLicenseCopyright 2017-2021 European Centre for Medium-Range Weather Forecasts (ECMWF).Licensed 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 at:http://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: metyanc
This command-line program checks that a NetCDF file conforms to a pre-defined specification. It
checks if the file contains the specified dimensions and variables; that the dimensions are of the
correct size; that the variables have values within range; and that the variables have certain
attributes.Example usepythonyanc.py\--ncfilehttp://thredds.met.no/thredds/dodsC/meps25files/meps_det_pp_2_5km_latest.nc\--templatetemplates/meps_det_pp_2_5km.ymlTemplateYanc checks the NetCDF file against specifications in a template file. The template understands the
following structure:dimensions:-name:timelength:15-name:xmin_length:10max_length:20variables:-name:air_temperaturemin:200max:400units:K'% missing':10missing_timesteps:[0,1,2]All attributes are optional, and yanc will not check dimensions/variables/min/max/etc when not
specified. Dimensions can be checked for an exact length (by using the work ‘length’) or a range of
lengths (inclusively, by using ‘min_length’ and ‘max_length’).Neither ‘dimensions’ nor ‘variables’ are required to be present in the file.InstallationThe easiest way to install yanc is using pip:pipinstallmetyancTo install from source, install like this:pipinstall-rrequirements.txtpythonsetup.pyinstallReturn codesThe program returns 0 if the file is valid. Otherwise a non-zero code is returned. If the template
file is missing or contains invalid YAML, or if the NetCDF file does not exist or is invalid NetCDF,
then a non-zero code is returned.Missing valuesBy default, variables are not allowed to have missing values. To allow a missing values, the ‘%
missing’ can be added, which means the test will fail if there the percentage of missing values
exceeds the allowed value. Some variables (such as precipitation_amount) will have have missing
values on the first timestep. Data in timesteps specified by missing_timesteps will not count
towards the percentage missing.For example, the following requires the precipitation_amount variable to have no missing values
except for the first time step:variables:-name:precipitation_amountunits:m'% missing':0missing_timesteps:0missing_timesteps can also be an array like this:variables:-name:precipitation_amountunits:m'% missing':0missing_timesteps:[0,1,2]TestingRunning “make test” runs some quick unittests. Running “make testop” checks that the current
operational files conform to specifications. This can take 10-15 minutes.
Package: metzctl
SummaryMetz® television remote control libraryInstallationpip install metzctlUsagefrommetzctlimportMetzRemotefrommetzctl.remoteimportTvRemoteCommandExceptionimportloggingtry:remote=MetzRemote("192.168.178.44",debug=True)remote.volume_up()exceptTvRemoteCommandException:logging.error("Error: Remote command failed")exceptOSErrorase:logging.exception("Error:%s",str(e))Seecommand Line clientfor programing examples.DevelopmentLocal Installationpip install .will take thesetup.pyand install it.Increment VersionRequirement:pip install bumpversionMinor increment:bumpversion --current-version 1.0.0 minor setup.py metzctl/__init__.pyMajor increment:bumpversion --current-version 1.1.9 major setup.py metzctl/__init__.pyTag + push tag:git tag 1.0.1
git push origin 1.0.1Deploypip install twine
pip install wheelTo create a source archive and a wheel for your package:python setup.py sdist bdist_wheelcd dist
tar tzf metzctl-<version>.tar.gz
# check the contents
cd ..
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*Publish it to PyPI:twine upload dist/*
Package: metzoo
To use , simply do:>>> import metzoo
>>>
>>> customer= metzoo.Customer("c58d6977-999b-4c91-a7d0-d6e5a615d38b")
>>> agent= customer.create_agent("host.004")
>>>
>>> agent= metzoo.Agent('ac9a8c4c-af5d-5463-50c3-e282dd4c5056')
>>> agent.create_metric("random.3")
>>> agent.send_data({"random.3": 134.22})
Package: metzoo_opc
Requisitos:Python 2.7https://www.python.org/ftp/python/2.7.11/python-2.7.11.msiPyWin32http://ufpr.dl.sourceforge.net/project/pywin32/pywin32/Build%20219/pywin32-219.win32-py2.7.exeOpenOPChttp://ufpr.dl.sourceforge.net/project/openopc/openopc/1.3.1/OpenOPC-1.3.1.win32-py2.7.exePyROpip install pyroPyODBCpip install pyodbc
Package: metzoo-opc-sdk
Prerequisites:1. Python 2.7 (32 bits)https://www.python.org/ftp/python/2.7.11/python-2.7.11.msi2. OpenOPChttp://ufpr.dl.sourceforge.net/project/openopc/openopc/1.3.1/OpenOPC-1.3.1.win32-py2.7.exe3. PyWin32http://ufpr.dl.sourceforge.net/project/pywin32/pywin32/Build%20219/pywin32-219.win32-py2.7.exe
Package: metzoo-python-sdk
Exmaple of use:>>> import metzoo>>> # create an agent
>>> agent = metzoo.Agent(CUSTOMER_KEY, "agent.name")
<Agent 'agent.name', key: 'xxx...'>>>> # or with an url
>>> agent = metzoo.Agent(CUSTOMER_KEY, "agent.name", "https://api.metzoo.com")
<Agent 'agent.name', key: 'xxx...'>>>> # configure the metrics to use (optional)
>>> agent.configure({"metric1.name": "unit", "metric2.name": "unit"})
{"status":"ok"}>>> # send data for given metrics using system time...
>>> agent.send({"metric1.name": 134.22, "metric2.name": 8123})
{"status":"ok"}>>> # ...or using your own time
>>> agent.send({"metric1.name": 134.22, "metric2.name": 8123}, timestamp=1234567)
{"status":"ok"}>>> # update own agent configuration (not implemented yet)
>>> agent.update()
{"status":"ok"}
Package: meuip
About this packageThis package is available onhttps://pypi.org/project/meuip/, know in your command line your ip, isp, country, asn, region, latitude, longitude, countryCodeCode on githubhttps://github.com/rafaelscone/meuipApis this script usehttp://ip-api.com/jsonhttps://api.myip.comhttps://api.my-ip.io/iphttps://api.ipify.org?format=jsonhttps://ipapi.co/json/How to installpip3installmeuipHow to usemeuip--helpYou can choose more than one optionip  = to see the ip addressisp  = to see the isp providercountry  = to see your contrycountryCode  = to see your Contry Codecity  = to see your cityregion  = to see your regionlatitude  = to see your latitudelongitude  = to see your longitudemeuipispFeel free to send me news, bugs and suggestions to this packageRafael Schneider - rafaelscone
Package: meural-photo-prep
Netgear Meural Photo PreparationPython Package to prepare photos for use with Netgear Meural Picture Frames.This package is not affiliated with Netgear in any way.Netgear Meural Picture Frames require photos to be formatted in a specific way.This package will prepare photos for use with Netgear Meural Picture Frames.For more information on the Netgear Meural Picture Frames formatting need please visitNetgearTable of ContentsExternal DependenciesInstallationUsageExternal DependenciesPillowInstallationRequirementsPython 3.9+PIPpipinstallmeural-photo-prepPoetry[tool.poetry]name = "example-package"version = "0.1.0"description = ""authors = ["Example developer <dev@example.com>"]readme = "README.md"[tool.poetry.dependencies]python = "^3.9"meural-photo-prep = "^1.0.1"[build-system]requires = ["poetry-core"]build-backend = "poetry.core.masonry.api"UsageDescriptionPrepares photos for use with Netgear Meural Picture Frames.Copies photos from the input path to the output path.Removes special characters from the file name.Creates a thumbnail for each photo using theThumbnail()method from Pillow.The thumbnail is created using the dimensions specified in the documentation above.The thumbnail is saved with the same name as the original photo with the addition of the .thumb extension.Function uses threading to process photos in parallel.NOTE: This may cause issues with memory usage as thread limits are not implemented in this versionbe careful how many photos you give it!Exampleimportmeural_photo_prepasmppmpp.prep_photos("<INPUT_PATH>","<OUTPUT_PATH>")Output<OUTPUT_PATH>|__meural1|__img1.jpg# All names have special characters removed|__img1.jpg.thumb# Rendered by Pillow using Thumbnail() method|__img2.jpg|__img2.jpg.thumb|__img3.jpg|__img3.jpg.thumb
Package: meursing
meursingMeursing coder - creates customs master data for agrifood products requiring a four-digit additional code for customs and duty purposesFree software: MIT licenseDocumentation:https://meursing.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-01-24)First release on PyPI.
Package: meutils-w
pypi包发布目录结构meutils-w----src--------meutils-w------------__init__.py------------test.py----LICENSE----pyproject.toml----README.md----setup.py文件内容__init__.pyifname="__init__":f()test.pydeff():print('just a test')pyproject.toml[build-system]requires=["setuptools>=42"]build-backend="setuptools.build_meta"setup.pyfromtimeimporttimeimportsetuptoolswithopen("README.md","r",encoding="utf-8")asfh:long_description=fh.read()setuptools.setup(name="meutils-w",version="0.0.0",author="wangdexiang",author_email="k7856499@163.com",description="A test package",long_description=long_description,long_description_content_type="text/markdown",url="https://github.com/pypa/sampleproject",project_urls={"Bug Tracker":"https://github.com/pypa/sampleproject/issues",},classifiers=["Programming Language :: Python :: 3","License :: OSI Approved :: MIT License","Operating System :: OS Independent",],package_dir={"":"src"},packages=setuptools.find_packages(where="src"),python_requires=">=3.6",)安装依赖pipinstallbuildtwine构建测试包python-mbuild上传测试包python-mtwineuploaddist/*更新测试包python-mtwineuploaddist/*--skip-existing#只更新已存在的包
Package: mew
Mew: python dataclass serializer/deserializerfrom dataclasses import dataclass
from enum import Enum
from typing import List

import mew


class Type(Enum):
    normal = 'normal'
    electric = 'electric'
    fire = 'fire'
    fighting = 'fighting'
    water = 'water'
    psychic = 'psychic'


@mew.serializable
@dataclass
class Pokemon:
    name: str
    pokedex: int
    type: Type
    abilities: List[str]


>>> pikachu = Pokemon('Pikachu', 25, Type.electric, ['static', 'lightning rod'])

>>> pikachu
Pokemon(name='Pikachu', pokedex=25, type=<Type.electric: 'electric'>, abilities=['static', 'lightning rod'])

>>> pikachu.dumps()
'{"name": "Pikachu", "pokedex": 25, "type": "electric", "abilities": ["static", "lightning rod"]}'

>>> assert pikachu == Pokemon.loads(pikachu.dumps())
Package: mewbot-dev-tools
mewbot-dev-toolsTools to aid with mewbot development.PurposeWhile developing mewbot we built a number of tools to assist with development.
This mostly consist of tool chains forrunning the lintersbuilding dev venvs (still forthcoming)building the docs (still forthcoming)gather and run the testsThe aim of these tools is that, if you run them on a code base, you should
end up with something which conforms to mewbot's guidelines.UsageThe dev tools uses path based auto-discovery to locate the relevant code.
Python modules will be discovered in./srcand./plugins/*/src.
Test cases will be discovered in./testsand./plugins/*/tests.If your project is in thatsrc-dirlayout, you can install the dev tools
and then run any of the toolchains.pipinstallmewbot-dev-tools

mewbot-install-deps# Install dependencies from discovered requirements.txtmewbot-preflight# Run all of the toolchains belowmewbot-lint# Code style and type linting, using black/flake/ruff/mypy/pylintmewbot-reuse# Licensing information check, using reusemewbot-test# Run discovered test suites, using pytestmewbot-security-analysis# Discover potential security bugs using badnitmewbot-annotate# Convert output data into GitHub annotationsWe also recommend that you setupmewbot-prefilghtas apre-commit or pre-push hook.Future WorkAbility to opt-out for some linters in pyproject.tomlWork to discover locations based on pyproject.toml
Package: mewbot-io-discord
mewbot-io-discordMewbotbindings for discord!Thismewbot-ioframework plugin was generated withCookiecutteralong with@ajcameron'stemplate-mewbot-plugincookiecutter template.If you have any issues with the plugin pleasefile an issue for it!If you have any issues, or suggestions, for the template pleasefile an issue for it's template!FeaturesTODORequirementsTODOInstallationYou can install "mewbot-io-discord" viapipfromPyPI$pipinstallmewbot-io-discordUsageTODOContributingContributions are very welcome.
Tests can be run usingMewbot dev tools.
These can be installed via$pipinstallmewbot-dev-toolsThen cd into the root of this repo and run$mewbot-testPlease ensure the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of theMITlicense.
"mewbot-io-discord" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.FeaturesLikewise, pleaseraise an issueif there's a feature you want.
The eventual aim is feature completeness withpycordthe underlying library that this plugin uses to talk to discord.Helpful linksMIT licenseBSD-3 licenseGNU GPL v3.0Apache Software License 2.0
Package: mewbot-io-rss
mewbot-io-rssMewbotbindings for an io protocol!A plugin which lets mewbot consume RSS feeds.ThisMewbotio plugin was generated withCookiecutteralong with@ajcameron'stemplate-mewbot-plugincookiecutter template.If you have any issues with the plugin pleasefile an issue for it!If you have any issues, or suggestions, for the template pleasefile an issue for it's template!FeaturesTODORequirementsTODOInstallationYou can install "mewbot-io-rss" viapipfromPyPI$pipinstallmewbot-io-rssUsageTODOContributingContributions are very welcome.
Tests can be run usingMewbot dev tools.
These can be installed via$pipinstallmewbot-dev-toolsThen cd into the root of this repo and run$mewbot-testPlease ensure the coverage at least stays the same before you submit a pull request.LicenseDistributed under the terms of the MIT license.
"mewbot-io-rss" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.FeaturesLikewise, pleaseraise an issueif there's a feature you want.Helpful linksMIT licenseBSD-3 licenseGNU GPL v3.0Apache Software License 2.0
Package: mewo-http-client
mewo-http-clientThis repo contains:A http client lirary.A cli tool to help with http calls.The library is very high-level and opinionated. It's a wrapper around the 'requests' library.
The main goal is to make http serivce to service communication super simple in regards to retry-logic and loggin.
The library is created with mewo services in mind (e.g. mub).
This is not intended to be a flexible http client for all purposes. It just offers a simple, opinionated, highlevel interface for http communication within mewo.
Package: mewpy
MEWpyMEWpy is an integrated Metabolic Engineering Workbench for strain design optimization.
It offers methods to explore different classes of constraint-based models (CBM) for:Simulation: allows to simulate steady-state metabolic models, considering different formulations (e.g., GECKO, ETFL) and kinetic models;Optimization: performs Evolutionary Computation based strain design optimization by knocking out (KO) or over/under expressing (OU) reactions, genes, or enzymes.Omics data integration (eFlux, GIMME, iMAT);Regulatory networks integration (rFBA, srFBA)MEWPy currently supports REFRAMED and COBRApy simulation environments.DocumentationFor documentation and API please check:https://mewpy.readthedocs.io <https://mewpy.readthedocs.io>_Installationpip install mewpyCredits and LicenseDeveloped at:Centre of Biological Engineering, University of Minho (2019-)
Package: mewtax
Differentiable minimization in jax using Newton's methodv0.0.0This project essentially repackages code from theimplicit layers tutorialto provide aminimize_newtonfunction.Given a functionfn(params, z), it finds thez_starwhich minimizesfnfor givenparams. Further, the gradient of the solution with respect toparamscan be computed; this is done using a custom vjp rule, as shown in the tutorial.
Package: mewtwo
# mewtwoThis package contains a python class called Risk Dataframe which contains methods to perform a missing not at random analysis and to automate a risk-based segmentation process by analyzing all the features in the dataset and identifying the best split for segmenting each feature.In order to effectively use the methods in this class, some degree of data cleaning and preparation will be required. A demo file using a Car Loans Portfolio Dataset is provided.To access the Risk Dataframe class within the Mewtwo package, please do the following,from mewtwo.RiskDataframe import RiskDataframe