Saravanan666/pypi-org huggingface dataset:
Package: mapy_package
mapy (modeling-analysis-python)====Tool to integrate different pre-processor platforms (Abaqus, NASTRAN, SimXpert).The models can be loaded in the Python environment and passed from oneplatform to another.Composite---------A lot of effort has been done in the composite module in order to provideefficient and convenient means to calculate the stiffness matrix ABD ofa laminated composite structure using the Classical Laminated Plate Theory(CLPT). When the First-order Shear Deformation Theory (FSDT) is used the usercan calculate the matrix ABDE, with E containing the terms related to thetransverse shear strains.SymPy utils-----------The highlight is the differential operator useful to represent and evaluatestrain-displacement matrices (kinematic relations). Many other functions usedby other modules are also available.Structural analysis-------------------More implementation effort has been applied on structural analysis,but it must be improved for any finite element modeling purpose.Already developed------------------ capability to read NASTRAN cards- multiple coordinate systems capability- a simple solver for truss elements (RODs)- differential operator in SymPy to help on semi-analytical toolsUnder development------------------ capability to interface (read/write) thourgh ABAQUS API- fitting cloud of measured points to a given shape functionTo be developed---------------- a fixed object id for all grids, elements,points etc which will keep all referenceseven if the user changes the entities' ids. Currently there is a lot of search based on python dictionaries by the entity id- capability to write NASTRAN cards- capability to write ABAQUS cards- capability to interface with SimXpert? API (read/write)- finite element solver for linear analysis (rods, beams, plates and solids)OBS: requires numpy, scipy. The project alg3dpy(Google code) is part of this project.Important---------- while the fixed object id for grids, elements etc is not implemented,BE CAREFUL when renumbering any entity in the model, since it may looseproper reference to the objectLicense-------Distrubuted in the 2-Clause BSD license (https://raw.github.com/saullocastro/mapy/master/LICENSE).Contact: castrosaullo@gmail.com
Package: maqal
Uyghur Maqal TemsilliriThis is the Uyghur idiom database project, there are 2500 idioms in this database, the following is the list of data files:storage/uyghur-maqal-temsilliri.txt(text file)storage/uyghur-maqal-temsilliri.json(json file)storage/uyghur-maqal-temsilliri.db(sqlite database file)the data files are sorted alphabetically, you can read them by yourself or use the sample code below to get contents:# pip install maqalfrommaqalimportMaqalmaqal=Maqal()allLines=maqal.search("%")# all data listrandomLine=maqal.random()# random data content
Package: maquette
Maquette PyThis project contains the Python implementation of Maquette which includes the CLI and a SDKDeveloping maquette-pymaquette-pyusesPoetryfor dependency management and is packaged withPyInstaller. The minimal requirements for a developer workspace areCondaandPoetry.$ git clone $REPOSITORY_URL
$ cd maquette-py
$ conda create -p ./environment python=3.8

