Saravanan666/pypi-org huggingface dataset:
Package: minuteinbox-py
MinuteInbox Temporary E-MailDescriptionCreate temporary e-mails and receive e-mails with MinuteInbox through python! It also parses the E-Mail adress MinuteInbox created for you; so you can directly access last and first name. And incase you needed it, it creates a company name out of them too 🎉ExampleYou'll be able to use this, just as in the following example:fromminuteinboximportcreate_email,get_inboxfromtimeimportsleepass# create an emailminuteinbox=create_email()ifminuteinbox:email=minuteinbox.get('email')first_name=minuteinbox.get('fname')last_name=minuteinbox.get('lname')company_name=minuteinbox.get('company')print('Current E-Mail: '+email+'\n'+'First & Last Name: '+first_name+' '+last_name+'\n'+'Company Name: '+company_name)# get received email bodywhileTrue:inbox=get_inbox()ifinbox!=None:subject=inbox.get('subject')sender=inbox.get('sender')raw_body=inbox.get('raw_body')# raw text bodyclean_body=inbox.get('clean_body')# bs4 parsed bodyprint('\nNew E-Mail titled: "'+subject+'", from: '+sender)print('\n'+'E-Mail Body:'+'\n'+clean_body)breaks(3)Output:Current E-Mail: jahsiah.ayman@toiletkeys.net
First & Last Name: Jahsiah Ayman
Company Name: Ayja LLC

New E-Mail titled: "Meeting Minutes Defined", from: ahane 

E-Mail Body:
The meeting could be pretty intense and overwhelming for all members of the project. Therefore, it is natural that some of the participants are missing some details or slight information although they have taken personal notes on their device or paper. Kind Regards Copy Paste EmailsKnown BugsIf there is weird special characters in the subject or the senders name, MinuteInbox tends to just send an empty response instead. That in return causes an error in this code. I've not found a bug fix for that yet.DisclaimerI'm not associated in any way with MinuteInbox.com, if requested by them I will take down this repository. In this case please prove your Identity and send me an E-Mail. You can check my profile to find it.
Package: minuteman
MinutemanRepresent and transform expressions of time. For example:5 minutes per day in a year in days = 1.27 days.1 hour per day in a decade in weeks = 21,72 weeks10 months a year in 4 decades in years = 33.33 yearsInstallpip install minutemanUsageBasic usage: from humanreadable expression to a numberfromminuteman.parserimportparse# Case 1: calculation of daily habbit adding up.expression="5 minutes a day in 1 year in days"result=parse(expression)print(result)# 1.2673611111111112 days# Same result with rounding to given decimals.result=parse(expression,2)print(result)# 1.27 days# Case 2: how many actual years one spends working in 40 year career.expression="10 months a year in 4 decades in years"result=parse(expression,0)# indicating no decimals.print(result)# 33 yearsMore fine tune usage: ignoring humanreadable strings and using straight number inputfromminuteman.coreimporttransform,TimeExpressionRequestfromminuteman.unitsimportTimeExpression,UnitOfTime# Build a time expression request from parts# Case: 8 hours a day in a year in monthsrequest=TimeExpressionRequst(original=TimeExpression(amount=8,unit=UnitOfTime.HOURS,),in_time=TimeExpression(amount=1,unit=UnitOfTime.DAYS),comparison=TimeExpression(amount=1,unit=UnitOfTime.YEARS),)resolution=UnitOfTime.MONTHSresult=transform(request,resolution)# Result is a TimeExpression instance with amount & unit.print(result)# TimeExpression(amount=4.055555555555555, unit=UnitOfTime.Months)Supported units of time:SecondsMinutesHoursDaysWeeksMonthsYearsDecades
Package: minvime
MinViME - Minimum Viable Model Estimator:copyright: 2020 John HawkinsSTATUS: FunctionalFor many business problems it is worthwhile understanding how accurate a
machine learning model would need to be before you try and build it.This information could be useful in prioritising projects or determining the
quantity and quality of data that will be needed. Extremely accurate models
for complicated problems typically require large amounts of data.This application is a tool that allows you to estimate
what the minimum performance characteristics would need to be for a machine
learning problem. To make this estimate you will need to supply parameters
that describe the costs and benefits of the context in which it will be used.If you use MinViME in academic work please reference the following paper:Hawkins, John.,(2020), Minimum Viable Model Estimates for Machine Learning Projects,
Proceedings of the 6th International Conference on Computer Science, 
Engineering And Applications (CSEA 2020), pages 37-46, Issue 18, Volume 10,
DOI: 10.5121/csit.2020.101803For Binary Classification ProblemsThe application will make the estimate in terms of the ROC plot characteristics
that satisfy the requirements. The constraints need to be provided as:A cost/benefit payoff matrixThe required ROIInformation about the volume and frequency of the event you are predicting.See examples in thescripts directoryFor Regression/Time Series ProblemsIn ProgressThe application will make an estimate in terms of the minimum RMSE, MAE, and MAPE.
You will need to specify how the difference between actual and predicted values
will affect the business outcome. This can be as either proportional costs for
errors that are too high ot too low, or as costs for predictions above a specified
margin of error.CaveatsIn order to produce a MAPE score regardless of the distribution we add a nominal
value of 0.0001 to calculate the percentage error when actuals are zero.
There are many situations in which this would not be acceptable, for example,
when the quantities being prediced are in fact very low value real numbers.
If your target distribution has many zero values and
is confined to values that very close to zero then please ignore the MAPE estimates.UsageYou can use this application in multiple ways. The core application will launch a Flask
web application through which you can enter the parameters of the business problem you
require an estimate for.Web ApplicationThis web application can be launched via the runner:./minvime-runner.pyOr you caniInvoke the directory as a package:python -m minvimeOr simply install the package and use the command line application directlyInstallationInstallation from the source tree:git clone https://github.com/john-hawkins/minvime
cd minvime
python setup.py install(or via pip from PyPI):pip install minvimeNow, theminvimecommand will launch the applicationminvimeLibraryAlternatively you can use minvime as a library of functions to use inside your own
applications or Jupyter Notebooksimport minvime as mvimeAcknowledgementsPython package built using thebootstrap cmdline templatebyjgehrcke
Package: minx
1.Estimator功能：计算分类结果的precision,recall,f1,auc,mAP,(precision=recall)'s threshold
用法示例：
    from minx import Estimator
    labels_name = ['label1', 'label2', 'label3']
    est = estimator(labels_name)
    pred_scores = [[0.1,0.3,0.6],[0.2,0.7,0.1],[0.5,0.8,0.1]]
    true_labels = [2,1,0]
    result, values = est.estimate(pred_scores, true_labels)
