Saravanan666/pypi-org huggingface dataset:
Package: mhtg
featuresh11, a transport agnostic standards-compliant http/1.1 implementationtrio, an async/await-native IO library focused on usability and correctnessusagecontrived example:fromfunctoolsimportpartialfrommhtgimportclient,context,modelimporttrioclient_factory=partial(client.client_factory,server_hostname="google.com",port=443)connection_manager=context.make_connection_manager(client_factory)defrequest_builder():request=h11.Request(method="GET",target="/",headers=[("host",server_hostname),("content-length",0),])returnrequest,asyncdefdo():asyncwithconnection_manager()asreuse_connection:asyncwithreuse_connection()asmake_request:awaitmake_request(*request_builder())trio.run(do)
Package: mhubio
# mhubio - glue layer modulesThe mhubio framework provides several modules for importing, converting, and organizing medical files.
Since the input and output of ML models can differ greatly in both file system level storage structure and file format (dicom, nifti, nrrd) for the same modality (e.g., CT scan as input, segmentation as output), the modules in this framework allow easy adaptation to a well-defined and standardized I/O framework across multiple models.
A key concept is that the model pipeline itself does not need to be changed. Instead, conversion and organization modules are used to provide data in the format used to create the model pipeline. Dealing with multiple patients, files, formats, and intermediate steps can quickly overload well-structured code with file system operations, making the code difficult for external readers to understand. Mhubio therefore keeps track of file management internally. The mhubio pipeline is a sequential flow of modules, each of which retrieves and forwards data. Files are then requested not by their relative or absolute path, but by modality and format.
Package: mh-universal-functions
mh_universal_functionsmh_universal_functions is a Python library currently used in Python programs pir.py and rha.py.
(seehttps://www.makeareadme.com/for examples of README.md)InstallationUse the package managerpipto install mh_universal_functions.sudo/usr/local/bin/python3.7-mpipinstallmh-universal-functions==versionUsageimportmh_universal_functionsmh_universal_functions.test()# returns 'Hello world of PyPI'Included functions:def database_update_universal(mysql_const, row, table, value, id1, id1_value, id2, id2_value)def database_read(mysql_const, row, table, id1, id1_value, id2, id2_value)def read_config(_config_filename, _program_name, _log_filename, _hostname)def exit_critical(_program_name, _log_filename, _hostname)def send_telegram_message(telegram_active, telegram_program, telegram_recipient_dict, telegram_message_address,
telegram_message, telegram_picture)def get_mobile_device_presence(_wifi_devices_dict, _router_ip_address, _router_password,
_bluetooth_devices_dict,
_scan_for_device_type,
_calling_software)def test()ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: mh-utils
Utilities for handing ancillary files produced by MassHunter.DocsTestsPyPIAnacondaActivityQAOtherInstallationmh_utilscan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallmh_utilsTo install withconda:First add the required channels$condaconfig--addchannelshttp://conda.anaconda.org/conda-forge$condaconfig--addchannelshttp://conda.anaconda.org/domdfcodingThen install$condainstallmh_utils
Package: mhyt
mhytmhyt is a Python library for
download movies and music from youtubemhyt can run in python 3+examplesfrommhytimportyt_downloadurl="https://www.youtube.com/watch?v=0BVqFYParRs"file="Clouds.mp4"yt_download(url,file)#########################file="Clouds_music.mp3"yt_download(url,file,ismusic=True)The audio example is not fully working because ytdl downloads a webm format. To fix this you can do:frommhytimportyt_downloadurl="https://www.youtube.com/watch?v=0BVqFYParRs"file="Clouds_music.mp3"tmp_file="Clouds_music.webm"yt_download(url,tmp_file,ismusic=True,codec="mp3")Clouds_music.mp3 will be in correct mp3 format. It will create and delete Clouds_music.webm (the tmp file) automatically.InstallingTo install with pip:(sudo) pip install mhytBuilt Withyoutube_dl- to download files from youtubeimageio-ffmpeg- to download ffmpegAuthormatan hLicenseThis project is licensed under the MIT License.created byThis library uploaded and manage usinglibtool
Package: mhyy.py
mhyy.pyPython 米哈云游（云原神）签到功能与相关方法的API安装从PyPi安装mhyy.pypipinstallmhyy.py文档访问https://guangchen2333.github.io/mhyy.py/获取更多细节关于欢迎协作本项目，如果你有任何意见或想法，请提出Issue。如果你喜欢，请给该仓库点一个Star
Package: mia-accounting
DescriptionMia! Accountingis an accounting module forFlaskapplications.
It is designed both for mobile and desktop environments.  It
implementsdouble-entry bookkeeping.  It generates the following
accounting reports:Trial balanceIncome statementBalance sheetIn addition,Mia! Accountingtracks offsets for unpaid payables and
receivables.Live Demonstration and Test SiteThere is alive demonstrationforMia! Accounting.  It runs the
same code as thetest sitein thesource distribution.  It is
the simplest website that works withMia! Accounting.  It is also
used in the automatic tests.If you do not have a running Flask application or do not know how to
start one, you may start with the test site.InstallationInstallMia! Accountingwithpip:pip install mia-accountingYou may also download from thePyPI project pageor therelease pageon theGit repository.DocumentationRefer to thedocumentation on Read the Docs.Change LogRefer to thechange log.CopyrightCopyright (c) 2023 imacat.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 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.Authorsimacatimacat@mail.imacat.idv.tw2023/1/27
Package: mia-api
mia_apiQuickStartIf necessary you need insert PYTHONPATH variable in your bashrcexportPYTHONPATH='/home/user/scripts/mia_api:$PYTHONPATH'First LoginCreate the file .mia_api in your home directory with your credentials sent to you by a mia_api adminusername: MIA_API_USERNAME
password: MIA_API_PASSWORDAlternatively you can set MIA_API_USERNAME and MIA_API_PASSWORD as environment variablesUsing the APIImport the packageimportmia_apiConnectmia_api.connect()by default, the API stayed connected during 30 min.knowing all the bar availablesmybar=mia_api.JuiceBar('test')JuiceBar.available_bars()Get barmybar=mia_api.JuiceBar('MIABAR_stable_v1.2_tom3')knowing all juice availablesmybar.show_menu()Get juicemyjuice=mybar.get_juice('ons_VazaoNat_usinas')Select if you want a historical or operational juicemyjuice.historical()-->returnsdataxarrayifdataset=Truereturnsdatasetfromdatetimeimportdatetimemyjuice.operational(rundate=datetime(2022,6,22,0,0,0))myjuice.operational(rundate=[datetime(2022,6,1,0,0,0),datetime(2022,6,22,0,0,0)])myjuice.operational()FunctionSoon there will by examples
Package: miagis
MIAGIS was created to help automate the process of creating a meatadata file for GIS
data depositions. It is a command line tool that goes through all files and folders
in the current directory and makes a best effort to fill in all of the metadata fields
for the file. The resulting metadata file is saved as GIS_METADATA.json in the current
directory. It is not expected for this initially generated file to be perfect, therefore
the “validate” command of MIAGIS should be used to generate a list of problems with the
metadata that the user needs to address manually.The overall expected workflow is for the user to gather all of their files for the deposition
into a directory with the expected directory structure (explained below), use the “build”
command of MIAGIS to create an initial metadata file, and then use the “validate” command
to get a list of problems to fix and fix them until the “validate” command reports nothing.LinksMIAGIS @GitHubMIAGIS @PyPIDocumentation @PagesInstallationThe MIAGIS package runs under Python 3.7+. Usepipto install.
Starting with Python 3.4,pipis included by default. Be sure to use the latest
version of pip as older versions are known to have issues grabbing all dependencies.Install on Linux, Mac OS Xpython3-mpipinstallmiagisInstall on Windowspy-3-mpipinstallmiagisUpgrade on Linux, Mac OS Xpython3-mpipinstallmiagis--upgradeUpgrade on Windowspy-3-mpipinstallmiagis--upgradeQuickstartFirst create a directory with directories for “layer_data”, “map_data”, and “other”
as necessary. Then run the “build” command.MIAGIS has many options. The simplest use case is:miagisbuildAlthough this will run and generate a metadata file, MIAGIS can do a lot more by
using some of the simplest options. A more common use case is:miagisbuild--remove_optional_fields--add_resources--resource_properties<filepath>--base_metadata<filepath>Detailed descriptions of the options and input files are in thetutorial.MIAGIS’s behavior can be quite complex, so it is highly encouraged to read theguideandtutorial.
There are also examples available in the examples folder on theGitHubrepo.Mac OS NoteWhen you try to run the program on Mac OS you may get an SSL error.certificate verify failed: unable to get local issuer certificateThis is due to a change in Mac OS and Python. To fix it go to to your Python
folder in Applications and run the Install Certificates.command shell command
in the /Applications/Python 3.x folder. This should fix the issue.LicenseThis package is distributed under the BSDlicense.
Package: mian
mian - Mine analysis - Graph block types to altitude in a Minecraft save
game <http://github.com/l0b0/mian>Default syntax:mian [-b|–blocks=<list>] [-l|–list] <World directory>Options:-b,--blocksSpecify block types to include as a comma-separated list, using
either the block types or hex values from the list.-l,--listList available block types and their names (from
<http://www.minecraftwiki.net/wiki/Data_values>).-n,--netherGraph The Nether instead of the ordinary world.--logRender logarithmic output.-s,--saveSave the result to file instead of showing an interactive GUI.Description:Creates a file with a graph of how much the given materials occur at each
vertical layer of the map.Examples:$ mian ~/.minecraft/saves/World1
Creates graph of default materials in World1.$ mian -b 01,dirt,09,sand ~/.minecraft/saves/World1
Ditto, showing only the specified block types.$ mian -b 56,57,58,59,5a,5b -n ~/.minecraft/saves/World1
Graph all the materials new to The Nether.$ mian –list
Show a list of block types which can be searched for.
Package: mianalyzer
MIA - Microscopic Image AnalyzerMIA is a software for deep learning based image analysis. It covers image labeling, neural network training and inference. It can be used for image classification, object detection, semantic segmentation and tracking.InstallationThe easiest way to install MIA is via conda (seehttps://docs.conda.io/en/latest/miniconda.htmlfor installation options).After installation of conda, download theenvironmentfile.Then, open an anaconda prompt and type:cd /path/to/mia_environment.yaml(change/path/to/to the path of the folder with the environment file)conda env create -f mia_environment.yamlwait and follow instructionsto start the softwaretype in an anaconda prompt:conda activate mia_environmentmianalyzerHow to get help?A quickstart guide can be foundhereand the complete user manualhere.Please useimage.scwith themia-tag for general discussion, questions about how to use the software or feature requests. Bugs can be reported directly in theissuespanel on github.ReferenceIf you use this code for your research, please cite:https://www.cell.com/cell-reports-methods/pdf/S2667-2375(23)00146-7.pdfKörber, MIA is an open-source standalone deep learning application for microscopic image analysis, Cell Reports Methods (2023)RequirementsIn general, MIA should run on any system with Linux or windows. You can use the cpu only, but it is highly recommended to have a system with acuda-compatiblegpu (from NVIDIA) to accelerate neural network training.
Package: miaou
miaou是pyzentao规格文件的自助生成工具。宋朝的严羽在《沧浪诗话·诗辨》中说：”大抵禅道惟在妙悟，诗道亦在妙悟”，于是取名 “妙悟 (miaou)”。安装$ pip install -U miaou使用调用miaou.generate()方法生成规格文件importmiaoumiaou.generate(site_url="http://my.zentao.site/zentao",username="admin",password="123456",scanner="selenium",combined_print=True,output_path=".")结果放在 /output_path/pyzentao_specs_timestamp 下面参数说明site_url你家禅道的域名，一般需要加上 zentao 这个前缀，如 “http://my.zentao.site/zentao”，
注意在禅道 v18 版本后默认没有这个前缀dev_url禅道二次开发页面，如 “http://my.zentao.site/zentao/dev-api.html”，默认会由 site_url
加上 dev-api.html 拼凑而成，但在禅道 v18 版本后改为 “http://my.zentao.site/dev-api-index.html”，
所以建议根据你的禅道二次开发页面显式赋值该参数username登录用户名，用于禅道授权password登录密码，用于禅道授权scanner扫描器类型，目前自带扫描器支持 “selenium” 和 “api”，也可以自定义扫描器，详见下文combined_print合并打印规格，默认是 True ，会将规格打印到一个 yaml 文件，否则按 module 打印到不同文件output_path输出的目录，默认是当前目录config传给 scanner 的配置参数，应为 dict 类型扫描器扫描禅道页面以获得规格，目前支持selenium和api，也可以自定义扫描器。selenium使用selenium 4.8.0版本以上，默认使用 chromedriver，可根据你的 Chrome 版本，在chromedriver下载，并
添加到 path 中。如果要使用 firefox 可在参数中指定，例如importmiaoumiaou.generate(...scanner="selenium",config={"driver":"firefox"},)api使用禅道对应的 API 生成规格。调用时指定扫描器类型即可importmiaoumiaou.generate(...scanner="api",...)注意，使用此扫描器生成的规格与禅道文档有一些不同，比如禅道文档中描述的查询 testsuite 的 API 为GET  /zentao/testsuite.json使用selenium扫描器生成的规格即为testsuite:method:GETpath:testsuite而禅道 API 查询到的格式类似于GET  /zentao/testsuite-index.json所以使用api扫描器生成的规格为testsuite_index:method:GETpath:testsuite-index这两种 API 得到的数据是相同的，在转换成pyzentao方法时请以你使用的规格文件为准。自定义扫描器也可以自定义扫描器，从 miaou.Scanner 继承importmiaouclassMyScanner(miaou.Scanner):"""doc string"""def__init__(self,config):...然后需要实现如下方法：open(self, site_url, username, password)一般是获得禅道授权close(self)清扫工作，没有就不写get_module_groups(self, dev_url)获得 API 模块页面链接，也就是后台 - 二次开发 - API页面左边栏模块列表下的那些链接。返回模块链接数组 [url…]get_apis(self, api_url)在指定的模块页面，即 api_url 中获取 API 规格，返回包含dict的数组类似 [{name, method, path, params}]使用自定义扫描器importmiaoumiaou.generate(...scanner=MyScanner(config),...)另，此工具的功能仅在Linux/Python3.10环境下测试，使用其他环境的宝子请自娱自乐 ╮(╯▽╰)╭
Package: mia-processes
mia_processesDocumentationThe documentation is available in mia_processes's website.InstallationA compatible version ofPython(>= 3.5) andpipmust be installed.Depending on the Python setup and OS, the “python3” command can be use as the default Python command.Try:python -VIf it returnsPython 3.x.x, replace all thepython3commands below bypython.If not installed, install it ...Make sure to have pip installed.Try:pip -VIf it returns a path including/python3.x/, replace all thepip3commands below bypip.If not installed, install it ...From PyPIInstall the latest version of mia_processes and its dependencies from the Python Packaging Index:pip3 install mia_processes # depending of the setup, it could be necessary to add --user optionFrom source, for Linux distributions.Install a Version Control System, for examplegit. Depending of your distribution,package management systemcan be different:sudo apt-get install git # Debian like
sudo dnf install git # Fedora 22 and later
# etc.Clone the source codes.Get source codes from Github. Replace [mia_processes_install_dir] with a directory of your choice:git clone https://github.com/populse/mia_processes.git [mia_processes_install_dir]Or download the zip file (mia_processes-master.zip) of the project (green button "Clone or download"), then extract the data in the directory of your choice ([mia_processes_install_dir]):unzip mia_processes-master.zip -d [mia_processes_install_dir]  # In this case [mia_processes_install_dir] becomes [mia_processes_install_dir]/mia_processes-masterInstall the Python module distribution:cd [mia_processes_install_dir]
python3 setup.py install # depending of the setup, it could be necessary to add --user optionRemove the [mia_processes_install_dir] directory:cd ..
rm -r [mia_install_dir]Third-party softwaresMany mia_processes bricks (atomic processes) use third-party softwares. To use these bricks, the correspondingthird-party softwares must be installed.RequirementsIn order to get all the bricks and pipelines proposed by mia_processes some third libraries are required:dipynibabelnilearnnipynipypenitimenitransformsnumpypopulse_db >=2.1.0populse_mia >= 2.2.0reportlabscipystatsmodelstemplateflowtorchLicenseThe whole populse project is open source.Mia_processes is precisely released under the CeCILL software license.All license details can be foundhere, or refer to the license filehere.Support and CommunicationIn case of a problem or to ask a question about how to do something in mia_processes, pleaseopen an issue.The developer team can even be contacted usingpopulse-support@univ-grenoble-alpes.fr.
Package: miarec-ftpfs
miarec_ftpfsMiaRec FTPFS is aPyFilesysteminterface to
FTP/FTPS storage.This a fork of the builtin FTPFS class fromPyFileSystem2project, written by Will McGugan (emailwillmcgugan@gmail.com).The code was modified by MiaRec team to fullfill our needs.Notable differences between miarec_ftpfs.FTPFS and fs.FTPFSRequires Python 3.6+. A support of Python 2.7 is removed.Opener protocol prefixes aremftp://andmftps://for FTP and FTP-over-TLS respectively (instead of the originalftp://andftps://)Add Implicit TLS supportFix bugs in Explicit TLS implementationAutomatically try to re-open FTP connection on the next operation in case of network issues.
Previously, theFTPFSobject was stuck in error state, and any operations on the file system instance, likeopenbin(),listdir(), etc, were failing infinitely.Better error handling. All FTP protocol-specific and SSL errors are converted into correspondingFSErrorexceptionInstallingYou can install FTPFS from pip as follows:pip install miarec_ftpfsThis will install the most recent stable version.Alternatively, if you want the cutting edge code, you can check out
the GitHub repos athttps://github.com/miarec/miarec_ftpfsOpening a FTPFSOpen an FTPFS by explicitly using the constructor:fromfs.ftpfsimportFTPFSFTPFS("demo.wftpserver.com")Or via an FS URL:ftp_fs=fs.open_fs('mftp://test.rebex.net')Or via an FS URL, using TLS:ftp_fs=fs.open_fs('mftps://demo.wftpserver.com')You can also use a non-anonymous username, and optionally a
password, even within a FS URL:ftp_fs=FTPFS("test.rebex.net",user="demo",passwd="password")ftp_fs=fs.open_fs('mftp://demo:password@test.rebex.net')Connecting via a proxy is supported. If using a FS URL, the proxy
URL will need to be added as a URL parameter:ftp_fs=FTPFS("ftp.ebi.ac.uk",proxy="test.rebex.net")ftp_fs=fs.open_fs('mftp://ftp.ebi.ac.uk/?proxy=test.rebex.net')TestingAutomated unit tests are run onGitHub ActionsTo run the tests locally, do the following.Create activate python virtual environment:python -m vevn venv
source venv\bin\activateInstall the project and test dependencies:pip install -e ".[test]"Run tests:pytestDocumentationPyFilesystem WikiPyFilesystem Reference
Package: miarec-smbfs
miarec_smbfsSMB filesystem for PyFilesystem2This is a fork offs.smbfsThe code was modified by MiaRec team to fullfill our needs.Notable differences between miarec_s3fs and fs-s3fsRequires Python 3.7+. A support of older version of Python was removed.The opener protocol prefix ismsmb://(instead of the originalsmb://)RequirementsPyFilesystem2sixPySMBmiarec_smbfssupports Python versions 3.7+InstallationInstall directly from PyPI, usingpip:$pipinstallmiarec_smbfsUsageOpenerUsefs.open_fsto open a filesystem with an SMBFS
URL:importfssmb_fs=fs.open_fs('msmb://username:password@SAMBAHOSTNAME:port/share')The opener can use either an IPv4 address or a NetBIOS hostname, using theNetBIOS name serviceto
find the other token. Otherwise, if NetBIOS is not available, a new SMB
connection can be established by using the IPv4 address and giving the
hostname with thehostnameURL parameter.The following parameters can be passed as URL parameters:timeout,name-port,direct-tcp,hostname, anddomain.Constructorimportmiarec_smbfssmb_fs=miarec_smbfs.SMBFS(host,username="guest",passwd="",timeout=15,port=139,name_port=137,direct_tcp=False,domain="")with each argument explained below:host: either the host name (nottheFQDN)
of the SMB server, its IP address, or both in a tuple.If either the IP address or the host name is not given, NETBIOS is queried to get the missing data.user: the username to connect with, defaults to"guest"for anonymous
connection.passwd: an optional password to connect with, defaults to""for
anonymous connection.timeout: the timeout, in seconds, for NetBIOS and TCP requests.port: the port the SMB server is listening on.name_port: the port the NetBIOS naming service is listening on.direct_tcp: set toTrueif the server is accessible directly
through TCP, leave asFalsefor maximum compatibility.domain: the network domain to connect with, i.e. the workgroup on
Windows. Usually safe to leave as empty string, the default.Once created, theSMBFSfilesystem behaves like any other filesystem
(see thePyfilesystem2 documentation),
except if it was open in the root directory of the server, in which case the
root directory of theSMBFSinstance will be read-only (since SMB clients
cannot create new shares).TestingAutomated unit tests are run onGitHub ActionsTo run the tests locally, do the following.Install Docker on local machine.Create activate python virtual environment:python -m vevn venv
source venv\bin\activateInstall the project and test dependencies:pip install -e ".[test]"Run tests:pytestCreditsmiarec_smbfsis developed and maintained byMiaRecThe original code (fs.smbfs) was developed by:Martin Larralde
Package: miauth
Xiaomi Mi / Nb BLE - Python Lib + CLIInstallationpip install miauthOr clone this repository and runpip install -einside the cloned directory.Running testspython -m pytestortoxin project main directory.Usage examplesAfter installation, you will have access to themiauthcommand line interface (cli):Register / pair with device via Mi EC protocol (generates 'mi_token' file):miauth <device_mac> --registerLogin and retrieve serial number and firmware version via Mi EC protocol:miauth -s -v <device_mac>Retrieve serial number and firmware version via M365 protocol:miauth --m365 -s -v <device_mac>Authenticate and retrieve serial number and firmware version via Nb protocol:miauth --nb -s -v <device_mac>For a full list of the possible commands runmiauth -h.Note: Registering / pairing with devices unpairs the device from all other apps!
If you want to use your device with other apps after pairing, either reinstall or remove / re-add the device inside the app.LicenseSee LICENSE.mdDisclaimerI'm in no way affiliated with Xiaomi or any of their subsidiaries and products. This code has been provided for research purposes only.
Package: mibellisvetlana-package-name
'''
This is a simple example of my package.
from multiply.by_three import multiply_by_three
from divide.by_three import divide_by_threemultiply_by_three(9)
divide_by_three(21)
'''
'''
MIT LicenseCopyright (c) [year] [fullname]Permission 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.
'''