Saravanan666/pypi-org huggingface dataset:
Package: matrices-py
Matrices.pyMatrices.pyis a powerful and user-friendly Python package designed for efficient manipulation and operations on matrices. Whether you're a data scientist, machine learning engineer, or mathematician,Matrices.pyprovides a versatile set of tools to streamline your matrix-related tasks.✨ Key featuresMatrix OperationsAdd matricesSubtract matricesMultiply matrices either by a scalar or another matrixTranspose a matrixOther features are coming soonIt works with python 3.12 or later🔧 InstallationIt should work on any python3 version after the 1.10 but it's always good to have the latest version since it will be the one I'm sure it works on :)⚙ Using PyPi$pipinstallmatrices-py📚 Usage📄 Matrix definitionfrommatricesimportMatrix# Create a basic Matrix objectmatrix=Matrix([[1,5,3],[5,3,1],[3,1,5],])# How to get the matrix back ?print(matrix.matrix)# Output: [[1, 5, 3], [5, 3, 1], [3, 1, 5]]# How many columns ?print(matrix.columns)# Output: 3# How many rows ?print(matrix.rows)# Output: 3# How to get the size as a string ?print(matrix.size)# Output: (3x3)🧮 Matrix operationsAdditionfrommatricesimportMatrixa=Matrix([[1,5,3],[5,9,1],[7,1,5],])b=Matrix([[2,8,1],[3,9,0],[1,8,7],])c=Matrix([[1,5,3]])# How to add two matricesmatrix=a+bprint(matrix.matrix)# Output: [[3, 13, 4], [8, 18, 1], [8, 9, 12]]# What append if the second matrix isn't valid ?matrix=a+c# Exception: Matrices should be the same size ((3x3) != (1x3))SubtractionfrommatricesimportMatrixa=Matrix([[1,5,3],[5,9,1],[7,1,5],])b=Matrix([[2,8,1],[3,9,0],[1,8,7],])c=Matrix([[1,5,3]])# How to add two matricesmatrix=a-bprint(matrix.matrix)# Output: [[-1, -3, 2], [2, 0, 1], [6, -7, -2]]# What append if the second matrix isn't valid ?matrix=a+c# Exception: Matrices should be the same size ((3x3) != (1x3))Multiplication (scalar)frommatricesimportMatrixmatrix=Matrix([[1,5,3],[5,3,1],[3,1,5],])scalar=2# How to multiply a matrix by a scalar ?matrix*=scalarprint(matrix.matrix)# Output: [[2, 10, 6], [10, 6, 2], [6, 2, 10]]Multiplication (matrices)frommatricesimportMatrixa=Matrix([[1,5,3],[5,9,1],[7,1,5],])b=Matrix([[2],[3],[1],])c=Matrix([[2,3,1]])# How to multiply two matrices ?matrix=a@bprint(matrix.matrix)# Output: [[20], [38], [22]]# What append if the second matrix isn't valid ?matrix=a@c# Exception: Matrix a should have a columns number equals to the matrix b rows number (3 != 1)TransposefrommatricesimportMatrixmatrix=Matrix([[1,5,3],[5,9,1],[7,1,5],])transposed=matrix.transpose()print(transposed.matrix)# Output: [[1, 5, 7], [5, 9, 1], [3, 1, 5]]🍕 ContributingAll contribution are welcomed so consider looking at the source code onGitHub🛡 LicenseThis project is licensed under theMIT License
Package: matricks
Class for importing and querying expression dataasets organized as a column-
and row-annotated  matrix.Expression datasets contain the numeric results of one or more samples
derived from microarray assays.   Common to each of the assays is the
specific platform (microarray).   The dataset can be regarded as a table
with rows and columns.  Each column represents a single assay, and each row
contains the assay results for a specific probe on the assay platform.  Thus,
the values in any given row are those obtained from the same probe location
on the platform.  These are referred to asexpression profiles.A dataset can be regarded as a table, such as this one:probe_idHSC 1HSC 2NK 1NK 24528310.149.318.98.784528412.5212.6312.5511.96452856.786.917.837.86452865.585.066.696.64452877.858.138.478.56452888.127.178.718.08452896.826.155.875.324529010.5510.3910.79.93Expression datasets, with rare exception, are stored in text (i.e. flat) files
that have the following format:two or more rows of data, delimited by ASCII newline (\x0a) characters.
(Strictly speaking, there needen’t be any data at all, but what’s the point of that?)each line or row consists of two or more columns of data, delimited by ASCII TAB (\x09) characters.the first column contains the key orprobe ID, assumed to be alpha-numeric, or for the probe.the first row consists of labels identifying the probe ID and sample columns.  This, too, is assumed
to be alpha-numeric.the second through last rows contain expression values and, aside from the first column, which
contains the probe ID, are assumed to be floating point numbers.  In microarray parlance,
each row is  typically referred to as anexpression profile.Some datasets may differ from this format.  For instance, there may be no (first) row of labels,
or the data may be of some format other than floating point.  Provision is made for handling these
arguably special cases.  However, the default settings for instantiatingMatricksclasses
makes the foregoing assumptions about the contents of raw source data.  It is further assumed that
the source dataset is encoded in ASCII strings, requiring the conversion of all numeric data
tofloattype objects.Matricksselection operations generally returnMatricksobjects.   These can be iterated,
row-wise, much like lists or tuples, to access individual expression profiles, the contents of which
can be retrieved using list / tuple semantics.
Package: matrioska
matrioskaCommand line tool and Python library for data symmetric encryptionFeaturesGenerate a random (base64 encoded) 32 bytes passphrase (for AES256)Key provided via environment variable name (to avoid command line exposure)Encrypts from stdin or filename into stdout/filenameDecrypts from stdin or filename into stdout/filenameThe encryption is performed usingAES-256inEAXmode via thePyCryptodomelibrary.InstallpipinstallmatrioskaUsage# Generate a random encryption key and story in an environment variableexportKEY=$(matrioska--gen-key)# Encrypt stdinecho"This is a very secret sentence"|matrioska-kKEY>/tmp/secret# Decrypt stdincat/tmp/secret|matrioska-kKEY-d# Encrypt file omitting both source and destioname filenames from command linematrioska-kKEY</etc/passwd>/tmp/secret_file# Decrypt file omitting both source and destioname filenames from command linematrioska-kKEY-d</tmp/secret_file>/tmp/secret
Package: matrix
Generic matrix generator.Free software: BSD 2-Clause LicenseInstallationpip install matrixYou can also install the in-development version with:pip install https://github.com/ionelmc/python-matrix/archive/main.zipDocumentationhttps://python-matrix.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog2.0.1 (2017-04-01)
2.0.0 (2016-02-03)
——————Switch to configparser2 (the Python 3.5 backport)Drop Python 2.6 support.1.3.1 (2015-04-15)Fix the samefile check on windows.1.3.0 (2015-04-15)Added an optional[cli]extra (usepip install matrix[cli]) that enables amatrix-rendercommand.
The new command loads configuration and passes the generated matrix to the given Jinja2 templates.1.2.0 (2015-04-03)Fix handling when having aliased entries that have empty (“-”) values.1.1.0 (2015-02-12)Add support for empty inclusions/exclusions.1.0.0 (2014-08-09)Fix Python 2.6 support.Add support for really empty entries (leave completely empty instead of “-“)0.5.0 (2014-08-09)Fix Python 3 support.
Package: matrix11x7
https://shop.pimoroni.com/products/11x7-led-matrix-breakout11x7 pixels of single-colour, brightness-controlled, message scrolling
goodness!InstallingFull install (recommended):We’ve created an easy installation script that will install all
pre-requisites and get your 11x7 LED Matrix Breakout up and running with
minimal efforts. To run it, fire up Terminal which you’ll find in Menu
-> Accessories -> Terminal on your Raspberry Pi desktop, as illustrated
below:Finding the terminalIn the new terminal window type the command exactly as it appears below
(check for typos) and follow the on-screen instructions:curlhttps://get.pimoroni.com/matrix11x7|bashIf you choose to download examples you’ll find them in/home/pi/Pimoroni/matrix11x7/.Manual install:Library install for Python 3:sudopip3installmatrix11x7Library install for Python 2:sudopip2installmatrix11x7Development:If you want to contribute, or like living on the edge of your seat by
having the latest code, you should clone this repository,cdto the
library directory, and run:sudopython3setup.pyinstall(orsudo python setup.py installwhichever your primary Python
environment may be)In all cases you will have to enable the i2c bus.Documentation & SupportGet help -http://forums.pimoroni.com/c/support0.0.1Initial fork from Scroll pHAT HD codebase
Package: matrix7
Matrix7a library in pure python3 that allows you to use matrices and vectors easilySetupsudo pip install matrix7How to useDeclarationsfrommatrix7importMatrix,Vectora=Matrix([[1,2,3,4,5,6,7],[101,102,103,104,105,106,107],[201,202,203,204,205,206,207],])b=Vector([2,4,7,9])c=Vector([2,4,7,9],transpose=True)printingprint(a):|   1.00   2.00   3.00   4.00   5.00   6.00   7.00 |
| 101.00 102.00 103.00 104.00 105.00 106.00 107.00 |
| 201.00 202.00 203.00 204.00 205.00 206.00 207.00 |print(b):|   2.00 |
|   4.00 |
|   7.00 |
|   9.00 |print(c):|   2.00   4.00   7.00   9.00 |propertiesa.size# (nb lines, nb cols)a.trace# only for nxn matriciesa.raw# matrix or vector in normal python list formata.gravity# only for vectorsoperationsnormal python operations are usedMatrix or Vector object is returnedregular matrix/vector calculation rules applyc=a+bc=a-bc=a*btrasponse of matrix or vectora.transpose()generation# vector containing 6 threesvect=Vector.gen(6,3)# 3x4 matrix of zeroesmat=Matrix.gen(3,4,0)navigation# matrix line 0 (Vector) or vector element (int, float ..etc)a[0]# matrix column 0 (Vector)a(0)# matrix element (0,0) (int, float ..etc)a[0][0]
Package: matrixabm
The Matrix ABM is an agent based modeling framework
for developing large scale social simulations
that can run on distributed computing platforms.Full documentationThe full documentation is available atdocs/source/index.rstThe Matrix ABM depends on mpi4py which requires a MPI implementation
and compiler tools be installed on the system.Installing Open MPI and mpi4py inside a conda environmentTo create a new virtual environment with conda,
have Anaconda/Miniconda setup on your system.
Installation instructions for Anaconda can be foundhere.
After installation of Anaconda/Miniconda
execute the following commands:$ conda create -n matrixabm -c conda-forge python=3 openmpi mpi4pyThe above command creates a new conda environment calledmatrixabmwith python, openmpi and mpi4py installed.The following commands assume you are inside the above conda environment.Building the documentation from sourceTo build and view the documentation as HTML, execute the following commands:$ git clone https://github.com/NSSAC/matrixabm.git
$ cd matrixabm
$ pip install --editable .
$ pip install -r dev_requirements.txt
$ make -C docs
$ <BROWSER-COMMAND> docs/build/html/index.html
Package: matrix-admin-sdk
Matrix Admin SdkAsync wrapper for matrix.org admin APIInstallationpipinstallmatrix-admin-sdkUsageDocumentationshereQuick Startimportasyncioimporthttpxfrommatrix_admin_sdkimportMatrixAdminClientfrommatrix_admin_sdk.endpoints.v1importEditRoomMembershipasyncdefmain():admin_key="admin_key"http_client=httpx.AsyncClient()server_url="https://matrix.server.com"admin_client=MatrixAdminClient(http_client,admin_key,server_url)api=EditRoomMembership(admin_client)res=awaitapi.join_user_to_room("room_id","user_id")if__name__=="__main__":asyncio.run(main())
Package: matrix-alertbot
Matrix AlertBotA bot that receives alert fromAlertmanagerto send them to a Matrix room. Users can interract with the bot to create silences for the alerts.Features include:Send alerts from Alertmanager to a Matrix roomAdd a reaction to an alert to create a silence until the alert is resolvedReply to an alert to create a silence with a given durationReply to an alert to create a silence until the alert is resolvedRemove silences created through the botParticipation in end-to-end encrypted roomsGetting startedSeeSETUP.mdfor how to setup and run the bot.SeeCONTRIBUTING.mdfor how to contribute to the project.Project structureThe majority of the code is kept inside of thematrix_alertbotfolder, which
is in itself apython package,
the__init__.pyfile inside declaring it as such.To run the bot, thematrix-alertbotscript in the root of the codebase is
available. It will import themainfunction from themain.pyfile in the
package and run it. To properly install this script into your python environment,
runpip install -e .in the project's root directory.setup.pycontains package information (for publishing the code toPyPI) andsetup.cfgjust contains some configuration
options for linting tools.config.sample.yamlis a sample configuration file. You should copy this file toconfig.yaml, then edit it according to
your needs. Be sure never to check the editedconfig.yamlinto source control
since it'll likely contain sensitive details such as passwords!
Package: matrix-api-async
An asyncio wrapper ofmatrix_client.api.This is based on the work inhttps://github.com/matrix-org/matrix-python-sdk/pull/168Usageimport aiohttp
from matrix_api_async import AsyncHTTPAPI

  async def main():
      async with aiohttp.ClientSession() as session:
          mapi = AsyncHTTPAPI("http://matrix.org", session)
          resp = await mapi.get_room_id("#matrix:matrix.org")
          print(resp)


  loop = asyncio.get_event_loop()
  loop.run_until_complete(main())Installationpip install matrix_api_asyncRequirementsmatrix_clientaiohttp (Could potentially be used with other libraries)CompatibilityPython 3.5+LicenceMITAuthorsmatrix_api_asyncwas written byStuart Mumford.