其中,result={"report":report, "auc_text":auc_text, "mAP_text":mAP_text, "p_r_equal_text":p_r_equal_text}，里面所有value均为格式化后的string，可直接打印
而values与result格式基本一致，但字典中的value为list，保存了每个标签具体的值2.Dialogue功能：对话文本处理
用法示例：
    from minx import Dialogue
    test_dg = Dialogue()
    input_data = [{"id": 1, "time": 100, "text": "1"}, {"id": 2, "time": 100, "text": "2"},
                  {"id": 3, "time": 100, "text": "3"}, {"id": 2, "time": 102, "text": "21"},
                  {"id": 2, "time": 10200, "text": "22"},{"id":2, "time":10211, "text":"23"}]
    ## 按某一关键字从jsonl中聚合对话，支持jsonl中的item为dict或list
    results = test_dg.merge_by_key(input_data, merge_key="id", sort_key="time")
Package: mio-cli
Moore.ioCommand Line Interface ClientAboutFrom theUser Manual'sExecutive SummaryThe Moore.io Command Line Interface (CLI) Client orchestrates disparate free and/or open source tools into a single, complete, straightforward and integrated toolchain for hardware engineers.  The CLI consists of a succinct and powerful command set which developers use via a terminal on their operating system (Windows/Linux/OSX).Installationmiocan be installed directly frompip3:pip3 install mio-cliDeveloper GuideDemo ProjectUsagemio [--version] [--help]
  mio [--wd WD] [--dbg] CMD [OPTIONS]

Options:
  -v, --version
    Prints the mio version and exits.
  
  -h, --help
    Prints the overall synopsis and a list of the most commonly used commands and exits.
    
  -C WD, --wd WD
    Run as if mio was started in WD (Working Directory) instead of the Present Working Directory `pwd`.
   
  --dbg
    Enables debugging outputs from mio.

