Saravanan666/pypi-org huggingface dataset:
Package: microk8s-configure
Microk8s-configureTool for setting microk8s on Ubuntu VPS over SSHFeaturesinstall microk8senabled registry microk8sconfigure for external push in docker registryenable custom plugins in command lineconfigure local kubectl for connect to microk8s on VPSsupport for other users (now only can install with root user)run$python-mmk8sconfig-prootServerPassword-i165.2.1.146-dmy-domain.cofor push into docker registryedit your docker-daemon.json adding:{"debug":true,"insecure-registries":["my-domain.co:5000"]}Authors:Fabio Morenofabiomoreno@outlook.com
Package: microkinetic-toolkit
Introductionmicrokinetic_toolkit is made to perform the microkinetic simulation
based on the ab initio calculation such as density functional theory (DFT).These codes doevaluation of reaction energy, reaction Gibbs energy etc. from elementary reaction stringevaluation of reaction rate constants from above quantitiessolving the rate equation (microkinetic analysis)visualization of the chemica reaction networkInputFile with elementary reactions: json, csv.OutputChange of the molar fraction is shown on the screenAuthorsAtsushi Ishikawa (National Institute for Materials Science)Haruyuki Oda (Hitachi, Ltd.)Documenthttps://atsushi-ishikawa.github.io/microkinetic_toolkit/Paperhttps://pubs.acs.org/doi/10.1021/acscatal.0c04104
Package: microlib
LicenseMicrolib 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 any later version. See LICENSE file.Microlib also includes third party open source software components: the Deprecated class. It has its own license. Please see ./microlib/deprecation.pyOverviewMicrolib contains some useful functions or classes:XDict is a dict with recursive_update() and flat() methods,StandardConfigFile helps to manage user config files,terminal.ask_yes_no() and terminal.ask_user_choice() to ask questions to the user for cli tools,terminal.tabulate() is a very simple function to display tabulated data in the terminal,terminal.echo_info() echo_warning() and echo_error() display info, warning and error messages with some color.rotate() and grouper() help to handle iterators.database offers a ContextManager for sqlite3 database, an Operator and a Ts_Operator classes to provide shortcuts for common sqlite3 commands.a Deprecated class, that provides a decorator to deprecate functions (emit a warning when it is called).Source code
Package: micro-lisp-tool-amotzek
Micro Lisp ToolThis command line tool is for ESP32 boards that are flashed with Micro Lisp.
The tool allows to run and upload Lisp programs to the boards and use the read-eval-print loop.Running filespython -m micro_lisp_tool run  --portUploading filespython -m micro_lisp_tool put  --port
Package: microllama
MicroLlamaThe smallest possible LLM API. Build a question and answer interface to your own
content in a few minutes. UsesOpenAI embeddings,gpt-3.5andFaiss, viaLangchain.UsageCombine your source documents into a single JSON file calledsource.json.
It should look like this:[{"source":"Reference to the source of your content. Typically a title.","url":"URL for your source. This key is optional.","content":"Your content as a single string. If there's a title or summary, put these first, separated by new lines."},...]Seeexample.source.jsonfor an example.Install MicroLlama into a virtual environment:pipinstallmicrollamaGet anOpenAI API keyand add
it to the environment, e.g.export OPENAI_API_KEY=sk-etc. Note that
indexing and querying require OpenAI credits, whicharen't free.Run your server withmicrollama. If a vector search index doesn't exist,
it'll be created from yoursource.json, and stored.Query your documents at/api/ask?your question.Microllama includes an optional web front-end, which is generated withmicrollama make-front-end. This command creates a singleindex.htmlfile
which you can edit. It's served at/.ConfigurationMicrollama is configured through environment variables, with the following
defaults:OPENAI_API_KEY: requiredFAISS_INDEX_PATH: "faiss_index"SOURCE_JSON: "source.json"MAX_RELATED_DOCUMENTS: "5"EXTRA_CONTEXT: "Answer in no more than three sentences. If the answer is not
included in the context, say 'Sorry, this is no answer for this in my
sources.'."UVICORN_HOST: "0.0.0.0"UVICORN_PORT: "8080"Deploying your APICreate a Dockerfile withmicrollama make-dockerfile. Then:On Fly.ioSign up for aFly.ioaccount andinstall flyctl. Then:flylaunch# answer no to Postgres, Redis and deploying nowflysecretssetOPENAI_API_KEY=sk-etcflydeployOn Google Cloud Rungcloudrundeploy--source.--set-env-vars="OPENAI_API_KEY=sk-etc"For Cloud Run and other serverless platforms you should generate the FAISS index
at container build time, to reduce startup time. See the two commented lines inDockerfile.You can also generate these commands withmicrollama deploy.Based onLangchainSimon Willison'sblog post,datasette-openaianddatasette-faiss.FastAPIGPT IndexDagster blog postTODOUse splitting which generates more meaningful fragments, e.g.
text_splitter =SpacyTextSplitter(chunk_size=700, chunk_overlap=200, separator=" ")
Package: microlog
pip install micrologmicrologSimple and lightweight loggingGetting startedfrom microlog import Logger
my_logs = Logger()
my_logs.log("Hello World!")Logs can be created with the following methodslog()debug()info()warning()error()critical()Logs from a current session are saved in memory and can be viewed with thelogs()method.OptionsThere are three options available when creating a new Logger instance.1. FileBy default a log file will not be created when creating a new Logger instance. Set thefileparameter toTrueand a log file will be created in the current directory. You may provide a custom name for the log file by setting thefileparameter to a string value.Logger(file = "my_logs")Logs are written using the append option so they can be added to existing log files.2. ConsoleLog messages will be written to the console by default. Set theconsoleparameter toFalseto stop seeing log messages in the console.Logger(console = False)You can change this status using theconsole()method.my_logs.console(False)3. Time formatAll references to time will be local date-time by default. To use a UTC timestamp, set thetsparameter toTrue.  This will apply to default log file names and times in the log files.Logger(ts = True)
Package: micro-logger
micro-loggerA JSON logger made for microservicesUsageimportmicro_logger# This overrides the root logger as welllogger=micro_logger.getLogger("my-service")logger.info("sure",extra={"a":1})Testingimportmicro_logger_unittestimportmicro_logger# Use this class as a baseclassTestUnitTest(micro_logger_unittest.TestCase):# Override for all tests@unittest.mock.patch("micro_logger.getLogger",micro_logger_unittest.MockLogger)defsetUp(self):self.logger=micro_logger.getLogger("unit")# Any test can check for loggingdeftest_assertLogged(self):self.logger.info("sure",extra={"a":1})self.assertLogged(self.logger,"info","sure",extra={"a":1})
Package: micromagneticdata
micromagneticdataMarijan Beg1,2,Martin Lang2,Samuel Holt2,3,Swapneel Amit Pathak2,4, andHans Fangohr2,4,51Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK2Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, UK3Department of Physics, University of Warwick, Coventry CV4 7AL, UK4Max Planck Institute for the Structure and Dynamics of Matter, Luruper Chaussee 149, 22761 Hamburg, Germany5Center for Free-Electron Laser Science, Luruper Chaussee 149, 22761 Hamburg, GermanyDescriptionBadgeTestsLintingReleasesCoverageDocumentationYouTubeBinderPlatformsDownloadsLicenseDOIAboutmicromagneticdatais a Python package, integrated with Jupyter, providing:The analysis of computational magnetism data.It is available on Windows, MacOS, and Linux. It requires Python 3.8+.DocumentationAPIs and tutorials are available in the documentation. To access the documentation, use the badge in the table above.Installation, testing, and upgradeWe recommend installation usingcondapackage manager. Instructions can be found in thedocumentation.BinderThis package can be used in the cloud via Binder. To access Binder, use the badge in the table above.YouTubeYouTube video tutorials are available on theUbermag channel.SupportIf you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue inubermag/helprepository.ContributionsAll contributions are welcome, however small they are. If you would like to contribute, please fork the repository and create a pull request. If you are not sure how to contribute, please contact us by raising an issue inubermag/helprepository, and we are going to help you get started and assist you on the way.Contributors:Sergii MamedovLicenseLicensed under the BSD 3-Clause "New" or "Revised" License. For details, please refer to theLICENSEfile.How to citeM. Beg, M. Lang, and H. Fangohr. Ubermag: Towards more effective micromagnetic workflows.IEEE Transactions on Magnetics58, 7300205(2022).M. Beg, R. A. Pepper, and H. Fangohr. User interfaces for computational science: A domain specific language for OOMMF embedded in Python.AIP Advances7, 56025(2017).Marijan Beg, Martin Lang, Samuel Holt, Swapneel Amit Pathak, and Hans Fangohr. micromagneticdata: Python tools for the analysis of computational magnetism data DOI:10.5281/zenodo.4624869(2023).AcknowledgementsOpenDreamKit– Horizon 2020 European Research Infrastructure project (676541)EPSRC Programme Grant onSkyrmionics(EP/N032128/1)
Package: micromagneticmodel
micromagneticmodelMarijan Beg1,2,Martin Lang2,Samuel Holt2,3,Swapneel Amit Pathak2,4, andHans Fangohr2,4,51Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK2Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, UK3Department of Physics, University of Warwick, Coventry CV4 7AL, UK4Max Planck Institute for the Structure and Dynamics of Matter, Luruper Chaussee 149, 22761 Hamburg, Germany5Center for Free-Electron Laser Science, Luruper Chaussee 149, 22761 Hamburg, GermanyDescriptionBadgeTestsLintingReleasesCoverageDocumentationYouTubeBinderPlatformsDownloadsLicenseDOIAboutmicromagneticmodelis a Python package, integrated with Jupyter, providing:Domain-specific language for computational magnetism.It is available on Windows, MacOS, and Linux. It requires Python 3.8+.DocumentationAPIs and tutorials are available in the documentation. To access the documentation, use the badge in the table above.Installation, testing, and upgradeWe recommend installation usingcondapackage manager. Instructions can be found in thedocumentation.BinderThis package can be used in the cloud via Binder. To access Binder, use the badge in the table above.YouTubeYouTube video tutorials are available on theUbermag channel.SupportIf you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue inubermag/helprepository.ContributionsAll contributions are welcome, however small they are. If you would like to contribute, please fork the repository and create a pull request. If you are not sure how to contribute, please contact us by raising an issue inubermag/helprepository, and we are going to help you get started and assist you on the way.Contributors:Thomas KluyverRyan A. PepperSergii MamedovNatalie DowningLicenseLicensed under the BSD 3-Clause "New" or "Revised" License. For details, please refer to theLICENSEfile.How to citeM. Beg, M. Lang, and H. Fangohr. Ubermag: Towards more effective micromagnetic workflows.IEEE Transactions on Magnetics58, 7300205(2022).M. Beg, R. A. Pepper, and H. Fangohr. User interfaces for computational science: A domain specific language for OOMMF embedded in Python.AIP Advances7, 56025(2017).Marijan Beg, Martin Lang, Samuel Holt, Swapneel Amit Pathak, and Hans Fangohr. micromagneticmodel: Python-based domain-specific language for computational magnetism DOI:10.5281/zenodo.3539479(2023).AcknowledgementsOpenDreamKit– Horizon 2020 European Research Infrastructure project (676541)EPSRC Programme Grant onSkyrmionics(EP/N032128/1)
Package: micromagnetictests
micromagnetictestsMarijan Beg1,2,Martin Lang2,Samuel Holt2,3,Swapneel Amit Pathak2,4, andHans Fangohr2,4,51Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK2Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, UK3Department of Physics, University of Warwick, Coventry CV4 7AL, UK4Max Planck Institute for the Structure and Dynamics of Matter, Luruper Chaussee 149, 22761 Hamburg, Germany5Center for Free-Electron Laser Science, Luruper Chaussee 149, 22761 Hamburg, GermanyDescriptionBadgeTestsLintingReleasesCoverageDocumentationYouTubeBinderPlatformsDownloadsLicenseDOIAboutmicromagnetictestsis a Python package, integrated with Jupyter, providing:A collection of computational magnetism tests for testing different calculatorsIt is available on Windows, MacOS, and Linux. It requires Python 3.8+.DocumentationAPIs and tutorials are available in the documentation. To access the documentation, use the badge in the table above.Installation, testing, and upgradeWe recommend installation usingcondapackage manager. Instructions can be found in thedocumentation.BinderThis package can be used in the cloud via Binder. To access Binder, use the badge in the table above.YouTubeYouTube video tutorials are available on theUbermag channel.SupportIf you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue inubermag/helprepository.ContributionsAll contributions are welcome, however small they are. If you would like to contribute, please fork the repository and create a pull request. If you are not sure how to contribute, please contact us by raising an issue inubermag/helprepository, and we are going to help you get started and assist you on the way.Contributors:LicenseLicensed under the BSD 3-Clause "New" or "Revised" License. For details, please refer to theLICENSEfile.How to citeM. Beg, M. Lang, and H. Fangohr. Ubermag: Towards more effective micromagnetic workflows.IEEE Transactions on Magnetics58, 7300205(2022).M. Beg, R. A. Pepper, and H. Fangohr. User interfaces for computational science: A domain specific language for OOMMF embedded in Python.AIP Advances7, 56025(2017).Marijan Beg, Martin Lang, Samuel Holt, Swapneel Amit Pathak, and Hans Fangohr. micromagnetictests: Testing package for computational magnetism tools. DOI:10.5281/zenodo.3707736(2023).AcknowledgementsOpenDreamKit– Horizon 2020 European Research Infrastructure project (676541)EPSRC Programme Grant onSkyrmionics(EP/N032128/1)
Package: micromamba-install-locked-pip-dependencies
micromamba-install-locked-pip-dependenciesTable of Contentsmicromamba-install-locked-pip-dependenciesLinksIntroductionUsageInstallationWithout installationLicenseLinksGitLabGitHubPyPIIntroductionMicromamba currentlyignorespip dependencies in new-style lockfiles. This script parses the lockfile and installs those dependencies.This script has no dependencies other than Python 3.6+. (It implements its own crude YAML parser.)UsageTo installmain-category dependencies fromconda-lock.yml, simply runmicromamba-install-locked-pip-dependencies.For more advanced usage:$micromamba-install-locked-pip-dependencies--helpusage: micromamba-install-locked-pip-dependencies [-h] [-f LOCKFILE][-c CATEGORY] [--dry-run][--uninstall][--pip-location PIP_LOCATION]Install pip dependencies from new-style lockfilesoptional arguments:-h, --help            show this help message and exit-f LOCKFILE, --lockfile LOCKFILEFilename of the lockfile-c CATEGORY, --category CATEGORYCategory to install (default 'main')--dry-run             Do not actually install anything--uninstall           Do not actually install anything--pip-location PIP_LOCATIONLocation of pip executableInstallationpip install micromamba-install-locked-pip-dependenciesWithout installationcurl https://raw.githubusercontent.com/maresb/micromamba-install-locked-pip-dependencies/master/micromamba_install_locked_pip_dependencies/cli.py | python - --helpLicensemicromamba-install-locked-pip-dependenciesis distributed under the terms of theMITlicense.
Package: micro-manager-precice
Micro ManagerA tool to facilitate solving two-scale (macro-micro) coupled problems using the coupling librarypreCICE.The main documentation is rendered on thepreCICE website.Please report anyissuesand give us feedback throughone of our community channels.The concept and initial design of the Micro Manager is described inDesai, Ishaan, & Bringedal, Carina & Uekermann, Benjamin. A flexible software approach to simulate two-scale coupled problems. ECCOMAS Congress 2022.10.23967/eccomas.2022.037.
Package: micromatrix
MicroMatrixThis is an old unfinished project which I plan to work on soon.MicroMatrix is a lightweight Python module which adds a generalizedMatrixclass, supporting many matrix operations with no external dependencies.MicroMatrix Supports:Matrices of any sizeComplex NumbersAddition & SubtractionMultiplication & DivisionInteger ExponentiationTranspositionInverse & DeterminantAssignment OperatorsAnd more!UsageInstallationFlask Sitemapper requires Python 3.10 or newer. The latest version can be installed from PyPi with pip as shown below.pip install micromatrixNow you can import theMatrixclass to use in your code.frommicromatriximportMatrix# Creating a 3x2 matrixmy_matrix=Matrix([1,2,3],[4,5,6])Supported OperationsMicroMatrix supports many operations, including the standard Python mathematical operators and common matrix operations. These operations can be combined and used for complex calculations.Keep in mind that some operations may not be possible depending on the dimension and elements of your matrices. In that case, you will see aValueErrorwith a description such as:ValueError: Operation requires a square matrixReversible OperationsMatrix + int | float | complex | Matrix -> MatrixMatrix - int | float | complex | Matrix -> MatrixMatrix * int | float | complex | Matrix -> MatrixMatrix / int | float | complex | Matrix -> MatrixMatrix == Any -> boolNon-Reversible OperationsMatrix ** int -> Matrix+ Matrix -> Matrix- Matrix -> Matrix~ Matrix -> Matrixabs(Matrix) -> Matrixlen(Matrix) -> intstr(Matrix) -> strPropertiesMatrix.identity -> MatrixMatrix.transpose -> MatrixMatrix.determinant -> int | float | complexMatrix.invert -> MatrixMethodsMatrix.administer(func) -> Matrixapplies func to each value in Matrix
Package: micromechanics
Micromechanics library for experimental micromechanicsThis library allows to read datafiles from different nanoindenters and allows to analyse it by evaluating the hardness and Young's modulus using the Oliver-Pharr method. It also includes functions for frame stiffness and area function calibration as well as a number of plotting functions. Additionally the library allows to read SEM images and optimize themThe library can read:xls files from the vendors MTS, Agilent, Keysight, which produced the XP and G200 indentershap files from the Fischer-Scopezip-files which include all the files of the Micromaterials NanoXtremesome common format which is based on the NeXus common data formatTif images from Zeiss and FEI/ThermoFischerInstall bypipinstallmicromechanicsRun test using the default datafrommicromechanics.indentationimportIndentationi=Indentation()i.plotAll()Alternatively, for Tif imagesfrommicromechanics.tifimportTifMore information as well as tutorials can be found at:Read the docsIf you want to contribute to the development, we develop atgithubContributorsSteffen BrinckmannVelislava YonkovaRuomeng (Nicole) ChenInformation for developersTest the code: linting, documentation and then the tests from project main directorypylintmicromechanics
make-Cdocshtml
pythontests/testVerification.py
pythontests/testAgilent_xls.py
pythontests/testMicromaterials_hdf5.py
pythontests/testFischerScope_hdf5.py
pythontests/testAllFiles.pyThese tests are also executed as github action once pushed.or the short form to run all the testspython-munittesttests/test*#TODO_P3 turn all tests into one github actionThen upload/create-pull-request to github, via./commit.py'my message'How to find bugs that occurred in a past commitSteps:Git history in nice ASCII  => save in file in distant folder; along with notesgo to point in history (do not change the present)find diff: always old^ newrun your testsundo your changes since checkoutgo back to presentgitlog--oneline--graph
gitcheckoutbf0b634
gitdiffe7eac50^fed7119#(old^ new)# testgitreset--hard
gitcheckoutmain
Package: micromechanics-indentationGUI
micromechanics-indentationGUIInstallCreate a new environment (python >= 3.8) usinganaconda-navigator(https://www.anaconda.com/). In Anaconda's documentation (https://docs.anaconda.com/free/navigator/) you will learn:how toinstallanaconda-navigator in the section of "Anaconda Navigator=>Installation" (reading takes ~5 min),how tocreate and activatea new environment in the section of "Anaconda Navigator=>Tutorials=>How to create a Python 3.5 environment from Anaconda2 or Anaconda3" (reading takes ~5 min).In the terminal of the environment created by Anaconda Navigator, keyboard type the following command and press Enterpipinstallmicromechanics-indentationGUIUpgradeIn the terminal, keyboard type the following command and press Enterpipinstall--upgrademicromechanics-indentationGUIUsageUsers need to know:For fast reading usingHDF5files:Using the given original file (e.g. the XLSX file for G200X), the HDF5 file will be automatically generated at the first calibration/calculation (or when an HDF5 file with the same name as the XLSX file does not exist).The automatically generated HDF5 file has the same file name as the original file (e.g. the XLSX file for G200X) except the file extension of ".h5" and locates in the same folder as the original file.The original file extension (e.g. '.xlsx' for G200X) should be given in the path instead of the file extension of the HDF5 file (".h5").[Important]If you changed the content of the original file, please delete the correspoding HDF5 file.Running by keyboard typing the following command and pressing Enter in the terminalmicromechanics-indentationGUIUninstallIn the terminal, keyboard type the following command and press Enterpipuninstallmicromechanics-indentationGUIMore detailed descriptions for developersPrepare and create a new versionDelete RecentFiles.txt in /indentationGUI/micromechanics_indentationGUIDelete *.hf in /indentationGUI/micromechanics_indentationGUI/ExamplesSet "# pylint: skip-file" for all files named "***_ui.py"Test the code: linting, documentation and then the tests from the project's main directorypylintmicromechanics_indentationGUI/
make-Cdocshtml# python tests/testVerification.pyThen upload/create-pull-request to GitHub, via./commit.py'my message'