Saravanan666/pypi-org huggingface dataset:
Package: minio-driver
Project descriptionWhat is Minio-Driver?It's an extra storage driver support for Minio in masonite 4.SetupInstall package using pip:pipinstallminio-driverAdd provider inside config/providers.py.fromminio_driver.MinioProviderimportMinioProviderPROVIDERS=[...,# Application ProvidersMinioProvider,]Storage ConfigAdd following configuration inside config/filesystem.py after"s3": {...},"minio":{"driver":"minio","client":env("MINIO_CLIENT"),"secret":env("MINIO_SECRET"),"bucket":env("MINIO_BUCKET"),"path":env("MINIO_ENDPOINT"),},Add following keys in.env.MINIO_CLIENT=MINIO_SECRET=MINIO_BUCKET=MINIO_ENDPOINT=Update the storage driver value tominioin.envSTORAGE_DRIVER=minioExamplefrommasonite.controllersimportControllerfrommasonite.filesystemimportStoragefrommasonite.requestimportRequestclassYourController(Controller):defyour_function(self,request:Request,storage:Storage):file=request.input('file')# storing filepath=storage.disk("minio").put_file('your_file_directory',file)# getting file_url from storagefile_url=storage.disk("minio").get_secure_url(path)returnfile_urlEnjoy ;)
Package: minio-extensions
minio-extensionsInstall the MinIO Extensions PackageThe Python SDK requires Python version 3.8+.
You can install the SDK withpipor from theminio-extensionsGitHub repository:Usingpippip3installminio-extensionsUsing Source From GitHubgitclonehttps://github.com/chrisbewz/minio-extensions/cdminio-extensions
pythonsetup.pyinstall
Package: miniogre
MiniogreMiniogreis a command-line application that analyzes a Python project codebase and README file to automatically generate a Dockerfile, requirements.txt file, and SBOM files. This tool expedites the process of dockerizing any Python application.How it WorksUpon running the application, it carries out the following steps:The project directory is scrutinized to identify the primary code language.The README file is located and read.GPT-4 language model is used to predict the application dependencies and generate content for therequirements.txtfile based on the README contents.Therequirements.txt,Dockerfile, andsbom.jsonfiles are created.A Docker image of the application is built.An ogre container is spun up.Two main commands can be run, with theminiogre/main.pyfile serving as the entry point.run: Executes a series of actions, including configuring directories and files (bashrc, Dockerfile), generating requirements, building a Docker image, and spinning up a container.readme: Constructs a newREADME.mdfile that mirrors the operations observed within the source code.For more in-depth execution details, refer tominiogre/main.py,miniogre/actions.py, andminiogre/config.py.RequirementsTo use miniogre effectively, ensure the following are installed:Python 3: Miniogre is developed in Python. If it's not already installed,get Python here.Docker: Docker is a platform used to eliminate "works on my machine" problems when collaborating on code with co-workers. If it's not already installed,get Docker here.pip or pipx: These are python package installers used to install miniogre. If they are not already installed,get pipx hereorpip here.An OpenAI token in the environment:export OPENAI_API_KEY=<YOUR_TOKEN>UsageAfter installation, go inside the project folder and run:miniogre runThis will analyze the project, generateogre_dir/Dockerfile,ogre_dir/requirements.txt, andogre_dir/sbom.jsonand build a Docker image.There are other commands:readme: Analyzes the source code to generate a newREADME.mdfile that is compatible with what actually happens in the source code.InstallationMiniogre can be installed either by usingpiporpipx:pip install miniogrepipx install miniogreContributingContributions to improve this resource are more than welcome. For inquiries, contact the maintainers atcontact@ogre.run.
Package: minio-handler
minio_handlerThis is an abstraction on the Minio package to make basic usage of the Minio package a little less cumbersomeusageInit the handlermy_minio_server=Minio_Handler("127.0.0.1:9000","minioadmin","minioadmin",False)(class) Minio_Handler(host: str, access_key: str, secret_key: str, secure: bool = False)ArgumentsNameDescriptionExampleTypehostAddress and Port to your minio instance127.0.0.1:9000straccess_keyusername to access minio instanceminioadminstraccess_keypassword to access minio instanceminioadminstrsecureuse tls, defaults to falseTrue/FalseboolMethod: bucket(method) bucket(bucket_name: str, action: str) -> boolArgumentsNameDescriptionExampleTypebucket_nameName of the minio bucket to preform action onmy-bucketstractionAction to preform on bucketcheck/create/delete/liststrcheck a bucketmy_minio_server.bucket(bucket_name="my-bucket",action="check")return a boolcreate a bucketmy_minio_server.bucket(bucket_name="my-bucket",action="create")return a booldelete a bucketmy_minio_server.bucket(bucket_name="my-bucket",action="delete")return a booldelete a bucketmy_minio_server.bucket(bucket_name="none",action="list")return a list[dict{"name": str, "creation_date": str}]Method: object(method) object(bucket_name: str, object_name: str, action: str, data: bytes = bytes("none", encoding="utf-8")) -> (str | bool)ArgumentsNameDescriptionExampleTypebucket_nameName of the minio bucket to preform an object action inmy-bucketstrobject_nameName of the minio object_name to preform an action onmy-objectstractionAction to preform on bucketcheck/create/delete/liststrdataOptional argument only used with create actionsbytesput objectmy_minio_server.object("my-bucket","test.txt","put",data=bytes("test data",encoding='utf-8')return a booldelete objectmy_minio_server.object("my-bucket","test.txt","delete")return a boolget objectmy_minio_server.object("my-bucket","test.txt","get")return a stringlist objectsmy_minio_server.object("my-bucket","none","list")return a listUnit TestRequirementsDocker runtimeDocker cli toolRun testfile: test_Minio_Handler_unittest.pycd./minio_handler/minio_handler
pythontest_Minio_Handler_unittest.pyOutput----------------------------------------------------------------------
Startingcontainerminio-handler-test
e2c2ec3b4fe1924500b253db83238b1a33cd9a8f69516af32bab64859312c037
----------------------------------------------------------------------
Waiting5secondsforminio-handler-testcontainertostart
......
----------------------------------------------------------------------
Ran6testsin0.117s

OK
----------------------------------------------------------------------
StoppingandRemovingminio-handler-testcontainer
minio-handler-test
minio-handler-test```
Package: minio-keygen
minio-keygenCI/CD Status:|Generate MinIO keys using Python.  This project was created to learn GitHub Actions, Python packaging, and entrypoints.Exampleian@Ians-MBP minio-keygen % minio-keygen                                   
Key: S9EITflKfJs4pAcOO1o
Secret: vFMzAqChF1PZea_6CMH0vmmcZglziMqDR2zXmtxIReleasing# Set next version number
   export RELEASE=vx.x.x

   # Create tags
   git commit --allow-empty -m "Release $RELEASE"
   git tag -a $RELEASE -m "$RELEASE"

   # Push
   git push --tags
Package: miniomm
MiniOMM_         _                              
 _ __ ___  (_) _ __  (_)  ___   _ __ ___   _ __ ___  
| '_ ` _ \ | || '_ \ | | / _ \ | '_ ` _ \ | '_ ` _ \ 
| | | | | || || | | || || (_) || | | | | || | | | | |
|_| |_| |_||_||_| |_||_| \___/ |_| |_| |_||_| |_| |_|A simple, HPC-friendly OpenMM wrapper for common-case MD runs, with minimal dependencies.It works if it works for me.RationaleDeveloped to launch OpenMM runs on recent GPU-endowed machines,
including those with ppc64le architecture. This is because OpenMM can
currently be installed (also via Conda), but several related packages
such asmdtrajcannot. MiniOMM aims to provide a "minimal working"
environment for MD runs without requiring C++ or Python coding.InstallationIn principle, the usualpip install miniommshould be sufficient.
However, you will need additional software:OpenMM and its Python interfaceOptionally, Plumed, openmm-plumed and its Python interfaceSee theWikifor (somewhat site-specific) installation instructions.SyntaxFor now, the syntax is only documented in the examples files. It
is a simple list of "keyword value" pairs, with sensible
defaults, and largely compatible with ACEMD.FeaturesSupportsNVT (constant volume) production simulations with PME electrostatics and explicit solventNPT (constant pressure) equilibrationRuns pre-built systems inAMBER(prmtop) andCHARMM(psf) formatsCheckpoints and restarts are enabled out of the boxPlumed, if openmm-plumed is installedTested on Linux x64 and ppc64le, with and without NVIDIA GPUsDoes not supportRestraints of any kindMay support in the future, given sufficient interestAny feature provided by OpenMM, e.g. custom potentials.The script is designed to be idempotent, that is, you may stop and
restart it repeatedly, and it will progress until the end of the
simulation. This may be convenient for time-limited batch systems.
Package: minion
The world needs another web framework.—No one, ever. And yet…Minion is a microframework that grew out of a collection of individually small
frustrations withFlask.Specifically, it aims to be simpler and more composeable than Flask is in the
following ways:Call views with arguments rather than thread localsAllow alternative routing implementationsProvide a more robust configuration interfaceIn some ways it’s inspired byKlein's
take on Flask more than Flask’s take on Flask.ExampleHere’s the Minion hello world:fromminion.coreimportApplicationfromminion.requestimportResponseapp=Application()@app.route("/")defindex(request):returnResponse("Hello World!")VersioningMinion usesSemVer.Specifically, this means that untilv1.0.0Minion isnotguaranteed to be backwards compatible, even in minor releases (or bugfix
releases but there probably won’t be any of those).That being said, nothing will be broken for the hell of it :). Make of
that what you will.Afterv1.0.0, public API (to be defined later) will not be broken in
backwards incompatible ways without a major version bump.ContributingI’m Julian Berman.minionis onGitHub.Get in touch, via GitHub or otherwise, if you’ve got something to contribute,
it’d be most welcome!You can also generally find me on Freenode (nick:tos9) in various
channels, including#python.If you feel overwhelmingly grateful, you can woo me with beer money onGittipor via Google Wallet with the email
in my GitHub profile.
Package: minio-py3
# Minio Python Library for Amazon S3 Compatible Cloud Storage [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/minio/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)## Install [![Build Status](https://travis-ci.org/minio/minio-py.svg)](https://travis-ci.org/minio/minio-py)The recommended technique for installing this package is through pip.```sh$ pip install minio```## Example```python#!/usr/bin/env pythonfrom minio import Minio# Instantiate a clientclient = Minio('s3.amazonaws.com',access_key='access_key',secret_key='secret_key')# List bucketsbuckets = client.list_buckets()for bucket in buckets:print('bucket:', bucket.name, bucket.creation_date)```## Examples:### Bucket Operations.[make_bucket(bucket, location)](examples/make_bucket.py)[list_buckets()](examples/list_buckets.py)[bucket_exists(bucket)](examples/bucket_exists.py)[remove_bucket(bucket)](examples/remove_bucket.py)[list_incomplete_uploads(bucket_name, prefix=None, recursive=False)](examples/list_incomplete_uploads.py)### Object Operations.[get_object(bucket_name, object_name)](examples/get_object.py)[get_partial_object(bucket_name, object_name, offset, length)](examples/get_partial_object.py)[put_object(bucket_name, object_name, length, data, content_type='application/octet_stream')](examples/put_object.py)[list_objects(bucket_name, prefix=None, recursive=False)](examples/list_objects.py)[stat_object(bucket_name, object_name)](examples/stat_object.py)[remove_object(bucket_name, object_name)](examples/remove_object.py)[remove_incomplete_upload(bucket_name, object_name)](examples/remove_incomplete_upload.py)### Presigned Operations.[presigned_get_object(bucket_name, object_name, expires=604800)](examples/presigned_get_object.py)[presigned_put_object(bucket_name, object_name, expires=604800)](examples/presigned_put_object.py)[presigned_post_policy(policy=PostPolicy())](examples/presigned_post_policy.py)## Contribute[Contributors Guide](./CONTRIBUTING.md)[![PYPI](https://img.shields.io/pypi/v/minio.svg)](https://pypi.python.org/pypi/minio)[![PYPI](https://img.shields.io/pypi/l/minio.svg)](https://pypi.python.org/pypi/minio)[![PYPI](https://img.shields.io/pypi/pyversions/minio.svg)](https://pypi.python.org/pypi/minio)[![PYPI](https://img.shields.io/pypi/dm/minio.svg)](https://pypi.python.org/pypi/minio)
Package: miniopy-async
miniopy-asyncAsynchronous MinIO Client SDK for PythonCatalogueDeclarationMinimum RequirementsBuild from sourceInstallationQuick StartMore ReferencesDeclarationThis project is based on Huseyn Mashadiyev'sminio-async1.0.0.This project has fixed some bugs of minio-async and added some new features.Miniopy-async 1.2 has been pulled requests to minio-async.Minimum RequirementsPython>3.6Build from sourcegitclonehttps://github.com/hlf20010508/miniopy-async.gitcdminiopy-async
pythonsetup.pyinstallInstallationInstall with pipPyPIpipinstallminiopy-asyncGithub Repositorypipinstallgit+https://github.com/hlf20010508/miniopy-async.gitInstall with pipenvPyPIpipenvinstallminiopy-asyncGithub Repositorypipenvinstall"miniopy-async@ git+https://github.com/hlf20010508/miniopy-async.git"Quick Startfromminiopy_asyncimportMinioimportasyncioclient=Minio("play.min.io",access_key="Q3AM3UQ867SPQQA43P2F",secret_key="zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",secure=True# http for False, https for True)asyncdefmain():url=awaitclient.presigned_get_object("my-bucket","my-object")print('url:',url)loop=asyncio.get_event_loop()loop.run_until_complete(main())loop.close()fromsanicimportSanic,responsefromminiopy_asyncimportMiniofromurllibimportparseapp=Sanic(__name__)client=Minio("play.min.io",access_key="Q3AM3UQ867SPQQA43P2F",secret_key="zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",secure=True# http for False, https for True)# http://127.0.0.1:8000/download?bucket=my-bucket&fileName=testfile@app.route('/download',methods=['GET'])asyncdefdownload(request):print('downloading ...')bucket=request.args.get('bucket')fileName=request.args.get('fileName')# decodeURI, for those which has other language in fileName, such as Chinese, Japanese, KoreanfileName=parse.unquote(fileName)url=awaitclient.presigned_get_object(bucket_name=bucket,object_name=fileName)returnresponse.redirect(url)More ReferencesPython Client API ReferenceExamples
Package: miniosl
miniOSLPython interface toOSL (open shogi library), refurbished and enhanced by C++20 with pybind11 for cooperation with numpy and pytorch.WIP.demo@colabhttps://colab.research.google.com/drive/1orT32kOR58owC0SfhPdC0yodFdn8h2nX?usp=share_linkshogi.go(50)value, moves = shogi.eval()integration with ipywidgets(experimental)pip wheelhttps://pypi.org/project/miniosl/work with source codeC++20 (tested with g++ 12.2.1 inmanylinux_2_28, Apple clang 14.0.3)Python 3.10+cmake 3.22+typical commandsgit clone --recursive https://github.com/tkaneko/miniosl.gitcd minioslpip3 install -e .example for envvar:CMAKE_BUILD_PARALLEL_LEVEL=4CXX=g++-12cui samplesshogiconvertselfplayshogiviewerapi docapi 0.0.11tentative, the location will be subject to change in future.
Package: mini-patch
Do you have textual (or binary) data that you need to patch?` >>> a = 'you say yes, i say no' >>> b = 'you say stop, and i say go go go' `But you want a smaller patchfile than what difflib’sunified_diff()creates?` >>> diff ='\n'.join(difflib.unified_diff(a,b)) >>> len(diff) 137 `mini_patchalso uses difflib’sSequenceMatchermachinery, but it creates
tiny, ASCII-encoded patches:` >>> patch =mini_patch.make_mini_patch(a.encode('utf-8'),b.encode('utf-8'))>>> patch'0!d:8,2;i:11,$4$dG9w;i:12,$8$IGFuZA==;r:19,1,$4$Zw==;i:21,$8$IGdvIGdv;'>>> len(patch) 70 `
Package: minipb
MiniPBMini Protobuf library in pure Python.FeaturesPure Python.Feature-rich yet lightweight. Even runs on MicroPython.Supports both struct-like format string and ctypes-like structure representation (i.e.Structure._field_) as schema.Support schema-less inspection of a given serialized message viaWire.{encode,decode}_rawAPI.Proudly doing this earlier thanprotoscope.Getting startedimportminipb# Create the Wire object with schemahello_world_msg=minipb.Wire([('msg','U')# 'U' means UTF-8 string.])# Encode a messageencoded_msg=hello_world_msg.encode({'msg':'Hello world!'})# encoded_message == b'\n\x0cHello world!'# Decode a messagedecoded_msg=hello_world_msg.decode(encoded_msg)# decoded_msg == {'msg': 'Hello world!'}# Alternatively, use the format stringhello_world_msg=minipb.Wire('U')# Encode a messageencoded_msg=hello_world_msg.encode('Hello world!')# encoded_message == b'\n\x0cHello world!'# Decode a messagedecoded_msg=hello_world_msg.decode(encoded_msg)# decoded_msg == ('Hello world!',)Refer to theSchema Representationfor detailed explanation on schema formats accepted by MiniPB.InstallationCPython, PyPy, etc.Install via pippipinstallgit+https://github.com/dogtopus/minipbMicroPythonNOTE: Despite being lightweight compared to official Protobuf, theminipbmodule itself still uses around 15KB of RAM after loaded viaimport. Therefore it is recommended to use MiniPB on MicroPython instances with minimum of 24KB of memory available to the scripts. Instances with at least 48KB of free memory is recommended for more complex program logic.On targets with plenty of RAM, such as Pyboards and the Unix build, installation consists of copyingminipb.pyto the filesystem and installing theloggingandbisectmodule frommicropython-lib. For targets with restricted RAM there are two options: cross compilation and frozen bytecode. The latter offers the greatest saving. See theofficial docsfor further explanation.Cross compilation may be achieved as follows. First you needmpy-crossthat is compatible with the mpy version you are using.Compile MiniPB by usingmpy-cross-sminipb.pyminipb/minipb.py-o/your/PYBFLASH/minipb.mpyYou also needloggingandbisectmodule frommicropython-lib. Compile it by usingmpy-cross-slogging.pymicropython-lib/logging/logging.py-o/your/PYBFLASH/logging.mpy
mpy-cross-sbisect.pymicropython-lib/bisect/bisect.py-o/your/PYBFLASH/bisect.mpyUnmount PYBFLASH and reset the board when both files are installed to your MicroPython instance.On production deployment, it is possible to runmpy-crosswith-Oset to higher than 0 to save more flash and RAM usage by sacrificing some debuggability. For example-O3saves about 1KB of flash and library RAM usage while disables assertion and removes source line numbers during traceback.mpy-cross-sminipb.py-O3minipb/minipb.py-o/your/PYBFLASH/minipb.mpy
mpy-cross-slogging.py-O3micropython-lib/logging/logging.py-o/your/PYBFLASH/logging.mpy
mpy-cross-sbisect.py-O3micropython-lib/bisect/bisect.py-o/your/PYBFLASH/bisect.mpyUsageFormat string documentation can be found under the projectWiki. The module's pydoc contains some useful information on the API too.
Package: minipg
Yet another Python PostgreSQL database driver.RequirementsPostgreSQL 9.6+Python 3.9+Installationuse pip$ pip install minipgorcopy a module file.$ cd $(SOMEWHERE_PYTHON_PATH)
$ wget https://github.com/nakagami/minipg/raw/master/minipg.pyExampleimport minipg
conn = minipg.connect(host='localhost',
                    user='postgres',
                    password='secret',
                    database='database_name')