Full Command List (`mio help CMD` for help on a specific command):
   Help and Shell/Editor Integration
      doctor         Runs a set of checks to ensure mio installation has what it needs to operate properly
      help           Prints documentation for mio commands
   
   Project and Code Management
      init           Starts project creation dialog
      gen            Generates DV source code via the UVMx template engine
   
   IP and Credentials Management
      install        Install all IP dependencies from IP Marketplace
      login          Start session with IP Marketplace
      package        Create a compressed (and potentially encrypted) archive of an IP
      publish        Publish IP to IP Marketplace (must have mio admin account)
   
   EDA Automation
      !              Repeat last command
      regr           Runs regression against an IP
      sim            Performs necessary steps to simulate an IP with any simulator
      
   Manage Results and other EDA Tool Outputs
      clean          Manages outputs from tools (other than job results)
      cov            Manages coverage data from EDA tools
      dox            HDL source code documentation generation via Doxygen
      results        Manages results from EDA tools
Package: miongo
Yet another MongoDB ORM for Python.
Signals included!(Note: signals can be used independently from miongo models)Still in development, feedback is highly appreciated.Usage ExamplesInstallation:pip install miongoModelsHere’s a simple example of model usage:#!/usr/bin/env python
import pymongo
from miongo import models

# this is always required
# mingo do not implement mongodb connection, you should do that
models.mongodb_database = pymongo.MongoClient().test_database


class TestModel(models.Model):
    _collection = 'testmodel'

    uid = models.Field()
    name = models.Field()
    enabled = models.Field(default=True)

# creating and saving
model = TestModel()
model.uid = 1
model.name = 'Antony'
model.save()

# finding in db
model = TestModel()
model.find({'uid': 1})
print model.uid  # 1
print model.name  # Antony
print model.enabled  # TrueSignalsSignals can be used independently with your models too! Just usesignals.SignalEmitterMixin, specifyAVAILABLE_SIGNALSand callself.emit_signal(signal_type)to fire a signal when needed.Here’s an example of implementing before and after save signals:#!/usr/bin/env python
import pymongo
from miongo import signals, models

models.mongodb_database = pymongo.MongoClient().test_database

# signals.SignalEmitterMixin is important here
# it also can be used with other model classes
class TestModel(models.Model, signals.SignalEmitterMixin):
    _collection = 'testmodel'

    BEFORE_SAVE = 0
    AFTER_SAVE = 1
    AVAILABLE_SIGNALS = [BEFORE_SAVE, AFTER_SAVE]

    name = models.Field()

    def save(self):
        self.emit_signal(self.BEFORE_SAVE)
        print 'Saving now!'
        super(TestModel, self).save()
        self.emit_signal(self.AFTER_SAVE)

# let's define function that will be used by signal
# you may use instance to modify object
def signal_function(signal_type, instance):
    if signal_type == TestModel.BEFORE_SAVE:
        print 'Before save'
    elif signal_type == TestModel.AFTER_SAVE:
        print 'After save'

model = TestModel()

TestModel.connect_to_signal(TestModel.BEFORE_SAVE, signal_function)
TestModel.connect_to_signal(TestModel.AFTER_SAVE, signal_function)

model.save()

# output is:
#
# Before save
# Saving now!
# After save(Note signals can be connected to the instance too)CreditsAuthor:
Anton Kasyanov (antony.kasyanov@gmail.com)Special thanks to:
Ruslan Didyk, Igor Emelyanov
Package: miot
miotModular Internet of ThingsSTATUS:  PRE-ALPHA  ** UNSTABLE DO NOT INSTALL **
DATE:   19 Apr 2021
VERSION: 1.0.42
- WARNING - Unstable development version
- Not feature complete
- Under development
- Not ready for internal testingA Pre-Alpha release:Is still under development and considered unstableMay have had limited or no internal testing.May not be feature completeMay have features that are partially complete or not working.May have known or unknown bugsMay operate in an unexpected way.May contain output debugging data to logs or screen.Is NOT supported: Use at your own risk.Please do not raise tickets for bugs found in this release.INFORMATIONThis is the command line control shell for all modules.FEATURES:No manual editing of config files.Configure all MIoT modules from one simple shellinstall/uninstall other modulesstart/stop and get status of installed modulesPLATFORMS- Linix (Mint)  -   tbc
- Linux (Other) -   Untested
- Raspbarian    -   tbc
- Windows       -   Currently UnsupportedPREREQUISITES* Python 3
* PipX
    sudo apt-get install python3-pip3
    pip3 install pipxINSTALLATIONpipx ensurepath
