Saravanan666/pypi-org huggingface dataset:
Package: miniirc-matrix
miniirc_matrixA wrapper for miniirc (GitHub,GitLab) to allow bots or clients made in
miniirc to join Matrix rooms with minimal code changes. Requires Python 3.8 or
later.How to useTo use miniirc_matrix, you already need to know how to use miniirc (GitHub,GitLab). Instead of creating aminiirc.IRCobject, however, you need to
useminiirc_matrix.Matrix.ipis the address of the Matrix homeserver.portis optional and will default to 443 if not specified and ifipdoesn't have a port.There is atokenkeyword argument that must contain the Matrix token.Example:irc = miniirc_matrix.Matrix('matrix.org:443', token='my_token')Channel names are currently room IDs and start with!. You may use a Matrix
room alias (for example#matrix:matrix.org) in place of a room ID, however.
Hopefully one day alias support will be added so that channel names can
correspond to alias names.Formatting is translated to and from Matrix's custom HTML format. Note that
colours are not supported in incoming messages, although they mostly work in
outgoing messages.Obtaining a tokenYou must obtain a token to use miniirc_matrix. You can do this withminiirc_matrix.login(homeserver_address, username, password).There is alsominiirc_matrix.logout(homeserver_address, token)andminiirc_matrix.logout_all(homeserver_address, username, password)if you wish
to invalidate your token.Supported commandsThePRIVMSG(includingCTCP ACTION/irc.me),NOTICE,TAGMSG,JOIN,
andPARTcommands should work as expected.Note that events sent before the client connects to Matrix are ignored. Your
system must have an accurate clock for this to work properly.InstallationYou can installminiirc_matrixwithpip install miniirc_matrix.
Package: minijson
MiniJSONMiniJSON is a codec for a compact binary representation of a superset of JSON (binary values)
are supported.UsageRefer to thedocumentationfor use.If there are no binary wheels precompiled for this platform, you will need to
compile it yourself.
Alternatively, you canfile an issueand I'll do my best to compile a wheel for you.In order to do that you must haveCythoninstalled.Run the Dockerfile to launch unit tests locally.
Package: mini-judge
Mini JudgeSimple implementation of LLM-As-Judge for pairwise evaluation of Q&A models.InstallationInstall the package using pip:pip install mini-judgeUsageFirst, set the OPENAI_API_KEY environment variable to your OpenAI API key.
Then, you can run the following command to evaluate the candidate answers incandidate_answers_pathagainst the reference answers inref_answers_pathusingjudge_modelas the judge model.mini-judge \
--judge_model <judge_model> \
--questions_path <questions_path> \
--candidate_answers_path <candidate_answers_path> \
--ref_answers_path <ref_answers_path> \
--output_path <output_path>To run a quick demo, use the following command to evaluate the candidate answers inexample_data/candidate_answers.jsonlagainst the reference answers inexample_data/ref_answers.jsonlusing GPT-4 as the judge model.mini_judge --output_path <output_path>Data FormatAll input data files are presumed to be injsonlformat.Thecandidate_answersandref_answersfiles should have each line as a json with ananswertag.Similarly, the questions file should have json lines with aquestiontag.All other tags will be ignored.ReferencesLianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric. P Xing, Hao Zhang, Joseph E. Gonzalez, & Ion Stoica. (2023). Judging LLM-as-a-judge with MT-Bench and Chatbot ArenaArXiv.
Package: minikservices
Minikube Servicesminikservicesis a small and very simple python project that aims to help with the start and stop ofMinikubeservices.Instead of creating multiple terminal tabs to expose minikube services, you can usekservicecommand line tool to start and stop services. It will also display the exposed services and its addresses.Build/Dev localgit clone https://github.com/dszortyka/minikservices.git
cd minikservices
python3 -m venv .pyenv
source .pyenv/bin/activate
pip install -r requirements.txt
pip install . 
kservice -hPython Package (PyPI)pip install minikservicesUsagekservice --start service1 service2
kservice --start service1 service2 -n namespace

kservice --stop service1 service2
kservice --stop service1 service2 -n namespace

kservice --startall
kservice --stopall

kservice --statusHow it worksThe application will start the minikube service in background and store and temp file in /tmp folder.If you have an Application deployed in two different namespaces and run the--startoperation without specifying the -n (namespace), it will start the application on both namespaces. The same is valid for--stop--startalland--stopallworks in the same way, it will start all services in all namespaces unless you specify which-n(namespace) in want.--statuswill print a table with service names, namespace and the current URL for the exposed services.❯ kservice --start simple-flask-app

❯ kservice --status
+-----------+-----------------------------------------+------------------------+
| Namespace |               Service Name              |          URL           |
+-----------+-----------------------------------------+------------------------+
|   argocd  |     argocd-applicationset-controller    |                        |
|   argocd  |            argocd-dex-server            |                        |
|   argocd  |              argocd-metrics             |                        |
|   argocd  | argocd-notifications-controller-metrics |                        |
|   argocd  |               argocd-redis              |                        |
|   argocd  |            argocd-repo-server           |                        |
|   argocd  |              argocd-server              |                        |
|   argocd  |          argocd-server-metrics          |                        |
|  default  |             simple-flask-app            | http://127.0.0.1:64888 |
|  flaskapp |             simple-flask-app            | http://127.0.0.1:64885 |
+-----------+-----------------------------------------+------------------------+
Package: minilayer
MiniLayer CLIInstallationpip install minilayer[generate]Feature Generation:Usage: python -m minilayer generate devcontainer-feature [OPTIONS]
                                                        FEATURE_DEFINITION
                                                        OUTPUT_DIR

Arguments:
  FEATURE_DEFINITION  [required]
  OUTPUT_DIR          [required]

Options:
  --help                          Show this message and exit.Input for feature generation is afeature-definition.jsonfile
This is anextendedversion of thedevcontainer-feature.jsonfile withadditional fields:{...regular devcontainer-json fields  like id,name,description etc...# dependencies are list of features and options  (those will be installed as prerequisites to your feature)"dependencies":[{"feature":"ghcr.io/devcontainers-contrib/features/asdf-package:latest","options":{"plugin":"act","version":"latest"}}],# This command will be executed after the dependency feature list has been installed"install_command":"echo'Done'",# this example test scenario checks the default options (empty options dict), each test_command should exit wth code `0` if your feature is installed correctly."test_scenarios":[{"name":"test_defaults","image":"mcr.microsoft.com/devcontainers/base:debian","test_commands":["act--version"],"options":{}}]}redirect input{..."options":{"version":{"type":"string","default":"latest","description":"Selecttheversionofacttoinstall2."}},# you can also redirect one of your actual devcontainer-feature.json options values into a dependency input, note the `$options.version` pointer to the asdf-package version option"dependencies":[{"feature":"ghcr.io/devcontainers-contrib/features/asdf-package:latest","options":{"plugin":"act","version":"$options.version"}}],...}Usage examplethis will generate the Elixir feature
It assumes you have the minilayer cli already installedgitclonehttps://github.com/devcontainers-contrib/cli--depth1cdcli


minilayergeneratedevcontainer-feature"./test/resources/test_feature_definitions/elixir-asdf/feature-definition.json""./output_dir"
Package: minilog
minilogA minimalistic logging wrapper for Python.UsageEvery project should utilize logging, but for simple use cases, this requires a bit too much boilerplate. Instead of including all of this in your modules:importlogginglog=logging.getLogger(__name__)defgreet(name):log.info("Hello,%s!",name)if__name__=="__main__":logging.basicConfig(level=logging.INFO,format="%(levelname)s:%(name)s:%(message)s",)with this package you can simply:importlogdefgreet(name):log.info("Hello,%s!",name)if__name__=="__main__":log.init()It will produce the exact same standard libraryloggingrecords behind the scenes with automatic formatting for non-strings.InstallationInstall this library directly into an activated virtual environment:$ pip install minilogor add it to yourPoetryproject:$ poetry add minilogDocumentationTo view additional options, please consult thefull documentation.
Package: minilsap
minilsapA Python module to solve the linear sum assignment problem (LSAP) efficiently.
Extracted from SciPy, without significant modifications.This module is useful in cases when you need an efficient LSAP solver but you
do not want to depend on the full SciPy library.Currently, the module depends on NumPy for array management. This may be
relaxed in the future if Python's stable API gets extended with functions to
manage Python buffer objects.LicenseThe code in this repository is licensed under the 3-clause BSD license, except
for files including a different license header.The LSAP solver copied from SciPy is also licensed under the 3-clause BSD
license.
Package: minimail
# minimailMinimail is a teeny tiny mail sender.## InstallationEither clone the GitHub repo or download and untar a release, and runsudo python setup.py installor just runsudo pip install minimail## ConfigurationThe first time you run minimail, you’ll be prompted for SMTP configuration details.HostPortEmail addressYou can change these later by runningminimail -c## UsageBasic usage isminimail [recipient] [subject] [body line 1] [body line 2] …You can leave off arguments, and minimail will prompt for them, however multiline
bodies are currently only possible as initial arguments.Minimail will then prompt for your email password. This is never stored, but
you should check the source to verify that for yourself.
Package: minimailer
MinimailerMinimailer is a small script to send automated emails.It's feeded from a template file and from a CSV data file, sending one email
per CSV row after applying substitutions according to template rules that matches
the data columns.DependenciesMinimailer has minimal dependencies:Python 3.A sendmail-compatible program (defaults tomsmtp).It was successfully tested inDebianbut should run in
other systems without problems.InstallationMinimailer can live anywhere in your$PATHor run directly from the repository.You can also install Minimailer fromPyPIusingpip install minimailerBasic usageMinimailer only needs two parameters, the template and the data filenames:minimailer message.tmpl data.csvCSV file formatMinimailer uses the first row in the CSV file as field names.All other rows are considered as data.There are no constraints about which or how many fields can be used.The only requirement is that one of those fields should be used as the email address source.By default, the field namedemailis used for email addresses, and can be
overriden by the--recipient-field-addressoption.Template file formatMinimailer relies in Python 3'sstr.format()
syntax, meaning that any text
file can be used as long as:Template variables are enclosed in curly braces like{this}.It implements a valid email message, i.e, it's compatible if the format specified byRFC 2822.Advanced usageMinimailer also comes with optional parameters allowing things such as handling
email addresses in a customcontactfield as indicated above:minimailer message.tmpl data.csv --recipient-field-address 'contact'Or using a customsendmailinvocation (in this case,msmtpwith the account
namemy-account):minimailer message.tmpl data.csv --sendmail-command 'msmtp -a my-account'Checkminimailer --helpfor details and more invocation options.ExamplesCheck the following files for examples in how to structure your template file
and data source:Data source example.Email template example.
Package: minimal
Copyright (c) 2017 Geoffrey A. ReedPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.Description: # Minimal: A minimal Python package.Extended description goes here.Keywords: sample setuptools developmentPlatform: UNKNOWNClassifier: Development Status :: 3 - AlphaClassifier: Intended Audience :: DevelopersClassifier: Topic :: Software Development :: Build ToolsClassifier: License :: OSI Approved :: MIT LicenseClassifier: Programming Language :: Python :: 2Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6
Package: minimal-activitypub
Minimal-ActivityPubMinimal-ActivityPub is a minimal Python implementation of the ActivityPub rest API used byMastodon,Pleroma,
andTakahe. This implementation makes use of asyncio where appropriate. It is intended to be used as a library by
other applications. No standalone functionality is provided.Minimal refers to the fact that only API calls I need for my other projectsFedinesiaandTootbotare implemented.DO NOTexpect a full or complete implementation of allActivityPub APIfunctionality.For more details have a look at theDocumentationContributingIssues and pull requests are welcome.Minimal-ActivityPub is usingpre-commitandpdm. Please install and use both pre-commit and pdm if you’d
like to contribute.LicensingMinimal-ActivityPub is licences under licensed under theGNU Affero General Public License v3.0Supporting Minimal-ActivityPubThere are a number of ways you can support Minimal-ActivityPub:Create an issue with problems or ideas you have with/for Minimal-ActivityPubYou canbuy me a coffee.You can send me small change in Monero to the address below:Monero donation address:8ADQkCya3orL178dADn4bnKuF1JuVGEG97HPRgmXgmZ2cZFSkWU9M2v7BssEGeTRNN2V5p6bSyHa83nrdu1XffDX3cnjKVu
Package: minimal-bibtex-io-sebastian-achim-mueller
Format according to “Tame the BeaST” by Nicolas Markey, Oct. 2009.@TYPE{citekey, key = {value},...}, This will be loaded as
bib-entry of typeTYPE@string{key = {value},...}@preamble{value}FunctionsloadsLoads the raw bytes of a bibtex-file into a dictionary and makes only minimal assumptions on the structrue but not on the content.normalizeTakes the raw bib-dictionary and tries to decode and normalize it.
All optionally. It strips away leading, trailing, and consecutive whitespaces.
It converts all keys, entrytypes, and citekyes to lowercase.
It decodes keys and/or values to ‘’ascii’’.dumpsDumps a normalized (allasciistring) bib-dictionary into a bib-file-string.Exampleimportminimal_bibtex_ioasmbib# Read bytes, make no assumptions on keys or encodingwithopen("minimal_bibtex_io/tests/resources/example.bib","rb")asf:rawbib=mbib.loads(f.read())# Try to decode to ascii and set keys to lower casebib=mbib.normalize(rawbib)entry={"type":"book","citekey":"kasperle1887","fields":{}}entry["fields"]["title"]="The hills are green"entry["fields"]["year"]=1887entry["fields"]["whateverkeyiwant"]="This is only relevant for me."bib["entries"].append(entry)# eventually ...withopen("my.bib","wt")asf:f.write(mbib.dumps(bib,indent=4,width=79))
Package: minimal-binary-coding
Didactical python package implementing minimal binary coding and decoding.How do I install this package?As usual, just download it using pip:pipinstallminimal_binary_codingTests CoverageSince some software handling coverages sometime get slightly different results, here’s three of them:Usage examplesfromminimal_binary_codingimportminimal_binary_codingminimal_binary_coding(0,1)# εminimal_binary_coding(0,2)# 0minimal_binary_coding(1,2)# 1minimal_binary_coding(0,3)# 0minimal_binary_coding(1,3)# 10minimal_binary_coding(2,3)# 11minimal_binary_coding(0,4)# 00minimal_binary_coding(1,4)# 01minimal_binary_coding(2,4)# 10minimal_binary_coding(3,4)# 11minimal_binary_coding(0,5)# 00minimal_binary_coding(1,5)# 01minimal_binary_coding(2,5)# 10minimal_binary_coding(3,5)# 110minimal_binary_coding(4,5)# 111minimal_binary_coding(0,6)# 00minimal_binary_coding(1,6)# 01minimal_binary_coding(2,6)# 100minimal_binary_coding(3,6)# 101minimal_binary_coding(4,6)# 110minimal_binary_coding(5,6)# 111minimal_binary_coding(0,7)# 00minimal_binary_coding(1,7)# 010minimal_binary_coding(2,7)# 011minimal_binary_coding(3,7)# 100minimal_binary_coding(4,7)# 101minimal_binary_coding(5,7)# 110minimal_binary_coding(6,7)# 111
Package: minimaldb
MinimaldbMinimaldb is a very simple document oriented database.Supported Python VersionsMinimaldb is tested with Python 3.7InstallationFrom PyPi:$ pip install minimaldbExample CodefromminimaldbimportMinimalDBdb=MinimalDB("database_name.db")# Setting a valuedb.set("key_name",value)# Getting a valuedb.get("key_name")# Deleting a valuedb.delete("key_name")# Updating a valuedb.update("key_name",value)
Package: minimal-example-project
Minimal Example ProjectThis repo provides a complete example for a PRO Python
project that you and your fellow developers will be proud of.Source:https://github.com/michel-lacle/minimal_example_projectIt provides:a pip installable project.module entry point examples, so you can run your modules from the command line.a pytest based testing framework.example commands for various workflows.scripts to publish project to pypi repo.Developer WorkflowsInitialize the python projectThis you only do once after you clone this repo.# setup your environment to put all python dependencies in the env folder
python3 -m venv env

# set python path to use our isolated python environment
. env/bin/activate

# install the package in editable mode so you can
# develop & test without having to reinstall the package
python3 -m pip install -e ./Development & TestingThis you do every time open a new shell to develop, run, and test your code.# set python path to use our isolated python environment
. env/bin/activate

# install project dependencies
python3 -m pip install -r requirements.txt

# add a project dependency
python3 -m pip install <new dependency>

# then you need to save the dependency
python3 -m pip freeze > requirements.txt

# run all tests
python3 -m pytest

# install the package in non editable mode
python3 -m pip install ./

# uninstall the package
python3 -m pip uninstall minimal_example_project

# run the package main
python3 -m merkle_example
Package: minimalkeys
Compute the minimal keys for a collection of strings or sequences. This is
intended for use in presenting data in a user interface.For example, the minimal keys of["assignments/alice/hw1.txt", "assignments/bob/hw1.txt"]are["alice", "bob"].The minimal keys of["alice/assignments/hw1.txt", "bob/assignments/hw1.txt"]are also["alice", "bob"].Finally, the minimal keys of["assignments/alice.txt", "assignments/bob.txt"]are—wait for it—["alice", "bob"].This is the same basic idea as a databasesuperkey, except that the actual
minimal unique keys are returned, instead of the attributes that select these
keys.The current implementation trims only the beginnings and ends of sequences,
because this is all that I’ve needed so far. I have in my head a more
sophisticated implementation that usesdifflib, but it is too long to fit in
the header of this README.Install$pipinstallminimalkeysUsage>>>fromminimalkeysimportminimalkeys>>>minimal_keys(["assignments/alice/hw1.txt","assignments/bob/hw1.txt"])['alice','bob']LicenseMIT
Package: minimalKNN
A Minimal k-Nearest Neighbor Graph Construction LibraryOverviewThis package will provide a function to construct an approximated k-Nearest Neighbor graph from a list of three dimensional points. The graph construction algorithm is based onNN-descentpresented in Dong, Moses, & Li (2011)[^DML2011]. The Euclidean and Manhattan metrics are implemented in the current version, while only the Euclidean one is available in Python. The algorithm efficiently constructs an approximated k-Nearest Neighbor graph. This provides a portableC++11header and a Python interface.DependenciesThe library is written inC++11and do not depends on any library outside of theSTL. The Python interface is depends onNumPy, and functional test procedures depend onMatplotlib. The library is developed ong++version 5.4 installed in Linux Mint 18.1 (serena). The Python interface is developed on Python 3.7.1 and Numpy 1.18.1.References[^DML2011]: Wei Dong, Charikar Moses, & Kai Li, WWW'11: Proceedings of the 20th international conference on World wide web (2011), 577--586 (doi:10.1145/1963405.1963487)
Package: minimalkv
minimalkvis an API for very basic key-value stores used for small, frequently
accessed data or large binary blobs. Its basic interface is easy to implement
and it supports a number of backends, including the filesystem, SQLAlchemy,
MongoDB, Redis and Amazon S3/Google Storage.Installationminimalkv isavailable on PyPIand
can be installed throughpip:pip install minimalkvor viacondaonconda-forge:conda install -c conda-forge minimalkvDocumentationThe documentation for minimalkv is available athttps://minimalkv.readthedocs.io.Licenseminimalkv isMIT licensed.
Package: minimalmodbus
Easy-to-use Modbus RTU and Modbus ASCII implementation for Python.Web resourcesDocumentation:https://minimalmodbus.readthedocs.ioSource code onGitHub:https://github.com/pyhys/minimalmodbusPython package index (PyPI) with download:https://pypi.org/project/minimalmodbus/Other web pages:Readthedocs project page:https://readthedocs.org/projects/minimalmodbus/codecov.io project page:https://codecov.io/github/pyhys/minimalmodbusObsolete web pages:Old Travis CI build status page:https://travis-ci.org/pyhys/minimalmodbusOld Sourceforge documentation page:http://minimalmodbus.sourceforge.net/Old Sourceforge project page:https://sourceforge.net/projects/minimalmodbusOld Sourceforge repository:https://sourceforge.net/p/minimalmodbus/code/HEAD/tree/FeaturesMinimalModbus is an easy-to-use Python module for talking to instruments (slaves)
from a computer (master) using the Modbus protocol, and is intended to be running on the master.
The only dependence is the pySerial module (also pure Python).There are convenience functions to handle floats, strings and long integers
(in different byte orders).This software supports the ‘Modbus RTU’ and ‘Modbus ASCII’ serial communication
versions of the protocol, and is intended for use on Linux, OS X and Windows platforms.
It is open source, and has the Apache License, Version 2.0.For Python 3.8 and later. Tested with Python 3.8, 3.9, 3.10, 3.11 and 3.12.This package uses semantic versioning.