Package: matrix-array
matrix_array(or PyMatrix3, updated from my version of PyMatrix) is for easier multi-Dimension matrix manipulation iterface.
It provide basic Matrix utilities and vector based operator for easy access and compute elements.
matrix_array will act as glue between pure mathmatical interface and fast numpy computation core. You deem vector as row or col vector.
With this interface your life will be easier. This was originally designed in 2014 when I was not satisfied with usage or format of numpy, pandas and so on in SEP 2014.
Use them altogether, you will find more about the package.
Package: matrix-asgi
Matrix ASGIwithmatrix-nio#matrix-asgi:laas.frInstallpython3 -m pip install matrix-asgiUse it in your appYou can look at themodels.pyandconsumers.pyfiles in the test
application for a simple and quick example.StartCreate a matrix user for the bot, and launch this server with the following arguments and/or environment variables
(environment variables update defaults, arguments take precedence):matrix-asgi
# OR
python -m matrix_asgiusage: matrix-asgi [-h] [-u MATRIX_URL] -i MATRIX_ID -p MATRIX_PW [-v] application

Matrix ASGI Server.

positional arguments:
  application           The ASGI application instance to use as path.to.module:application

options:
  -h, --help            show this help message and exit
  -u MATRIX_URL, --matrix-url MATRIX_URL
                        matrix homeserver url. Default: `https://matrix.org`.
                        Environment variable: `MATRIX_URL`
  -i MATRIX_ID, --matrix-id MATRIX_ID
                        matrix user-id. Required.
                        Environment variable: `MATRIX_ID`
  -p MATRIX_PW, --matrix-pw MATRIX_PW
                        matrix password. Required.
                        Environment variable: `MATRIX_PW`
  -v, --verbose         increment verbosity levelUnit testsdocker compose -f test.yml up --exit-code-from tests --force-recreate --buildJSON Specificationref.spec.mdChangesref.CHANGELOG.md