pipx install miotOld manual installationcd ~
git clone https://github.com/automation-itspeedway-net/miot.git
miot/setupUPGRADEcd ~/miot
git pull
./setupCONFIGURE MQTT SERVERThis step is only required if you are installing MIOT on a different server than your MQTT broker or if you are using authentication (Which you should be).miot set mqtt.host 192.168.1.1
miot set mqtt.port 1883
miot set mqtt.username MyUsername
miot set mqtt.password MyPasswordHOW TO USE ITmiot is a command-line utility that is used to control and configure your home automation modules.You can view the help screen by typing any one of the following:
miot --help
miot -h
miot /?The next set of commands are used to control the modules you have selected to be part of your system. You can choose to install/uninstall, enable/disable or start/stop their services.miot install <module>
miot remove <module>
miot uninstall <module>
miot enable <module>
miot disable <module>
miot start <module>
miot stop <module>
miot restart <module>
miot status <module>The following commands are only available after you have run 'miot setup':Configuration of miot is performed from the command line (not by editing huge configuration files):miot set <key> <value>
miot get <key>After configuring MQTT, you can send low level MQTT messages:miot send [host] <topic> <message>You can also usemiotto snoop on MQTT messages:miot snoop [host] <topic>
Package: mip
Python MIP (Mixed-Integer Linear Programming) ToolsPackage website:http://python-mip.comPython MIP is a collection of Python tools for the modeling and solution
of Mixed-Integer Linear programs (MIPs). MIP syntax was inspired byPulp. Just likeCyLPit also provides access to
advanced solver features like cut generation, lazy constraints, MIPstarts
and solution Pools. Porting Pulp and Gurobi models should be quite easy.Some of the main features of MIP are:high level modeling: write your MIP models in Python as easily as in
high level languages such asMathProg:
operator overloading makes it easy to write linear expressions in Python;full featured:cut generators and lazy constraints: work with strong formulations with a
large number of constraints by generating only the required inequalities
during the branch and cut search;solution pool: query the elite set of solutions found during the search;MIPStart: use a problem dependent heuristic to generate initial feasible
solutions for the MIP search.fast: the Python MIP package calls directly the native dynamic loadable
library of the installed solver using the modern pythonCFFImodule; models
are efficiently stored and optimized by the solver and MIP transparently
handles all communication with your Python code; it is also compatible
with thePypyjust in time compiler, meaning that
you can have a much better performance, up to 25 times faster for the
creation of large MIPs, than the official Gurobi python interface
which only runs on CPython;multi solver: Python MIP was written to be deeply integrated with the
C libraries of the open-source COIN-OR Branch-&-CutCBCsolver and the commercial solverGurobi; all details of communicating with
different solvers are handled by Python-MIP and you write only one
solver independent code;written in moderntypedPython 3 (requires Python 3.6 or newer).ExamplesMany Python-MIP examples are documented athttps://docs.python-mip.com/en/latest/examples.htmlThe code of these examples and additional ones (published in tutorials) can be downloaded athttps://github.com/coin-or/python-mip/tree/master/examplesDocumentationThe full Python-MIP documentation is available athttps://docs.python-mip.com/en/latest/A PDF version is also available:https://python-mip.readthedocs.io/_/downloads/en/latest/pdf/Mailing listQuestions, suggestions and feature request can be posted atDiscussions.Build status
Package: mipa
MiPAOverview日本語版MiPA is a Misskey Bot Framework created to allow forDiscord.py-like coding.About MiPACThe API wrapper functionality provided by MiPA is managed by a library calledMiPAC. Since the amount of work is significantly higher than that of MiPA, we are looking for people to work with us.Supported Misskey VersionsMisskey Official v13Misskey Official v12Misskey Official v11ExamplesimportasynciofromaiohttpimportClientWebSocketResponsefrommipacimportNotefrommipac.modelsimportChatMessagefrommipa.ext.commands.botimportBotclassMyBot(Bot):def__init__(self):super().__init__()asyncdef_connect_channel(self):awaitself.router.connect_channel(['main','home'])asyncdefon_ready(self,ws:ClientWebSocketResponse):awaitself._connect_channel()print('Logged in ',self.user.username)asyncdefon_reconnect(self,ws:ClientWebSocketResponse):awaitself._connect_channel()asyncdefon_note(self,note:Note):print(note.author.username,note.content)asyncdefon_chat(self,message:ChatMessage):print(message.user.username,message.text)ifmessage.text=='hello':awaitself.client.chat.action.send(f'hello!{message.user.username}',user_id=message.user.id)if__name__=='__main__':bot=MyBot()asyncio.run(bot.start('wss://example.com/streaming','your token here'))For more examples, please see theexamples folder. If you don't know how to do what you want in the examples, please feel free to create an issue.LICENSEThis project is provided under theMIT LICENSE.MiPA has been inspired by Discord.py in many ways. Therefore, in places where we use the source code of Discord.py, we specify the license of Discord.py at the beginning of the file. Please check the code for details.Special ThanksDiscord.pyWe have been inspired by many aspects of Discord.py, such as the mechanism of Cogs and the management of tasks and states.Documentation*Discord Server
Package: mipac
MiPACOverview日本語のREADMEもありますThis library is the Core of MiPA.MiPAC is an Api Wrapper that supports Misskey v11, 12, and 13.
It absorbs API differences between versions, etc., which you don't have to worry about originally.[!IMPORTANT]Extensive work is currently underway. Please seeherefor more information.
If you are installing from GitHub for some reason, we recommend using thesharedbranch with the following command.pip install git+https://github.com/yupix/Mi.py.git@sharedSupported MisskeyIndicators of supportstatusmeaning〇Operation verified, priority support△confirmation of operation, add support for features as and when issues, etc. come in.×Not supported and not intended for usenameversionsupportedMisskey Officialv13 or later〇Misskey Officialv12△Misskey Officialv11△If you are using a non-official Fork and it is not working properly, please send us a link to your Fork repository and server in an Issue and we may be able to assist you.UsageMiPAC has two repositories, PyPi and its own repository, PyPi is released after it is relatively stable, while the own repository is built and released with each commit.We hope you will use whichever you prefer.https://onedev.akarinext.org/yupix/mipac-sync/MiPAC/~packages#stable build(recommended)
pip install mipac