cur = conn.cursor()
cur.execute('select foo, bar from baz')
for r in cur.fetchall():
   print(r[0], r[1])
conn.close()SSL ConnectionYou can make an SSL connection with an instance of SSLContext.
Below is an example of an ssl connection without certificate validation.import ssl
import minipg
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
conn = minipg.connect(host='localhost',
                    user='postgres',
                    password='secret',
                    database='database_name',
                    ssl_context=ssl_context)Restrictions and Unsupported FeaturesSupported Authentication METHOD are only ‘trust’, ‘md5’ and ‘scram-sha-256’.Not full support for array data types.Not support for prepared statements.For MicroPythonSeehttps://github.com/nakagami/micropg.
It’s a minipg subset driver.
Package: mini-photoshop
Mini Photoshop ToolIntroductionMajor FeaturesFree and open sourceUsing SOTA models:U2NetandLaMaSupport 2 running option:libraryorweb appSupport CPU and GPU (default: CPU)Support: Background Removal and Object Removal (web app usage)TODO[] Support batch processing (for library usage)[] Post processing for image smoothing[] Optimize processing time with large imageInstallationpipinstallmini-photoshopLibrary Usageimportcv2importwarningswarnings.simplefilter('ignore')frommatplotlibimportpyplotaspltfrommini_photoshop.modelimportInpaintModel,SalientModeldevice="cpu"img_path="PASTE IMAGE PATH HERE"# model_name can be "u2net_lite", "u2net", "u2net_human_seg"salient_model=SalientModel(model_name='u2net_lite',device=device)inpaint_model=InpaintModel(device=device)original_image=cv2.imread(img_path)original_image=cv2.cvtColor(original_image,cv2.COLOR_BGR2RGB)original_mask=salient_model(original_image)# Create a copy of the image and set all background values to 255 (white)bg_removed_result=original_image.copy()bg_removed_result[original_mask==0]=255inpaint_result=inpaint_model(original_image,original_mask*255)inpaint_result=cv2.cvtColor(inpaint_result,cv2.COLOR_BGR2RGB)fig,ax=plt.subplots(nrows=1,ncols=3,figsize=(20,7))ax[0].imshow(original_image)ax[1].imshow(bg_removed_result)ax[2].imshow(inpaint_result)forainax:a.axis("off")plt.show()Web App UsageRun commandmini-photoshopand then go to:http://localhost:8501/