Saravanan666/pypi-org huggingface dataset:
Package: mini-pickle-db
Mini-Pickle-Database-FrameworkAn easy way to build your very own small database!Table of ContentsAbout The ProjectBuilt WithPrerequisitesInstallationUsageContributingContactAcknowledgmentsAbout The ProjectThis framework is used to create a light, easy to use and versatile database that fits perfectly in small projects or in larger tasks requiring a small database for some sort of data management.(back to top)Built WithBelow you can find a list of all major frameworks/libraries used to bootstrap this project:PythonPython Pickle(back to top)PrerequisitesPython version 3.9 or abovePickleIDE (VS Code, PyCharm, Thonny etc.)Installationpython-mpipinstallmini_pickle_dbUsageHere is how to framework actually functions:Initial steps:frommini_pickle_db.pickle_dbimportdb1.1. You can initiate the database class using the:database=db()1.2. You should specify the file path of the database document as shown below:database.db_file='file_path'Note: The Wrapper will automatically create the file, but not the folder, so one must be created manually.Document Structure:2.1. The documents follow a simple Python dictionary format as shown below:example_doc={"key_1":"value_1","key_2":"value_2"}Database Usage:
2.1. How to insert a single document in the database:single_doc={"key_1":"value_1","key_2":"value_2"}db.insert(single_doc)2.2. How to insert multiple documents in the database:multiple_docs=[{"key_1":"value_1","key_2":"value_2"},{"key_3":"value_3","key_4":"value_4"}]db.insert(multiple_docs)Note: The database automatically assigns an ID to every document and is autoincremented.[{"key_1":"value_1","key_2":"value_2","id":0},{"key_1":"value_1","key_2":"value_2","id":1}]Note: The data type of the multiple document database is a list of dictionaries.2.3. How to load the database:database.load()Note: It returns a list of dictionaries.2.4. How to query the database:2.4.1. Query a single document:database.query_one({'key_2':'value'})Note: It will return only the first document it finds.2.4.2. Query a multiple documents:database.query_many({'key_2':'value'})Note: It will return all the documents matching the querry in a list format.2.5. How to delete document:database.delete({'key':'value'})Note: It will delete all the documents matching the querry in a list format.For more examples, please refer to theDocumentation(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull Request(back to top)ContactMarin Dragolov -murrou13@gmail.comProject Link:https://github.com/murrou-cell/mini_pickle_db(back to top)Acknowledgments(back to top)
Package: minipip
Tool for installing distribution packages for MicroPython and CircuitPython.Supports bothupip-compatible packages,
and regular pip-compatible
packages (by usingpip install –target …).By default it prefers packages at micropython.org-s index. If the package or the required version is not
found there, then it turns to PyPI.If--portis given andrshellis available then it uploads
the extracted files to the target device, otherwise it just extracts modules to a directory in the local filesystem.--targetdirectory must be explicitly given in both cases. If target is at local filesystem, then
makes sure data gets synced (useful, if target is a USB volume representing MicroPython or
CircuitPython filesystem)Installationpip install minipipRequires Python 3.6+. The only required dependencies arepipandsetuptools(most likely already present).rshellis an optional dependency.Usage examplesminipip install--port/dev/ttyACM0--target/libmicropython-loggingminipip install--targetG:\libadafruit-circuitpython-ssd1306minipip -hminipip [-h] [-r [REQUIREMENT_FILE [REQUIREMENT_FILE ...]]] [-p [PORT]] -t TARGET_DIR [-i INDEX_URL] [-v] [-q] [--version] {install} [package_spec [package_spec ...]]

Meant for installing both upip and pip compatible distribution packages from PyPI and micropython.org/pi to a local directory, USB volume or directly to MicroPython filesystem over
serial connection (requires rshell).

positional arguments:
  {install}             Currently the only supported command is 'install'
  package_spec          Package specification, eg. 'micropython-os' or 'micropython-os>=0.6'

optional arguments:
  -h, --help            show this help message and exit
  -r [REQUIREMENT_FILE [REQUIREMENT_FILE ...]], --requirement [REQUIREMENT_FILE [REQUIREMENT_FILE ...]]
                        Install from the given requirements file.
  -p [PORT], --port [PORT]
                        Serial port of the device (specify if you want minipip to upload the result to the device)
  -t TARGET_DIR, --target TARGET_DIR
                        Target directory (on device, if port is given, otherwise local)
  -i INDEX_URL, --index-url INDEX_URL
                        Custom index URL
  -v, --verbose         Show more details about the process
  -q, --quiet           Don't show non-error output
  --version             Show program version and exit
Package: minipot
A simple honeypot to capture attacks such as netcat reverse shell attacks or reverse tcp shell attacks.
Minipot is written in python with no dependencies. Capable of simulating a simple shell and smart smart responses.Source Codehttps://github.com/msris108/minipotDocumentationhttps://minipot.rtfd.ioDocumentation can also be found in the docscd docsmake htmland view the docsAuthor email:msris108@gmail.com
Package: minipti
MiniPTIIn this repository a GUI is provided to control the MiniPTI as also presented inWaveguide based passively demodulated photothermal interferometer for light absorption measurements of trace substances. In addition to the GUI, Python implementations of the presented algorithms and the driver software for the MiniPTI hardware are also provided as libraries.1. installationIn order to make the library light-weighted different installation options exist.To install only the interferometry library you can install it withpip install miniptiTo additionally use the inversion algorithm you can typepipinstallminipti[algorithm]To install the entire package (GUI, algorithms and hardware drivers) you can typepipinstallminipti[gui]2. Usage and GUIThe GUI can be used viapython-mminipti2.1 Home Tab2.2 Pump Laser Tab2.2.1 Pump Laser Driver Tab2.2.2 Pump Laser Tec Driver Tab2.3 Probe Laser Tab2.3.1 Probe Laser Driver Tab2.3.1 Probe Laser Tec Driver Tab2.3 Plotting Tabs2.3.1 DC Signals2.3.2 Amplitudes2.3.3 Output Phases2.3.4 Interferometric Phase2.3.5 Sensitivity2.3.6 Symmetry2.3.7 PTI Signal3. libraries3.1 AlgorithmThe subpackage Algorithm contains the implementation of the algorithms and can be divided into the subpackages interferometry and pti. interferometry contains the algorithms for the interferometric phase and characterisation of the interferometer. pti contains the algorithms for decimation and PTI inversion.It is also possible to use only the interferometer subpackage without having to install dependencies for the other packages.3.1.1 Interferometryinterferometry contains the classes interferometer and characterisation.
Examples of usage can be found underexamples/interferometer.pyandexamples/characterisation.py.3.1.2 PTIpti contains the classes decimation inversion. Example calls can be found underexamples/pti_inversion.py3.2 HardwareHardware contains the classes to control the motherboard (DAQ + BMS), laser (Probe and Pump Laser) and TEC driver as well as the valve control.
Package: minipush
Minipush by Rémi "Mr e-RL" LANGDORPHCopyright (c) 2019 Rémi LANGDORPH -mrerl@warlegend.net(under MIT license)Links:pypi projectgithub repoInstall with pypi:pip install minipushThis package supports the followings filetypes: css, jsSample config:{"origin":{"folders":["css/","js/core/","js/plugins/","js/"]},"destination":{"folder":"../templates/","exts":["htm","html"],"type":"embed","basefolderlink":"/static/"},"anchors":{"js":{"start":"<!--AutomatedJSExport-Start-->","end":"<!--AutomatedJSExport-End-->"},"css":{"start":"<!--AutomatedCSSExport-Start-->","end":"<!--AutomatedCSSExport-End-->"},"conf":{"start":"<!--AutomatedExport-Start->","end":"<-AutomatedExport-End-->"}},"format":{"embed":{"js":"<!--{filename}--><script>{content}</script>","css":"<!--{filename}--><style>{content}</style>"},"link":{"js":"<script src='{path}'/>","css":"<link href='{path}' rel='stylesheet'/>"}},"cache":{"folder":"../static/","enabled":true}}Basic example script (github):fromminipushimportMinipushMinipush(file="config.json").run()Command mode:python -m minipush [arguments]Arguments:
command      argument         description
-c --config  {configfile}     set the json config file to load
-j --json    '{configjson}'   set the config from json
-C --clear                    remove all the scripts from the templates
-h --help                     show help
-v --version                  show version
Package: minipyer
MINIPYER (BETA)Minipyer is a simple Python package that you can use in order to minify your code. It supports all programming
languages! (Well, at least I'm planning it 8D)Version 0.1.0Supported languagesCSSJust this? I thought you saidalllanguages?Well... You can support this project bydonatingor by contributing to the project.You can suggest a new language by opening an issue on theGitHub repositoryor by sending an email toCodeWriter21@gmail.com.InstallationThis is a Python package, so the first thing you need inorder to use it is toinstall Python.Then you can install the package using pip:pipinstallminipyer# ORpython-mpipinstallminipyerIf you don't want to use pip, you can clone the repository and install it:# Clone the repositorygitclonehttps://github.com/MPCodeWriter21/minipyer# Go to the cloned directorycdminipyer# Install the packagepythonsetup.pyinstallAboutAuthor: CodeWriter21 (Mehrad Pooryoussof)GitHub Page:MPCodeWriter21Telegram Channel:@CodeWriter21Aparat Channel:CodeWriter21Licenseapache-2.0DonateIn order to support this project you can donate some crypto of your choice 8DDonate Addresses
Package: minipyg
minipygSimple(st) python dependency managerInstallpython3-mpipinstallminipygPrerequisitesYou should work inside an activated virtual environment.UsageIf you need to install some package, you just run:minipyginstall<some_package>Uninstalling packages:minipyguninstall<some_package>After pulling an update of your project from git repository, you can update your local dependencies too:minipygupdate'run' commandInminipig.jsonfile you can specify a run command that launch your project, for example:{"commands":{"run":"python3 manage.py runserver"}}Then running the command:minipygrunwill automatically update your dependencies and start your project.
Package: minipyp
A more traditional web server in PythonAbout the projectMiniPyP (pronouncedminiÂ·pipe) is an event-driven web server written in pure Python.However, MiniPyP is not an application framework. It’s a full web server, with virtual hosts, reverse proxies, and everything else you need. MiniPyP is intended to replace Apache and nginx, so you can use Python without the performance hit of CGI.MiniPyP has some more advanced features right out of the box, too. For example, when a user goes to/some/urlon your server, and the directory’sstaticoption is set to False (default), the server will look for the file/some/url. If it doesn’t exist, but the file/somedoes, that file will be served. Extensions do not need to be specified with thestaticoption set to False. In addition, if a file does not exist but a file namedcatchallexists, it will be served instead of a 404. This makes creating a single-page application that much more elegant.SetupFirst, install MiniPyP via pip.pipinstallminipypTo start a server within a Python program, specify a config like so (you may alternatively give a file location as theconfig):fromminipypimportMiniPyPconfig={'host':'0.0.0.0','port':80,'root':'/var/www/html','timeout':15,'error_pages':{404:{'html':'<p>The file <code>{uri}</code> could not be found.</p>'}}}MiniPyP(config=config).start()You may also start a server via the command line. Unless specified, the config will be created and loaded from/etc/minipyp/minipyp.confon Mac/Linux and%APPDATA%\MiniPyP\minipyp.confon Windows.minipypstart[-cCONFIG]Creating a pageTo create a page (e.g. ‘https://mysite.com/test’), create a file calledtest.pyin mysite.com’s root with the following:defrender(server,request):return'<p>You requested the page <code>'+request.uri+'</code>.</p>'Learn moreSee the full documentation athttps://minipyp.readthedocs.ioHistory0.2.0Daemon modeLogging (+ log files)Global config file (minipyp.conf)Directory-specific config files (.minipyp)0.1.0b1Now tracking changes
Package: minipyparser
MiniPyParserA minimal python parser, written in pythonView LicenseInstallingLocal$ pip install -e minipyparserPyPI$ pip install minipyparserUsing# examples/hello_world.pyprint("hello, from mars!")# examples/main.pyfromminipyparserimporttokenizerfromminipyparserimportparserforastinparser.parse(tokenizer.tokenize(open("hello_world.py"))):print(ast)$ cd examples
$ python main.py

Comment(value='examples/hello_world.py')
Call(head=Name(print), args=[Literal(value='hello, from mars!')])2022 - Marcel Guinhos
Package: miniqc
miniQCminiQC is a BIDS App for performing minimal quality control beyond validation.
Its goal is to rapidly detect data corruption, as opposed to dataset coherence
or image quality.Table of ContentsInstallationUsageTestingLicenseInstallationpip install miniqcUsageminiqcis aBIDS-App, so can be run
as follows:miniqc /path/to/dataset /output participantBecause miniqc does not currently generate any outputs or modify its behavior
based on analysis level, output directory and analysis level are optional.This tool is meant as a CLI application and does not provide a public API.Example$miniqctests/data/bids_dataset[["sub-01/anat/sub-01_acq-truncated_T2w.nii.gz","FailedCheck","Expected 477 bytes; found 352"],["sub-01/anat/sub-01_acq-dangling_T2w.nii.gz","FileNotFoundError","[Errno 2] No such file or directory: 'tests/data/bids_dataset/sub-01/anat/sub-01_acq-dangling_T2w.nii.gz'"]]Single file usage is also permitted:$miniqctests/data/bids_dataset/sub-01/anat/sub-01_acq-truncated_T2w.nii.gz[["/git/miniqc/tests/data/bids_dataset/sub-01/anat/sub-01_acq-truncated_T2w.nii.gz","FailedCheck","Expected 477 bytes; found 352"]]OutputsThe output of this tool is a JSON array of arrays, each of length 3.
Each sub-array contains the failed file (relative to dataset root),
the type of error, and a message with more detail.TestingWith thehatchproject management tool installed:hatch run test:covAlternately, just runpytest, although you will need the dependencies installed.Licenseminiqcis distributed under the terms of theMITlicense.
Package: miniquant-ioc
EPICS IOC for the PicoQuant HydraHarp 400The HydraHarp 400 isadvertized asa "multichannel picosecond event timer module" by its manufacturer,
PicoQuant GmbH in Germany.This is anEPICSInput-Output Controller (IOC)
application for the HydraHarp. It uses theEMMIAPI, which in turn usesDiamond Light Source's EPICS
wrapperpythonSoftIOC(as of September 2023). This means that miniquant-ioc's EPICS CA stack is
essentially the "original" C/C++ implementation, merely interfaced by Python.The hardware access layer is being published asminiquant-- a truly Python'esque :)
API layer on top of theproprietary HydraHarp APIof PicoQuant, but without the EPICS specific code.InstallationMiniquant-ioc itself is installed fairly easy via PyPI:pip install miniquant-iocOr via direct clone from Gitlab:git clone https://gitlab.com/codedump2/miniquant-ioc \
    && pip install ./miniquant-iocIfminiquant(the API layer) is not
already installed, it will be automatically pulled from PyPI as a
dependency of miniquant-ioc. In that case, you will most certainly
have to go through a mildly elaborate set ofpost-install proceduresto make sure that miniquant is, in fact, able to find and access your
HydraHarp. (This is owing for one to the proprietary nature of the original
PicoQuant C/C++ API for the HydraHarp, and for another to the fact that
the HydraHarp 400 has a quirky USB controller; it works with any modern upstream
Linux kernel, but requires specialized kernel boot parameter or USB driver module
settings.)RunningAdapting the Configuration
Package: minique
minique /miniːk/A minimal Redis 4.0+ job queue for Python 3.7 and above.RequirementsPython 3.7+Redis 4.0+UsageHave a Redis 4.0+ server running.ClientfromredisimportStrictRedisfromminique.apiimportenqueue,get_job# Get a Redis connection, somehow.redis=StrictRedis.from_url('redis://localhost:6379/4')job=enqueue(redis=redis,queue_name='work',callable='my_jobs.calcumacalate',# Dotted path to your callable.kwargs={'a':5,'b':5},# Only kwargs supported.# You can also set a `job_id` yourself (but it must be unique))job_id=job.id# Save the job ID somewhere, maybe?whilenotjob.has_finished:pass# Twiddle thumbs...print(job.result)# Okay!# Get the same job later (though not later than 7 days (by default)):job=get_job(redis,job_id)Worker(s)Ensure your workers are able to import the functions you wish to run.Set the callables the worker will allow with--allow-callable.Alternately, you may wish to subclassminique.work.job_runner.JobRunnerto specify an entirely different lookup mechanism.$minique-uredis://localhost:6379/4-qwork-qanotherqueue-qthirdqueue--allow-callable'my_jobs.*'Sentry SupportMinique automatically integrates with theSentryexception tracking service.You can use the[sentry]installation extrato installsentry-sdkalong with Minique,
or you can do it manually.Simply set theSENTRY_DSNenvironment variable; if all goes well,
you should see a "Sentry configured with a valid DSN" message at CLI boot.Theother environment-configurable optionsalso work as you would expect.Exceptions occurring during job execution will be sent to Sentry and annotated withminiquecontext
describing the job ID and queue name.DevelopmentLinting happens withpre-commit.Tests are run withpytest. (Install withpip install -e .[test].)Code inminiqueis expected to passmypy --strict.
Package: miniredis
Lightweight redis client in pythonInspired byhttps://github.com/stulentsev/miniredis-rubyUsage:import minirediscli = miniredis.MiniRedis() # host/port can be set herecli.set(‘a’, 1)
cli.get(‘a’)cli.sadd(‘b’, 1, 2, 3)
cli.smembers(‘b’)
Package: minireload
minireloadHot code reloading for python scripts with a main loop.
Basically just a nicer front-end for superreload + exception handling.
Requires only the python standard library and no external dependencies.SetupAvailable via pip:pip3 install minireloadUsageimportminireloadasmrclassMain:defdo_update(self):"""This function will be called in a while loop. Do your wörk here!"""work()work()work()defhandle_exc(self,exc):"""If an exception occured during execution or reload, minireload tries tocall this function, allowing the user to define custom exception handling."""print('Help!')if__name__=='__main__':mr.launch(Main,'do_update',exc_func_name='handle_exc')
Package: minirpa
minirpaWhat is this?by: axinerminirpaThis is a minirpa.InstallationThis package can be installed using pip (recommended way):pip3 install minirpaor by downloading and running:python3 setup.py installCopyrightCopyright (c) 2021 axinerPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: minisaml
MiniSAMLAbsolutely minimalistic SAML 2 client. Does not support the full SAML 2 specification, on purpose.
It only supports requests via HTTP Redirect and responses via HTTP POST.UsageCreate a SAML Requestfromminisaml.requestimportget_request_redirect_urlurl=get_request_redirect_url(saml_endpoint="https://your-idp.invalid/sso-endpoint/",expected_audience="Your SAML Issuer",acs_url="https://you.web-site.invalid/saml/acs/")# This line depends on your web framework/serverredirect_user_to_url(url)Validate and parse the SAML Responsefromminisaml.responseimportvalidate_response# This line depends on your web framework/serversaml_response=get_SAMLResponse_form_data_as_bytes()# Load the x509 certificate as a cryptography.x509.Certificate somehowcertificate=...try:response=validate_response(data=saml_response,certificate=certificate,expected_audience="Your SAML Issuer",idp_issuer="https://your-idp.invalid/issuer/")except:handle_invalid_response_somehow()# response is a minisaml.response.Response object
Package: miniscrapes
miniscrapeslil’ pieces of data, one miniscrape at a timeFree software: Apache Software License 2.0Documentation:https://miniscrapes.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.7 (2022-05-08)Added air quality index from the AirNow API.0.1.6 (2022-04-13)Update Covid tracker to use new NYT data source (the old one is no longer
updated), use DuckDB to identify latest reading, and cache intermediate
download to avoid multiple requests against NYT’s servers.Move dependencies from requirements.txt to setup.py.Introduce mypy in linting process.0.1.0 (2021-01-24)First release on PyPI.
Package: miniscript
MiniScript is an embedded scripting language with the syntax heavily inspired
by Ansible, but targeted at data processing rather than remote execution.
MiniScript aims to keep the familiar look-and-feel while being trivial to embed
and to extend.Compared to real Ansible, MiniScript does NOT have:Roles, playbooks or any other form of reusability.“Batteries included” set of actions and filters.Any local or remote execution facility.Notifications, parallel execution or other advanced features.MiniScript does offer:Loops, variables, conditions and blocks.Jinja2templating integration.Lean and easily extensible feature set.A few filters most useful for data processing.An ability to return a value from a script.Ansible-compatible backslash handling.100% unit test coverage.A permissive license (BSD).NoteMiniScript does not use Ansible directly, nor does it import any Ansible
code. We are also not aiming for perfect compatibility and do diverge in
some aspects.Documentation:https://miniscript.readthedocs.ioSource:https://github.com/dtantsur/miniscriptAuthor:Dmitry TantsurLicense: BSD (3-clause)
Package: miniscule
IntroductionMiniscule is a library for flexible YAML-based configuration files, inspired by
Clojure’sAero.ExampleCreate a fileconfig.yamlwith the following contents:server:host:!or[!envHOST,localhost]port:!or[!envPORT,8000]debug:!envDEBUGdatabase:name:my_databaseuser:my_userpassword:!envDB_PASSWORDsecret:!aws/smsecretThen, in Python:fromminisculeimportread_configconfig=read_config('config.yaml')Now,configholds a dictionary with the structure of theconfig.yamlfile, in which the tagged fields have been replaced.