Saravanan666/pypi-org huggingface dataset:
Package: minpipe
minpipeminpipe is a minimal library for building one-off concurrent data pipelines in python. It was inspired bypypeln.ExampleimportnumpyasnpfromminpipeimportPipeline,Signal,Stagedefmake_random_data():x=np.random.randn(10,10,10000)defrandom_data():forxiinx:yieldxiyieldSignal.STOPreturnrandom_datadefmean(xi):yieldnp.mean(xi,axis=-1)defflatten(means):forminmeans:yieldmdeffilter_pos(m):ifm>0:yieldmdefprintout(m):print(f"mean={m:.2f}")pipeline=Pipeline(Stage(make_random_data()),Stage(mean,num_workers=2),Stage(flatten,num_workers=1),Stage(filter_pos),Stage(printout),)# serial debug run# pipeline.serial(max_items=10)pipeline.start()pipeline.join()Installationpip install minpipeSee alsopypelnbonoboLicenceMIT
Package: minpypihello
# min-pypi-helloA minimalist example of PyPI packaging.([view on pypi](https://pypi.python.org/pypi/minpypihello/);[view on GitHub](https://github.com/hupili/min-pypi-hello))* A package called `minpypihello`,which contains a module called `modhello`.You can import using `from minpypihello import modhello`.* A script that can be executed directly to print a helloworld message.## 1. Check the Project and Study FilesRun `./myhello` and see if it works as expected.Navigate under this repo and see those files for an example layout.min-pypi-hello/├── MANIFEST.in├── README.md├── README.txt├── minpypihello│   ├── __init__.py│   └── modhello.py├── myhello└── setup.py## 2. PackageBuild source archive: `python setup.py sdist`.Test:* Find your package in `dist/minpypihello-x.tar.gz`,where `x` is the version number.* Uncompress the archive and go to its root.* Install `python setup.py install`.You can add `--user` to install under your home.* Try `myhello` (not `./myhello`).If you `$PATH` is set properly and the install is successful,you should see the printed hello message.* Try to import `minpypihello.modhello` from a Python script(see code of `myhello` for an example).## 3. Distribute to PyPIRegister: Use `python setup.py register` and go through the procedure as prompt.Upload: `python setup.py sdist upload`.[more info.](http://docs.python.org/2/distutils/packageindex.html)## Reference* distutils:<http://docs.python.org/2/distutils/>* A list of package metadata:<http://docs.python.org/2/distutils/setupscript.html#additional-meta-data>
Package: minreal
A Python comet server build on CSP (Comet Session Protocol) and providing a TCP socket proxy.minrealA Python comet server build on CSP (Comet Session Protocol) and providing a TCP socket proxy.Disclaimer: Gosh this is a new project. Don't use it for anything yet.Disclaimer disclaimer: None of the technology s particularly new, but I have ideas for where
this might go that might be interesting.Running the examplesThe standalone server can be run like:$mrl<mountpath>:<clientpluginmoduledottedname>:<clientpluginclass>So you can run the examples like:# For the echo server example$mrlecho:minreal.examples.echo:EchoClient# For the TCPSocket IRC example$mrltcp:minreal.examples.tcp:TCPClientDeveloping a pluginTake a look at theannotated exampleto get started.v0.2.0Updated the csp.js client to the trickly client.
Package: min-renovasjon
IN DEVELOPMENTMin Renovasjon Python APIPython 3 API forMin Renovasjon.Examplefrommin_renovasjonimportMinRenovasjonsearch_string="Jonas Lies gate 22, 200 Lillestrøm"ren=MinRenovasjon(search_string)Norwegian street names often contains the word veg/vei (it means road in English).
This package handles this automatically, so a lookup forHageveienorHagevegenshould give the same result.# Fractionsren.fractions()# Next waste collectionsren.waste_collections()
Package: minreq
Check required data in a request.UsageSome time ago Chrome Developers tools addedCopy as
Curlfeature.
This tool receives as input a curl command, parses it and
checks what data is required to repeat the request successfully.
It currently supportsGETandPOSTrequests.The output depends on the action,
which are currentlyprint_resultsandprint_scrapy_request.
An example using the latest one is shown below:$pythonminreq-runner.py--actionprint_scrapy_requestcurl'https://en.wikipedia.org/w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*'-H'accept-encoding: gzip, deflate, sdch'-H'accept-language: en-US,en;q=0.8,es;q=0.6'-H'user-agent: Mozilla/5.0'-H'accept: */*'-H'referer: https://en.wikipedia.org/wiki/Example'-H'cookie: GeoIP=:::::v6; WMF-Last-Access=23-Jun-2015'--compressedScrapyrequest--------------fromscrapy.httpimportRequestreturnRequest(url='https://en.wikipedia.org/w/load.php?only=scripts&modules=startup',cookies={},headers={},callback='method')History0.1.0 (2015-11-05)First release on PyPI.
Package: minresourcepy
MinResourcepyHi there,This Python library is a continual work in progress, aimed at expanding with tools to assist and validate block models,
along with tackling complex operations in resource geology. It serves as a compilation and standardization of scripts developed (with the
assistance of my colleagues) during my journey as a Resource Geo on Earth Planet!It's open and collaborative, so your contributions to the code are more than welcome.Package Inventorytongrade- Generates values for a TonXGrade chart (both X and Y axis) with the option to choose proportion over tonnage as the output.xyzrotate- Allows rotation and unrotation of block models or points, akin to the CDTRAN function in Datamine.pplot-  Generates dynamic probability plots to aid in outlier definition.describew- Yields output similar to .describe(), considering a weight variable.dist_reschart- Generates a distance histogram for Mineral Resource classification, color-coding bars by category (measured, indicated, inferred). The X-axis denotes the sample distance to blocks (minimum or average depending on your objective).topcutstat- It assists the top-cut definition providing the statistics of a variable (including the metal loss and number of capped samples), given a list of capping values.Next UpdatesFuture plans include creating package examples as a user guide and continually adding new tools.ContactLinkedIn- Renan LopesEmail:renanglopes@gmail.com
Package: minrest
Minimalist Generic REST ClientMinimalist generic REST API client for PythonFree software: MIT licenseDocumentation:https://minrest.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2020-04-30)First release on PyPI.
Package: minrpc
Minimalistic RPC utility.Please do not use. This package is only used within cpymad and pytao.CopyingCopyright 2016-2018 HIT Betriebs GmbHThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.For a full text version of the license, seeCOPYING.GPLv3.txt.Changelog(dates are in the formDD.MM.YYYY)0.1.0Date: 28.10.2020fix UnpicklingError: pickle data was truncated
see:https://github.com/hibtc/cpymad/issues/720.0.11Date: 13.04.2019remove obsolete OrderedDict exportsimplifications in build/setup scriptsremove py33 tests0.0.10Date: 18.10.2018Pure maintenance release with continuous integration improvements:automatically upload release to PyPIadd automatic style and sanity checksfix some style issuescleanup in .travis.yml0.0.9Date: 18.10.2018add__bool__forRemoteModuleindicating whether the connection has
been closedreturnselffromChangeDirectory.__enter__wait for subprocess completion inClient.close()0.0.8Date: 30.08.2018improve error prevention during connection shutdown0.0.7Date: 11.06.2018simplify module access, backward incompatible!!add overridableClient._communicatemethod0.0.6Date: 30.11.2017improve error checking before/after requestscatch more exceptions in __del__provide copyright notice as unicode0.0.5Date: 13.11.2017allow locking during request (for thread safety)0.0.4Date: 12.07.2017remember error state of connection (whether RemoteProcessCrashed was raised)export an OrderedDict type that preserves insertion order0.0.3Date: 24.09.2016fix raised exception type in client0.0.2Date: 19.09.2016fix problem with exception handling0.0.1Date: 19.09.2016copied from cpymad 0.14.3
Package: min-rss
min-rss-genA minimal RSS 2.0 generator. Follows guidelines fromhttps://validator.w3.org/feed/docs/rss2.htmlXML ImplementationsAccepts any implementation that fulfills Python's ElementTree API. Due to this,lxmlis supported.Installationpip install min-rssUsageThe following script powers the RSS feed athttps://nwalsh1995.github.io/rss.xmlfrommin_rss_gen.generatorimportstart_rss,gen_itemimportxml.etree.ElementTreefromglobimportglobfrompathlibimportPurePathSITE="https://nwalsh1995.github.io"RSS_FILENAME="rss.xml"rss_items=[]# Generate all itemsforfinglob("**/*.html",recursive=True):path=PurePath(f)title=path.with_suffix("").name.replace("-"," ").title()rss_items.append(gen_item(title=title,link=f"{SITE}/{str(path)}"))# Generate the <rss> XML element and subelements.rss_xml_element=start_rss(title="nwalsh1995.github.io",link="nwalsh1995.github.io",description="A collection of thoughts.",items=rss_items)# You can add custom subelements onto the returned <rss> element if you choose.withopen(RSS_FILENAME,"wb")asf:f.write(xml.etree.ElementTree.tostring(rss_xml_element))
Package: minsci
A collection of tools written in Python 2.x for Mineral Sciences at
NMNH. You can install the MinSci Toolkit from the command line using
pip:pip install minsciNote:The mosaic module has been moved to a separate repository,Stitch2D.GeoTaxaThe GeoTaxa module contains a hierarchical taxonomy for geologic
materials, including rocks, minerals, and meteorites. The hierarchy is
based on schemes and species definitions published by the IUGS, the
British Geological Survey, RRUFF, and Mindat. It is very much a work in
progress.To use, first create an instance of the GeoTaxa class:fromminsciimportgeotaxagt=geotaxa.GeoTaxa()To get info about a rock, mineral, or meteorite, simply call the class
itself:printgt('basalt')If no match for a given taxon is found, the script will try to place the
new taxon in the existing hierarchy.To find the preferred synonym for a deprecated species, use
preferred_synonym:printgt.preferred_synonym('argentite')To get the name of an object, use item_name. This function accepts as a
taxa list, setting, and/or name as parameters. For example:printgt.item_name(['corundum, ruby, sapphire'])printgt.item_name(name='Hope Diamond')printgt.item_name('diamond','ring')
Package: minsert
minsertInsert dynamic content in markdown, without using a separate template file.MotivationInspired by jinja.Your actual markdown file is the template file itself.
Just make a block of content just by using comments, which indicate the start and
end of the block.This is really great for making a dynamic GitHub README.
No hassle of creating a separate template file.
Using a simple python script and GitHub Actions,
you can automatically update the contents of the markdown file.InstallationpipinstallminsertSyntaxUsing minsert is easy. Just write normal markdown.
The start and end of named blocks are marked by special comments.Start a block namedmy_block<!-- start my_block -->End a block<!-- end -->You must end the current block before starting a new one.UsageFor example you have a markdown filetest.mdlike this.hello
<!-- start thing1 -->
<!-- end -->
what is happening
<!-- start thing2 -->
<!-- end -->
Bye!Create a simple scriptupdate.pyfor updating the markdown file.# update.pyfromminsertimportMarkdownFilefile=MarkdownFile("test.md")things={"thing1":"hi hello","thing2":"ping pong",}file.insert(things)The markdown file gets updated with the value of the blocks.hello
<!-- start thing1 -->
hi hello
<!-- end -->
what is happening
<!-- start thing2 -->
ping pong
<!-- end -->
Bye!Now try runningupdate.pyafter changing the values in thethingsdictionary.
You will see that minsert will neatly update thetest.mdwithout fail.
Package: minstrel
minstrelAn instrumentation hardware orchestration platform.InstallPyPIInstall and update using pip:pipinstall-UminstrelRepositoryWhen using git, clone the repository and change your
present working directory.gitclonehttp://github.com/mcpcpc/minstrelcdminstrel/Create and activate a virtual environment.python-mvenvvenvsourcevenv/bin/activateInstall minstrel to the virtual environment.pipinstall-e.Commandsdb-initThe backend database can be initialized or re-initialized
with the following command.quart--appminstrelinit-dbtokenIn order to prevent unauthorized or accidental backend
database manipulation, some API actions require atokenkey argument. Token strings can be generated with the
following command.quart--appminstreltokenThe token command also accepts an integer argument that
defines the duration (in seconds) in which the generated
token is valid. The default argument value is300.Note that changing theSECRET_KEYvariable will
invalidate any previously generated tokens once the
application instance is restarted.Docker ContainerPulling the latest container image from command line.dockerpullghcr.io/mcpcpc/minstrel:latestDeploymentBefore deployment, overriding the defaultSECRET_KEYvariable isstronglyencourage. This can be done by
creating aconf.pyfile and placing it in the
same root as the instance (i.e. typically where the
backend database resides).SECRET_KEY=“192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf“There are a number of ways to generate a secret key
value. The simplest would be to use the built-in secrets
Python library.$python-c‘importsecrets;print(secrets.token_hex())’
‘192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf’QuartNon-production ASGI via quart for development and
debugging.quart--debug--appminstrelrunUvicornProduction ASGI via uvicorn.pipinstalluvicorn
uvicorn--factoryminstrel:create_appTestpython3-munittestRun with coverage report.coveragerun-munittest
coveragereport
coveragehtml# open htmlcov/index.html in a browser
Package: minswap
Translated to python from JS, source:https://github.com/minswap/blockfrost-adapter/blob/main/README.md?plain=1Trying to stay as close to the original as possible.Minswap Blockfrost AdapterFeaturesGet current pair priceGet historical pair priceCalculate trade price and price impactCreate orders and submit to BlockfrostInstallPypi:pip install minswapExamplesExample 1: Get current price of MIN/ADA poolfromminswapimportBlockfrostAdapter,NetworkIdadapter=BlockfrostAdapter(projectId="<your_project_id>",networkId=NetworkId.MAINNET,)page=1whileTrue:pools=adapter.getPools(page=page)iflen(pools)==0:# last pagebreakminAdaPool=next((poolforpoolinpoolsifpool.assetA=="lovelace"andpool.assetB=="29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c64d494e"),None)ifminAdaPool:min,ada=adapter.getPoolPrice(pool=minAdaPool)print(f'ADA/MIN price:{min}; MIN/ADA price:{ada}')print(f'ADA/MIN pool ID:{minAdaPool.id}')breakExample 2: Get historical prices of MIN/ADA poolfromminswapimportBlockfrostAdapter,NetworkIdadapter=BlockfrostAdapter(projectId="<your_project_id>",networkId=NetworkId.MAINNET,)MIN_ADA_POOL_ID="6aa2153e1ae896a95539c9d62f76cedcdabdcdf144e564b8955f609d660cf6a2"history=adapter.getPoolHistory(id=MIN_ADA_POOL_ID)forhistoryPointinhistory:pool=adapter.getPoolInTx(txHash=historyPoint.txHash)ifnotpool:raiseException("pool not found")price0,price1=adapter.getPoolPrice(pool,decimalsA=6,decimalsB=6,)print(f'{historyPoint.time}:{price0}ADA/MIN,{price1}MIN/ADA`)
Package: minswap-oura
Translated to python from JS, source:https://github.com/minswap/blockfrost-adapter/blob/main/README.md?plain=1Modified to work with Oura and mongoDBGet current pair priceGet historical pair priceMinswap Blockfrost AdapterFeaturesGet current pair priceGet historical pair priceCalculate trade price and price impactCreate orders and submit to BlockfrostInstallPypi:pip install minswapExamplesExample 1: Get current price of MIN/ADA poolfromminswapimportBlockfrostAdapter,NetworkIdadapter=BlockfrostAdapter(projectId="<your_project_id>",networkId=NetworkId.MAINNET,)page=1whileTrue:pools=adapter.getPools(page=page)iflen(pools)==0:# last pagebreakminAdaPool=next((poolforpoolinpoolsifpool.assetA=="lovelace"andpool.assetB=="29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c64d494e"),None)ifminAdaPool:min,ada=adapter.getPoolPrice(pool=minAdaPool)print(f'ADA/MIN price:{min}; MIN/ADA price:{ada}')print(f'ADA/MIN pool ID:{minAdaPool.id}')breakExample 2: Get historical prices of MIN/ADA poolfromminswapimportBlockfrostAdapter,NetworkIdadapter=BlockfrostAdapter(projectId="<your_project_id>",networkId=NetworkId.MAINNET,)MIN_ADA_POOL_ID="6aa2153e1ae896a95539c9d62f76cedcdabdcdf144e564b8955f609d660cf6a2"history=adapter.getPoolHistory(id=MIN_ADA_POOL_ID)forhistoryPointinhistory:pool=adapter.getPoolInTx(txHash=historyPoint.txHash)ifnotpool:raiseException("pool not found")price0,price1=adapter.getPoolPrice(pool,decimalsA=6,decimalsB=6,)print(f'{historyPoint.time}:{price0}ADA/MIN,{price1}MIN/ADA`)
Package: mint-api
mint_cliInstallationpipinstallmintAlso, you must installSingularityCLImint_cli is a cli torunsetups define on the model catalog.
The setups are defined using YAML files.ExecutionYou can run a setup$mintruntopoflow/topoflow_cfg_advanced_Baro.yamlOr, you can run multiple setups. The setups must be inside on a directory.$lssetups/hand_v1_simple/
hand_v1_simple_awash.yamlhand_v1_simple_beko-tippi.yamlhand_v1_simple_guder.yamlhand_v1_simple_shebelle.yaml
hand_v1_simple_baro.yamlhand_v1_simple_ethiopia.yamlhand_v1_simple_jamma.yamlhand_v1_simple_texas.yaml
hand_v1_simple_bashilo.yamlhand_v1_simple_ganale.yamlhand_v1_simple_muger.yaml$mintrunsetups/hand_v1_simple/
Executionhand_v1_simple_bashilo,checkthelogsonexecutions/hand_v1_simple_bashilo_c241473a-1b64-11ea-8100-f8f21e3c1558/output.log
Executionhand_v1_simple_jamma,checkthelogsonexecutions/hand_v1_simple_jamma_c2f7e080-1b64-11ea-8100-f8f21e3c1558/output.log
Executionhand_v1_simple_shebelle,checkthelogsonexecutions/hand_v1_simple_shebelle_c36e4202-1b64-11ea-8100-f8f21e3c1558/output.logSetup filesSadly, this version does not download the setup files. You can usemint_setup_runner
Package: mintc
Minimalistic Tor ControllerMinimalistic asyncio-based Tor controller.How to use:frommintcimportTorControllertc=TorController('127.0.0.1:9051')try:awaittc.start()awaittc.authenticate('password')asyncforcircuitintc.get_circuits():print(circuit)finally:awaittc.stop()Or:asyncwithTorController('127.0.0.1:9051')astc:awaittc.authenticate('password')asyncforcircuitintc.get_circuits():print(circuit)The format of control port argument passed to the constructor
is identical toControlPortfromtorrc.Only small subset of commands is implemented so far.This controller neither does nor will implement auto reconnect.
It's the user's responsibility to catch any exceptions
and re-run the entireasync with TorController...code block
or restart the controller withtc.restart()and start over again
fromtc.authenticate().All response parsing is very minimalistic. E.g. date/time strings are not parsed.
Package: mint-cli
MINT Model Desktop Execution ApplicationRequerimentsSingularityThe application needs Singularity to run the containers.Installation on LinuxInstallation on WindowsInstallation on Mac!!! info
If you like support for Docker. Let's know it.Supoort DockerPython 3The applications needs Python.Installation on LinuxInstallation on WindowsInstallation on MacInstallationTo install the execution application, open a terminal and run:pipinstallmint-cli
Package: minterpy-levelsets
minterpy-levelsetsA Python library for performing numerical differential geometry on smooth closed surfaces based on Global Polynomial Level Sets (GPLS). [^1]Table of ContentsBackgroundInstallUsageDevelopment teamContributingLicenseBackgroundStarting with a pointset representation of a surface, GPLS can be used to approximate a broad class of smooth surfaces as affine algebraic varieties. With this polynomial representation, differential-geometric quantities like mean and Gauss curvature can be efficiently and accurately computed. This compressed representation significantly reduces the computational cost of 3d surface simulations.InstallSince this implementation is a prototype, we currently only provide the installation by self-building from source. We recommend to usinggitto get theminterpy-levelsetssource:gitclonehttps://codebase.helmholtz.cloud/interpol/minterpy-levelsets.gitSwitch to thecondaorvenvvirtual environment of your choice where you would like to install the library.From within the environment, install using [pip],pipinstall[-e].where the flag-emeans the package is directly linked
into the python site-packages of your Python version.Youmust notuse the commandpython setup.py installto installminterpy,
as you cannot always assume the filessetup.pywill always be present
in the further development ofminterpy.UsageDocumentation is a WIP. Please refer to the example Jupyter notebooks in theexamples/directory to get started with the library.Development teamMain code developmentSachin Krishnan Thekke Veettil (MPI CBG/TU Dresden)sthekke@mpi-cbg.deGentian Zavalani (HZDR/CASUS)g.zavalani@hzdr.deMathematical foundationMichael Hecht (HZDR/CASUS)m.hecht@hzdr.deAcknowledgementUwe Hernandez Acosta (HZDR/CASUS)Damar Wicaksono (HZDR/CASUS)Minterpy development teamContributingOpen an issueor submit PRs.LicenseMIT[^1]: [Veettil, Sachin K. Thekke, Gentian Zavalani, Uwe Hernandez Acosta, Ivo F. Sbalzarini, and Michael Hecht. "Global Polynomial Level Sets for Numerical Differential Geometry of Smooth Closed Surfaces." arXiv preprint arXiv:2212.11536 (2022)] (https://arxiv.org/abs/2212.11536).
Package: minto
MINTO: Jij Management and Insight tool for Optimizationmintois a Python library designed for developers working on research and development or proof-of-concept experiments using mathematical optimization. Positioned similarly to mlflow in the machine learning field,mintoprovides features such as saving optimization results, automatically computing benchmark metrics, and offering visualization tools for the results.Primarily supporting Ising optimization problems,  plans to extend its support to a wide range of optimization problems, such as MIP solvers, in the future.Installationmintocan be easily installed using pip.pipinstallmintoDocumentation and SupportDocumentation:https://jij-inc.github.io/minto/Tutorials will be provided in the future. Stay tuned!How to ContributeSeeCONTRIBUITING.mdCopyright (c) 2023 Jij Inc.
Package: mintotp
MinTOTPMinTOTP is a minimal TOTP generator written in Python.IntroductionTOTP stands for Time-Based One-Time Password. Many websites and services
require two-factor authentication (2FA) or multi-factor authentication
(MFA) where the user is required to present two or more pieces of
evidence:Something only the user knows, e.g., password, passphrase, etc.Something only the user has, e.g., hardware token, mobile phone, etc.Something only the user is, e.g., biometrics.A TOTP value serves as the second factor, i.e., it proves that the user
is in possession of a device (e.g., mobile phone) that contains a TOTP
secret key from which the TOTP value is generated. Usually the service
provider that provides a user's account also issues a secret key encoded
either as a Base32 string or as a QR code. This secret key is added to
an authenticator app (e.g., Google Authenticator) on a mobile device.
The app can then generate TOTP values based on the current time.
By default, it generates a new TOTP value every 30 seconds.MinTOTP is a Python tool that can be used to generate TOTP values from a
secret key. Additionally, it exposes its functionality as module-level
functions for Python developers. It can be used on any system with
Python 3.4 or later installed on it.ResourcesHere is a list of useful links about this project:DocumentationLatest releaseChangelogIssue trackerSource code