#latest build
pip install --extra-index-url https://onedev.akarinext.org/yupix/mipac-sync/MiPAC/~pypi/simple/ mipacimportasynciofrommipac.clientimportClientasyncdefmain():client=Client(url,token)awaitclient.http.login()api=client.apinote=awaitapi.note.action.send('Hello World')print(note.author.name,note.content)if__name__=='__main__':asyncio.run(main())NotesSome server (instance) versions may not work properly.One of the features of MiPAC is that it is created so that you do not have to worry about the changes that occur in each version of v11, v12, and v13 as much as possible. However, even in v13, which is the current latest version, some items have been removed or increased within v13. As a result, there may be some parts that have not been fully followed. Therefore, if you find such items, please send an Issue with the version of the server you are using and the name of the endpoint that cannot be used.It is not expected that you will instantiate the model yourselfMiPAC models often takeclientas a keyword argument and use it to generate theapiproperty. However, since it is a feature in the middle of support, that part may be omitted, andclientmay be added as a necessary argument to instantiate the model after release. Also, other arguments may be changed to update the model. Therefore, we will not notify you about changes in arguments via CHANGELOG or other means.LICENSEMiPAC is provided withMIT LICENSE.Documentation*Discord Server
Package: mipack
My Implemented PackagePractice of development and deploy codes. 😄This repo will be used to create a package by refering this structure.Anyone can be install this library from pypi from this link:https://pypi.org/project/mipack/pip install mipackQ. How to manage packages? see fromToolsUsed tools as follows. 🔥github action: continuous integration.sphinx: document is created along with package codes.streamlit: streaming dashboard for exploration.wandb: daashboard for states of models.DeployDeploy to pypi as follows. 🥳# setup.py version up
# doc/conf.py version up
python setup.py bdist_wheel
python -m twine upload dist/*.whlDocumentationUpdate documentation using sphinx.sphinx-apidoc -f -o docs mipackServing the documetation.sphinx-autobuild --host [IP] --port [PORT] docs docs/_build/html