Package: matrixb
matrixbmatrixb is a Python library to provide a single interface to handle common data input, cleaning, and analysis features for data science datasets. The name MatrixB arise from a play on several interpretations -Matrix, Beta(Experimental tools to use with matrices) andMatrix, Version B(Enhancements on 2-D matrix processing).In general, you might consider matrixb as occupying a middlespace between the speed and efficiency of using native 2-D array matrices in Python and sophisticated statistical datastructures such as dataframes in Pandas and R. It provides a singular interface to load in csv, xls, xlsx, and ods files, automatically cleans common mistakes (accidentally adding a space to the end of a text string, or changing the capitalization structure of column names between two different data files) and allows tremendous flexibility in programmer-assisted cleaning and analysis, in part by leveraging the tools in thepydatacleanerpackage. If you need more functionality than matrixb, you likely should be using Pandas. There isn't a lot of overhead in matrixb (at least that can't be eliminated with a switch passed into the constructor), and so if it is too heavy for you, you probably need to custom write your own processing.DistributionGitLab ProjectPyPI Distribution PageRead the Docs Full API DocumentationProject StatusCurrently, matrixb is functional but shallowly vetted condition and should be consideredalphasoftware. Some features that were implemented in the past may have been broken with more recent refactoring, and test coverage is still limited. Your mileage may vary.Code comments ofNOTEandTODOindicate known shortcomings that may be useful to you. The interface will likely change in future versions.If you wish to rely on features of this package, I am likely more than willing to accommodate and to incorporate sensible design improvements or, in some cases, changes.InstallationUse the package managerpipto install matrixb.pipinstallmatrixbUsageMany examples of usage are available in the main test files included in the t/ subdirectory.importmatrixb**EXAMPLEScomingsoon**ContributingContributions are collaboration is welcome. For major changes, please contact me in advance to discuss.Please make sure to update tests for any contribution, as appropriate.AuthorKevin Crouse. Copyright, 2019.LicenseApache 2.0
Package: matrix-blockstack-password-provider
matrix-blockstack-password-providerMatrixSynapseAuthentication Provider forBlockstackIDs andEOSaccount namesInstallationUsepip install matrix_blockstack_password_providerto install the package in your synapse environmentConfigurationInhomeserver.yamledit thepassword_providersection:password_providers:
    - module: "matrix_blockstack_password_provider.BlockstackPasswordProvider"
      config:
        enabled: true
        endpoint: "https://core.blockstack.org"Theendpointis optional and defaults tohttps://core.blockstack.orgKnown Homeservers for Blockstack usersopenintents.modular.imClient support for BlockstackCurrently onlyOI Chatsupports this type of authentication.Client apps need to write a filemxid.jsoninto the root of their gaia bucket. The content is the