$ poetry installMaquette CLIThe CLI is documented within the CLI. Sounds funny but a good starting point is following command$ mq --help###ProjectsReport Code Quality$ mq projects report-cq [packge_names, script.py, ...]thereport-cqcommand sends code quality information to the Maquette Hub...to report the Pytest-Coverage, pytest has to be run previously with following parameters$ python -m pytest cov=<your-packages> > test/test-report.logMaquette SDK
Package: maquina-fluxo
Calculo Perda de carga em uma mÃ¡quina de fluxoDescription.
ParÃ¢metros:
- Tem como padrÃ¢o dados de acessÃ³rios Tigre
- a planta utilizada Ã© do bloco K do prÃ©dio da UTFPR - LondrinaInstalaÃ§Ã£oUse o gerenciador de pacotes:pippara instalar este pacotepipinstallmaquina_fluxoUsoimportmaquina_fluxoAuthorErickLicenseMIT
Package: maquinitas
maquinitas-foxdotAboutmaquinitas-foxdot is a project byAarón Montoya-Moraga.maquinitas-foxdot is a flavor of the maquinitas library, intended to be used in conjunction withFoxDot.DevelopingCreate a virtual environmentpython3-mvenvenvActivate the virtual environmentsourceenv/bin/activateInstall dependenciespython3-mpipinstallsetuptoolswheeltwineBuildpython3setup.pysdistbdist_wheelDeployingpython3-mvenvenvActivate the virtual environmentsourceenv/bin/activateInstall dependenciespython3-mpipinstallsetuptoolswheeltwineInstallingInstallSuperColliderCreate a virtual environmentpython3-mvenvenvActivate the virtual environmentsourceenv/bin/activateInstall FoxDotpip3installFoxDotTestingLicenseMIT
Package: mar
Package for handling Mozilla Archive files. MAR file format is documented athttps://wiki.mozilla.org/Software_Update:MARFree software: MPL 2.0 licenseUsageTo list the contents of a mar:mar -t complete.marTo list the contents of a mar with extra detail:mar -T complete.marTo extract a mar:mar -x complete.marTo extract, and uncompress a bz2 compressed mar:mar -j -x complete.marTo verify a mar:mar -k :mozilla-nightly -v complete.marTo create a mar, using bz2 compression:mar -j -c complete.mar *To create a mar, using xz compression:mar -J -c complete.mar *To create a signed mar:mar -J -c complete.mar -k private.key -H nightly -V 123 testsInstallationpip install marDocumentationhttps://mar.readthedocs.io/en/latest/DevelopmentTo run the all tests run:toxChangelog3.2.0 (2022-09-01)Dropped python3.6 supportAdded python3.9 and python3.10 supportFixed file descriptor leaks3.1.0 (2019-02-19)Added new autograph stage public keyDropped python3.5 support3.0.0 (2018-09-06)Support extracting mar hash for external signing, and injecting signatures
into unsigned files.File modes are set on extractionmar -vcan now verify that unsigned mar files are well formedAdded helper productinfo property to MarReader to allow convenient access to
the product information informationInternal signing API changed:
* Got rid of Verifier/Signer classesInternal API for the mar format changed:
* offets added for the beginning and end of signature and additional blocks
* correctly represent additional section paddingSupport MAR files without additional sections2.3.0 (2018-07-23)Remove deprecated usage of signature generation and verification in
cryptography library. This changes the type of object returned by the
make_signer and make_verifier functions.2.2.3 (2018-01-18)Update dependencies; dependencies are now also pinned in setup.pyCorrect the key size in exception messagesFix for construct 2.8.22 and higherFix for hypothesis 3.44.162.2.2 (2017-07-06)Fix bug when writing MAR files: the index size was incorrectSupport writing interable streamsAdd new Mozilla SHA384 public keys2.2.1 (2017-08-23)Output compression and signature type2.1.0 (2017-06-28)Implement XZ compression2.0.0 (2017-01-12)First release on PyPI.
Package: mara
An asynchronous event-based python framework designed for building TCP/IP services, such
as telnet, HTTP and websocket servers.Project site:https://radiac.net/projects/mara/Source code:https://github.com/radiac/maraFeaturesAsynchronous event-based frameworkSupports multiple serversRequires Python 3.10 or later, see installation.See theDocumentationfor details of how Mara works.Note: Version 2.0.z is in development, and the API is subject to change without notice.
The last release to support Python 2 and 3.9 was version 0.6.3.QuickstartInstall Mara withpip install mara, then write your service usingevent handlers.A minimal Mara service looks something like this:from mara import App, events
from mara.servers.socket import SocketServer

app = App()
app.add_server(SocketServer(host="127.0.0.1", port=9000))

@app.listen(events.Receive)
async def echo(event: events.Receive):
    event.client.write(event.data)