challenge received from ahome server auth endpoint. Then for authentication, the client needs to send the id address as username and as password a client app generated nonce that was used when requesting the challenge together with the app domain in the formatnonce + "|" + appDomain + "|" + blockstackId. Users can do this manually on aaccount management site.Client support for EOSCurrently onlyDiri Chatsupports this type of authentication.Client apps need to sign the following message:${account.name} would like to login using the ${account.authority} permission. Block ID: ${chainInfo.last_irreversible_block_num} ${chainInfo.last_irreversible_block_id.slice(-12).toUpperCase()}Then for authentication, the client needs to send the account name as username and as password a client app generated nonce that was used when requesting the challenge together with the message and signature in the formatnonce + "|" + message + "|" + signature.
Package: matrixcalc
Matrix_calculatorЗдесь представлено решение задания №2 "Матричный калькулятор" и задания №3 "СЛАУ" по дисциплине "Численные методы"За подробным ТЗ и теорией идите в раздел Wiki (◕‿◕)Функционал калькулятора:Транспонирование матрицОпределитель матрицыМатричные выраженияНахождение обусловленности матрицРешение СЛАУ
Package: matrix-chandramdutta
MATRIXGithub||PyPiThe Python Library for managing your matrix (◕‿↼)Use the package in your projectInstall the packagepip install matrix_chandramduttaUsing the packageimport matrix_chandramdutta.matrix as matrix

matrix = get_matrix_input(3,5)MethodsGetting a Matrix from User Inputget_matrix_input(rows: int, columns: int) -> listThis method takes in the number of rows and columns and returns a matrix of the given size. It also prompts the user for outputGetting a Zero Matrixget_matrix_zero(rows: int, columns: int) -> listThis method takes in the number of rows and columns and returns a matrix of the given size. It also fills the matrix with zeros for your further operationsAdding two matrixadd_two_matrix(matrix_one: list, matrix_two: list) -> listThis method takes in two matrices and returns the sum of the two matrices.WarningThe matrices must be of the same size or else unexpected results may occur.Subtracting two matrixsubtract_two_matrix(matrix_one: list, matrix_two: list) -> listThis method takes in two matrices and returns the difference of the two matrices.WarningThe matrices must be of the same size or else unexpected results may occur.Multiply two matrixmultiply_two_matrix(matrix_one: list, matrix_two: list) -> listThis method takes in two matrices and returns the product of the two matrices.WarningThe matrices must satisfy the matrix multiplication rule or else unexpected results may occur.Print a matrixprint_matirx(matrix: list)This method allows you to easily print the matrixChandram Dutta © 2022NoteThis is for a university project. Might not be maintained in future.
Package: matrix-chat
Matrix.pyMatrix.py is a matrix bot library, inspired by thediscord.pylibrary by Rapptz.
It is still in early beta, so don't expect it to be running smoothly yet.It aims to be a modern, easy to use, feature-rich and async ready API wrapper for the Matrix system written in Python.The documentation can be foundhere, examples can be found in theexamplesfolder.InstallingThe package can be installed from pypi, via$pipinstallmatrix-chatYou need to havegccand thelibolmpackage installed.Quick ExampleimportmatrixclassMyClient(matrix.Client):defon_ready(self):print('Logged on as',self.user)defon_message(self,message:matrix.Message):# don't respond to ourselvesifmessage.author==self.user:returnprint(f"[Room:{message.room.id}]{message.author}:{message.content}")defon_invite(self,invite:matrix.Invite):print(f"{invite.inviter}has invited you to join{invite.room_id}")client=MyClient()client.run(username='@bot:matrix.org',password='password',homeserver='https://matrix.org',)LimitationsIt is still in an early version - not tested enoughMatrix.py doesn't yet support e2ee - it wont join or respond in encrypted rooms.