app.run()Save it asecho.pyand run it:$ python echo.py
Server listening: Socket 127.0.0.1:9000Take a look at theexamplesto see how to
start writing more complex services, or read thedocumentationfor
details of how Mara works.
Package: mara-acl
Mara ACLDefault ACL implementation for mara with the following design choices:Authentication of users is handled externally, e.g. through aOauth2 Proxy.
An upstream authentication app manages authentication and then adds a http header identifying the user to each authenticated request.Each user is assigned a single role.Permissions are not based on urls, but on application-defined "resources".
Thus, checking of permissions needs to be done in the application.The ACL provides a single UI for both user and permission management.
Users can be added / removed and their roles can be changed like this:New roles are created by moving a user to a new role.Permissions can be set foran individual user or a whole role,an individual resource, a group of resources or "All" resources.Individual users inherit permissions from their role, and permissions on higher levels overwrite permissions on lower levels:Each new user that is authenticated is automatically created
with a default role in the acl:This behavior can be switched off (so that only invited users can join). Seeconfig.pyfor details.Please have a look at the mara example application for how to integrate this ACL implementation.
Package: mara-app
Mara AppA flask app for building backends that are distributed across separate packages. Providesa Bootstrap 4 based page layoutauto-detection of flask blueprintsauto-detection of navigation entriesauto-detection of click command line interfacesPlease have a look at themara example applicationfor an example of how to use this.LinksDocumentation:https://mara-app.readthedocs.io/Changes:https://mara-app.readthedocs.io/en/latest/changes.htmlPyPI Releases:https://pypi.org/project/mara-app/Source Code:https://github.com/mara/mara-appIssue Tracker:https://github.com/mara/mara-app/issues
Package: maracas
maracas is a library for corrupting audio files with additive and convolutive
noise. Its objective is to simplify reproducible dataset generation for speech processing (mainly enhancement and ASR).The usage is really simple and based on themaracas.dataset.Datasetclass. Here is a short example:frommaracas.datasetimportDatasetimportnumpyasnp# Make sure this is reproduciblenp.random.seed(42)d=Dataset()# All files can be added one by one or by folder. Adding a folder will add# all speech files inside that folder recursively if recursive=True.d.add_speech_files('/home/jfsantos/data/speech_files/',recursive=True)# When adding noises, you can give a "nickname" to each noise file. If you do not# give it a name, the name will be the file name without the '.wav' extensiond.add_noise_files('/home/jfsantos/data/multichannel_noises/restaurant_ch01.wav',name='restaurant')d.add_noise_files('/home/jfsantos/data/multichannel_noises/cafeteria_ch01.wav',name='cafeteria')d.add_noise_files('/home/jfsantos/data/multichannel_noises/traffic_ch01.wav',name='traffic')# Adding reverb files works like adding noise filesd.add_reverb_files('/home/jfsantos/data/RIR_sim/rir_0.2_1.wav')d.add_reverb_files('/home/jfsantos/data/RIR_sim/rir_0.8_1.wav')# When generating a dataset, you can choose which SNRs will be used and how many# files per condition you want to be generated.d.generate_dataset([-6,-3,0,3,6],'/tmp/noise_plus_reverb_dataset',files_per_condition=5)
Package: mara-cron
Mara CronMini package for managing cron jobs via mara.InstallationTo use the library directly:pip install mara-cronConfig of cron jobsTo configure cron jobs in mara you just need to add a new functionMARA_CRON_JOBSin your module or app in the__init__.pyfile.Here is a sample which has two jobs:the jobcleanup_data_folderclears all data from the local folder/data/. This job is by default disabled.the jobnightlyruns the root pipeline at 01:00 o'clock each dayNote:The MaraJob job requires that you define thePATHenvironment variable in your crontab. Cron by default uses just/usr/bin:/binwhich is not enough. I recommend using the distribution default e.g./usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin.defMARA_CRON_JOBS():frommara_cron.jobimportCronJob,MaraJobreturn[CronJob(id='cleanup_data_folder',description='Clean up the data folder',default_time_pattern='0 0 * * *',command='rm -rf /data/*',enabled=False),MaraJob(id='nightly',description="Nightly run of the BI system",default_time_pattern='0 1 * * *',command='pipelines run'),]Local configSample local config to activate crontab management in your mara app:frommara_app.monkey_patchimportpatchimportmara_cron.config# Activates mara_cron jobs. If not set all jobs are# by default disabled and can only be activated via# executing:#    mara cron enable --job-id "my_job_id"patch(mara_cron.config.enabled)(lambda:True)# Optional parameter to specify a mara instance name# This is necessary to separate multiple environments running# on the same userpatch(mara_cron.config.instance_name)(lambda:'prod')CLIThis package contains the following cli commands (mara cron <command>):CommandDescriptionenable --job-id "my_job_id" [--module "module_name"]Enables a specific job regardless of the configuration.disable --job-id "my_job_id" [--module "module_name"]Disables a specific job.schedule-job --job-id "my_job_id"Schedules a job to run in less than 1 minute.list-crontabLists the current cron tab settingslist-crontab --with-changesLists the current cron tab including the changes not yet writtenwrite-crontabWrites all not published changes to the crontabclear-crontabRemoves all mara jobs from the crontab.NoteThis applies to all instances !!!
Package: mara-dbt
Mara dbtA integration ofdbtinto theMara Framework.InstallationTo use the library directly:pipinstallmara-dbtdbt Project inside the Mara projectYou can choose to use a dbt project inside the mara project. To do so, add the following to your.gitignorefile# dbt
/.dbt/.user.yml
/.dbt/logs/
/.dbt/profiles.yml
/.dbt/target/
/dbt/dbt_modules/andimport mara_dbtin yourapp/__init__.pyfile to make sure that the cli commands are recognized by your mara app.Then execute the following shell commands in order to complete the installation:source.venv/bin/activate
flaskmara_dbt.setupWhen using a git repository you should commit the files shown ingit status.
Package: mara-markdown-docs
Mara Markdown DocumentationDisplay markdown documentation in mara UIThis package displays configured documentation in markdown format in the UI:Convert markdown to html viamarkdown-itSupports a folder structure (single level) in the menuSupportsmermaiddiagramsServes referenced images (.png,.jpg,.gif) in markdown and.txtfiles (for example config, etc)
if these are in the same folder as the markdown fileScreenshotInstallationTo use the library directly, use pip:python3 -m pip install mara-markdown-docs

# or directly from git
python3 -m pip install git+https://github.com/mara/mara-markdown-docs.gitConfigurationAssuming you configure viaapp/local_setup.py:"""Configures the docs functionality"""importpathlibfrommara_app.monkey_patchimportpatchimportmara_markdown_docs.config@patch(mara_markdown_docs.config.documentation)defdocumentation()->dict:"""Dict with name -> path to markdown file.If name contains a single '/' it will be shown in a submenu. Multiple '/' are not allowed.The insertion order is mostly preserved (folders are grouped in the menu)."""repo_root_dir=pathlib.Path(__file__).parent.parent# Cases matter in path!docs={'Pipeline/Marketing':repo_root_dir/'app/pipelines/marketing/README.md','Developer/Setup':repo_root_dir/'README.md','Developer/Code Conventions':repo_root_dir/'code_conventions.md',}returndocs
Package: mara-mondrian
Mara MondrianA python interface forMondrian Server, aMondrianXMLAserver combined with theSaikuad hoc analysis tool. Comes withA Makefile for running Mondrian Server locally.Mondrian schemageneration from aMara Schemadefinition.Mondrian cache flushing.Saiku authentication viaMara ACL.InstallationTo use the library directly, use pip:pip install mara-mondrianorpip install git+https://github.com/mara/mara-mondrian.gitFor an example of an integration into a flask application, have a look at themara example project 1.Running SaikuFrom within a project, include.scripts/mondrian-server.mkin your project Makefile (as for example inhttps://github.com/mara/mara-example-project-1/blob/master/Makefile).Runningmake setup-mondrian-serverwill create the requiredmondrian-server.propertiesfile. And then runningmake run-mondrian-serverwill start Saiku and the XMLA server on port 8080:For running Mondrian Server in production, please have a look athttps://github.com/project-a/mondrian-server/blob/master/README.md.FeaturesMondrian schema generationIf you have a data warehouse schema defined inMara Schema, then you can automatically create a Mondrian schema file using the functionwrite_mondrian_schemainmara_mondrian/schema_generation.py.Have a look athttps://github.com/mara/mara-example-project-1/blob/master/app/pipelines/update_frontends/__init__.pyfor an example.Mondrian cache flushingThe functionflush_mondrian_cacheinmara_mondrian/connection.pytriggers a reload of the schema and a flushing of all caches in Mondrian Server.This file also contains functions for making XMLA requests.Saiku authentication viaMara ACLOnce you add the Saiku ACL resource inmara_mondrian/views.pyto your project, you can easily control which users can query which cubes:In this example, users from the "Management" group can query all cubes, and users from "Marketing" only "Customers" and "Leads" (with the exception of Thomas who can also query "Order items" and "Sellers").Please have a look athttps://github.com/project-a/mondrian-server/blob/master/README.mdfor how to set this up.Please make sure that the/mondrian/saiku/authorizeendpoint is white-listed from the Mara ACL, as for example inhttps://github.com/mara/mara-example-project-1/blob/master/app/ui/__init__.py:monkey_patch.patch(mara_acl.config.whitelisted_uris)(lambda:['/mara-app/navigation-bar','/mondrian/saiku/authorize'])The easiest way to try out Mara Mondrian is to run themara example project 1.
Package: maranet
A Python client library for MARA protocol. Includes server emulator, although MARA servers are tipically microcontrollers.Free software: MIT licenseDocumentation:https://maranet.readthedocs.io.Mara Network ProtocolMara is a protocol designed for interaction with a network of embedded devices.
These devices collect state and events from a process (implementations include
traffic light systems and power station monitoring).Mara 1.0 is source code is implemented on top of Microchip PIC devices and code
can be requested at ricadoalopez at gmail.Mara 1.6, designed with 16 bit in mind, is implemented on top of Arduino libraries and
should be available soon.Mara 1.0Mara packages structure:┌─────┬─────┬─────┬─────┬─────┬─────┬─────┐┌─────┐┌─────┬─────┐
│ SOF │ SEQ │ QTY │ SRC │ DST │ CMD │ PLD ││ ... ││ BCL │ BCH │
│     │     │     │     │     │     │     ││     ││     │     │
└─────┴─────┴─────┴─────┴─────┴─────┴─────┘└─────┘└─────┴─────┘
┌─────┬───────────┬───────────┬─────┬───────────┬───────────┐
│ QSV │ SV0       │ SV1       │ QDI │ DI0       │ DI1       │
│     │           │           │     │           │           │
└─────┴───────────┴───────────┴─────┴───────────┴───────────┘
┌─────┬───────────┬───────────┬─────┬─────────────────────────┐
│ QAI │ AI0       │ AI1       │ QEV │ EV..                    .
│     │           │           │     │                         │
└─────┴───────────┴───────────┴─────┴─────────────────────────┘Where:SOFStart of frameSEQSequence numberQTYFrame length or bytequantitySRCSource addressDSTDestination addressCMDCommandPLDPayloadPayload consists of arrays of valuesHistory1.0.6 (2017-07-10)Simplified the mara.protocols pacakge.1.0.2 - 1.0.5 (2017-07-10)Added maranet.__version__Renamed maranet.mara to maranet.protocolsCLI entrypoints workingmaranet clientmaranet direct_poll1.0.1 (2017-07-09)Move code to cookiecutter python pacakge.1.0 (2017-07-09)First release on PyPI. The sourcecode is extracted fromhttps://github.com/d3f0/txscadaand placed in an independet package.<1.0 (2009-08-06-)Mara is part of txscada project, involved in a Traffic Light system based on PyQt4 and MySQL.Mara is extended to a 16 bit version to be used on a Power Substation Monitoring Software.
Package: mara-page
Mara pageMinimal API for defining pages of Flask-based backends independently from the actual backend infrastructure.When a web app is spread across many independent Flask blueprints, then this library can be used to addnavigation entriespage titlesresource-based ACL protectionpage-specific CSS and JS fileswithout having access to a global layout or the Flask app.The library provides a drop-in werkzeugResponseclass that is enriched with additional information that a
backend can use to render the final html page.ExampleThis is a simple web ui for displaying the current time:"""Clock UI"""importflaskfromawesome_clockimportclockfrommara_pageimportacl,navigation,response,bootstrap,_# The flask blueprint that handlesblueprint=flask.Blueprint('awesome_clock',__name__,url_prefix='/clock',static_folder='static')# Defines an ACL resource (needs to be handled by the application)acl_resource=acl.AclResource('Clock')defnavigation_entry():"""Defines a part of the navigation tree (needs to be handled by the application)"""returnnavigation.NavigationEntry(label='Awesome clock',icon='clock-o',description='Something that tells the time',children=[navigation.NavigationEntry(label='What time is it now?',uri_fn=lambda:flask.url_for('awesome_clock.clock_page',when='now'),icon='question-circle',description='Should be able to display the current time'),navigation.NavigationEntry(label='And now?',icon='refresh',description='For the impatient',uri_fn=lambda:flask.url_for('awesome_clock.clock_page',when='and-now'))])@blueprint.route('/<string:when>')@acl.require_permission(acl_resource)# Requires permission to the `'Clock'` resourcedefclock_page(when:str):"""Defines the `/clock` page"""returnresponse.Response(# The actual page content (can be also a call to `flask.render_template`# or anything else that produces a string)html=bootstrap.card(header_left=_.h1['What time is it now?'],body=[_.p['The current time is ',str(clock.what_time_is_it_now())],_.img(src=flask.url_for('awesome_clock.static',filename='cuckoo-clock.jpg'),style='max-width:100%')]),# The page titletitle='Awesome clock',# Action buttonsaction_buttons=[response.ActionButton('javascript:location.reload()','Refresh','Refresh clock','refresh'),response.ActionButton('javascript:location.reload()','Update','Refresh clock','clock-o')])It is up to the actual Flask app to define how to render such a response and what to do with the ACL resources and navigation entries.
Themara appwill render the response like this:LinksDocumentation:https://mara-page.readthedocs.io/Changes:https://mara-page.readthedocs.io/en/latest/changes.htmlPyPI Releases:https://pypi.org/project/mara-page/Source Code:https://github.com/mara/mara-pageIssue Tracker:https://github.com/mara/mara-page/issues
Package: maraplus
Wrapper formarabuntapackage, that adds some extra features:--db-password-fileargument to read file from file instead of direct
input. It is mutually exclusive to--db-password.installoption foraddonskey can be used if only install is
needed.upgrademanages both install and upgrade of modules.--extra-mig-filescan be used to combine extra migration files with
main one. This can be useful, when you want to reuse common setup with different
projects.DEL->{some-option}can be used to mark option deletion, when multiple YAML
files are merged. This allows to be able to remove not needed options instead of
just adding new.If environment variable key is specified in configuration options, it will be
replaced by its value, if such environment variable exists. E.g. ifMY_ENV=test,$MY_ENVwould be replaced bytest.