Saravanan666/pypi-org huggingface dataset:
Package: pymecavideo
Description :Pymecavideo est un logiciel écrit en PyQT (4 puis 5) pour permettre le
pointage d'une vidéo, le tracé des trajectoires du point pointé et
l'export des positions (temporelles et spatiales) des points choisis.Installation :Pymecavideo nécessite 4 dépendances :
PyQT5 : python-qt5  (-devel si vous utilisez les sources)
OpenCV : python-opencv-headless
pyqtgraph : python-pyqtgraph
python-odf (ou odfpy)
matplotlibavec une installation via pip :
pip install opencv-python-headless
pip install pyqt5
pip install python-pyqtgraphContribuer :Pymecavideo a été en premier lieu écrit en français : le code est
documenté en français, il est internationalisé et des fichiers de
localisation existent en anglais, espagnol et catalan.Cependant, si vous voulez contribuer et formuler des patch, merci de
mettre vos variables avec des noms français ou francisés :
exemple : "self.calcul_precis" sera préféré à "self.accurate_compute"La version git se trouve ici :https://gitlab.com/oppl/pymecavideoToute la gestion des bugs se fait pr gitlabhttps://gitlab.com/oppl/pymecavideo/issuespour l'installer : Voir le fichier INSTALLEnjoy :=)JB BUTETashashiwa@gmail.com
Package: pymech
PymechA Python suite of routines forNek5000andSIMSON. Install with:pip install pymechRead the full documentation atPymech doc.Getting startedFor some quick wins, download some sample datacurl-fLOhttps://raw.githubusercontent.com/eX-Mech/pymech-test-data/main/nek/channel3D_0.f00001Fire up a Python / IPython console and execute:importmatplotlib.pyplotaspltimportpymechaspmds=pm.open_dataset('channel3D_0.f00001')ds.mean(['x','z']).ux.plot()plt.show()You should see something likeFor an overview of how to use pymech,follow the usage
documentation.ContributingFound something that does not work? Want to add a new feature to pymech? Have a
look atcontributing
guidelines.
Package: pyMechkar
Utilities that help researchers in various phases of their research work. This package offer a function that automate the exploratory data analysis, a function for the generation of Table 1 (required on many epidemiological papers) which can be exported to excel. There is also a function for generation of a forestplot with a table and relative risks or odds ratios that can be used for publication. Additionally, there is a function that generates train/test random partitions used for model evaluation that checks for the balance of the partitions.
Package: pymecht
pyMechTpyMechT is a Python package for simulating the mechanical response of soft biological tissues. The focus is on flexibility of defining models (referred to asMatModels). The ethos of pyMechT is to create simplified virtual experimental setups. That is, asampleis created of which there are the following options:Uniaxial extension;Biaxial extension; andInflation-extension.The MatModel is applied to the sample, such that the parameters encompass both the material parameters and those which define the corresponding sample setup (an example being the dimensions of the specimen). Finally, the samples can be simulated in eitherdisplacement-controlledorforce-controlledloading to allow the use of Bayesian inference methods.Required dependencies are:matplotlibnumpypandaspyDOEscipytorchsympytqdmInstallationStep 1 (optional): Create a virtual environmentTo create an environment in Anaconda, execute:condacreate-npymechtTo activate this virtual environment, execute:condaactivatepymechtThis is an option, but recommended step. There are other options for create and managing environments (such as venv or virtualenv)Step 2: Install via pipUserpyMechT can be installed directly from PyPI via pip by using:pipinstallpymechtDeveloperTo install as a devloper, it is recommended to fork from the repo and clone this fork locally.Step 2.1 Fork from ankushaggarwal/pymechtTo fork a branch, head to theGithub repositoryand click the fork button in the top right-hand corner.Step 2.2 Clone the forked repoTo clone this repo locally, use thegitclone<repo-address>where<repo-address>can be replaced by either the https or ssh addresses of the forked repo.Step 2.3 Install developer version of pyMechTTo install a developer version of pyMechT, navigate to the locally cloned repo and execute:pythonsetup.pydevelopAn editable version of pyMechT is now installed. All local changes to the cloned source code files will be reflected when pyMechT is imported.Step 3: Check installationEnsure that pyMechT has been installed by executing:piplistThe package and version should be visible in the resulting list.DocumentationFind the full documentation athttps://pymecht.readthedocs.io/en/latest/.Contributing to pyMechTTo contribute to the pyMechT framework, install pyMechT using the developer options. All changes should be made to your forked repo. If there is a new feature or bug fix, raise a pull request. In the case that an additional feature is added, a corresponding example and test should be written in the respective python scripts.
Package: pymechtest
pymechtestpymechtest is a small, hopefully helpful python package to help engineers collate, process, analyse, and report on mechanical test data. I built pymechtest to help automate the things I did on a near-daily basis as a materials engineer. I hope it can prove some use to you too!Source Code:https://github.com/FollowTheProcess/pymechtestDocumentation:https://FollowTheProcess.github.io/pymechtest/What is it?:warning: This project should be considered in alpha and may change significantly without deprecation cycles.Have you ever had to process a bunch of csv output from a mechanical test machine, copying and pasting data into a hacky Excel template to calculate things like elastic modulus and yield strength?Only to then have to make another Excel file where you create a summary table...And then have to copy and paste that into a report or an email...And then you have to plot the data in Excel and spend half an hour tweaking the colours to get it to look at least halfway professional...And then you discover Excel has formatted your strain column as a date for literally no reason so now your plots have broken...And then next week you have to do all this again! :angry:No more!:boom:pymechtest has a very simple goal: to reduce the amount of time engineers spend munging data after a batch of mechanical testing.Here is a quick taste of how easy it is to go from raw data to a gorgeous stress-strain plot:frompymechtestimportTensile# header and id_row are related to the structure of your csv filestens=Tensile(folder="path/to/raw/data",header=8,id_row=3)# Plot a really nice stress-strain curve with Altairtens.plot_curves()The key features are:Intuitive: The API is very intuitive, with descriptive methods likeplot_curvesandsummariseColumn Autodetection: pymechtest will try to auto-detect which columns correspond to stress and strain, and ask you to clarify if it can't.Sensible Defaults: The API is designed around sensible defaults for things like modulus strain range, whether to expect a yield strength etc.Automatic Calculations: pymechtest will automatically calculate strength, elastic modulus, yield strength etc. for you.Elegant Looking Stress Strain Curves: pymechtest usesaltairto plot amazing looking stress strain curves.Reliable: pymechtest uses battle-tested libraries likepandas,numpyandaltairto do most of the work. The API is really a domain-specific convenience wrapper. pymechtest also maintains high test coverage.InstallationpipinstallpymechtestI also plan to make a conda package for this, once I've learned how to do it!HelpAn important note about pymechtestWhile I've tried to generalise the API to be of use on different formats of raw data, it is impossible to cover every type of format and ensure compatability.One way you can help is by try it on your data format, and raise anissueor submit aPRimplementing your new format!
Package: pymecsim
Python Cyclic Voltammetry Simulation SoftwareThis is a python wrapper forMECSimsoftware.
It works completely in python in a Linux environment. I wrote this while working onGPCVrelated work.If you use this software in your work please cite the original MECSim software along with this repository:@misc{pymecsim,author={Kiran Vaddi},title={{pyMECSim: A Python wrapper for MECSim}},month=April,year=2020,version={1.0},publisher={github},url={https://github.com/kiranvad/pyMECSim}}To install as a package, runpipinstallgit+https://github.com/kiranvad/pyMECSim#egg=pyMECSIM.`Dependencies will be checked and installed from the setup.py file.To install the package locally:gitclonehttps://github.com/kiranvad/pyMECSim.gitcdpyMECSim
pipinstall-e.There are two modes of usages:Mode 1: Using pymecsim experiment interfacefrompymecsimimport*A=Specie('A',C0=1e-6)B=Specie('B')C=Specie('C')D=Specie('D')species=[A,B,C,D]R1=ChargeTransfer([(A,1),('e',1)],[(B,1)],E0=0.0,ks=1.0e1)R2=ChemicalReaction([(B,1),(C,1)],[(A,1),(D,1)],kf=1e8,kb=1e-5)rxn=[R1,R2]mech=Mechanism(rxn)print(mech)cv=DCVoltammetry(E_start=0.5,E_rev=-0.5,nu=1.0e0)volt=Voltammetry(objs=[cv])exp=Experiment(mech,voltammetry=volt)sim=MECSIM(exp=exp)sim.plot()# plot the simulated CV curveMode 2: Using MECSim configuration fileIf you are familiar with original MECSim software and its configuaraton files (.inp), you can also pass it as an input.
Importpymecsimusing the following:frompymecsimimportMECSIM,pysedWe can perform a simulation on a one electron transfer mechanism and visualize the effect of changing the formal potential using the following code:importmatplotlib.pyplotaspltimportnumpyasnpimportosconfigfile='../mechanisms/cvexamples.sk'E0=[-0.25,0.0,0.25]fig=plt.figure(figsize=(4,4))ax=fig.add_subplot(111)dirname=os.getcwd()fori,e0inenumerate(E0):outfile=dirname+'/outfile.sk'pysed('$E0',str(e0),configfile,outfile)model=MECSIM(configfile=outfile)ax=model.plot(ax=ax)ax.set_label("E0 = "+str(e0))plt.legend([r'$E_0=0.5$',r'$E_0=0.1$',r'$E_0=1e-2$'],loc='lower right')plt.show()This will plot the following:NotebooksThis repository is shipped few usefulnotebooks.Cyclic Voltammetry Simulation Example for Single Electron Transfer Mechanism-- that exaplains all the possible use cases of the simulator on a simple one electron transfer mehcanismKinetic Zone Diagram-- exmaple explaining how to generate various CV curves in thekinetic zone diagramLangmuir isotherm-- example with modelling surface reactions and reproducing the Langmuir isotherm assumptionNotesPlease free to contribute to this repository both interms of code and documetation or simple example use cases in jupyter notebook.
Submit a pull request and I would be happy to integrate into this repository.api.mdcontains the detailed API of pymecsim (under construction)
Package: pymed
PyMed - PubMed Access through PythonPyMed is a Python library that provides access to PubMed through the PubMed API.Why this library?The PubMed API is not very well documented and querying it in a performant way is too complicated and time consuming for researchers. This wrapper provides access to the API in a consistent, readable and performant way.FeaturesThis library takes care of the following for you:Querying the PubMed database (with the standard PubMed query language)Batching of requests for better performanceParsing and cleaning of the retrieved articlesExamplesFor full (working) examples have a look at theexamples/folder in this repository. In essence you only need to import thePubMedclass, instantiate it, and use it to query:frompymedimportPubMedpubmed=PubMed(tool="MyTool",email="my@email.address")results=pubmed.query("Some query",max_results=500)Notes on the APIThe original documentation of the PubMed API can be found here:PubMed Central. PubMed Central kindly requests you to:Do not make concurrent requests, even at off-peak times; andInclude two parameters that help to identify your service or application to our serverstoolshould be the name of the application, as a string value with no internal spaces, andemailshould be the e-mail address of the maintainer of the tool, and should be a valid e-mail address.Notice of Non-Affiliation and DisclaimerThe author of this library is not affiliated, associated, authorized, endorsed by, or in any way officially connected with PubMed, or any of its subsidiaries or its affiliates. The official PubMed website can be found athttps://www.ncbi.nlm.nih.gov/pubmed/.
Package: pymedia2-pyrana
Pyrana is a pure-python package which provides easy, pythonic and
powerful handling of multimedia files.easy: pyrana does not submerge you with tons of options and details,
but is filled with sane defaults. pyrana aims to be multimedia
processing whatrequestsis for http.pythonic: pyrana wants to play nice and work well with the other
well-established relevant python packages:Pillow,pygame,PySDL2,PyAudio,numpycompatibility is coming soon.powerful: pyrana provides an independent API, but is built on the
great foundations provided by thepowerful FFMpeg
libraries.pyrana is a modern, pure python package which is developed for python 3
and compatible with python 2.7, which takes great
advantage ofCFFI, so
the compatibility withpypyis just one step away.pyrana offers a minimum 100% unit-test and documentation coverage, and
put great emphasis on small, yet complete and workable examples. Last
but not least, pyrana is released under the very liberal ZLIB license.More documentation about pyrana onthis series of blog
posts
Package: pyMediaAnnotator
pyMediaAnnotatorA GTK+ and vlc based application for annotating video and audio files for classification tasksFeatures:Add text annotations time-locked to content in media fileAnnotate time accurate to the millisecondJump to annotation start time to verify correctnessStandard media playback features (play/pause, stop, seek)Change annotation task mid-videoEdit annotation label for particular time segmentDelete annotation entryUndo annotation segment (in the order of most recent)Sort annotations by starttime by clicking on column header so that you can go back and re-annotate a particular segment of mediaChangelog:v0.1.9:Implement loading an existing annotation file at the startPlanned features and bugfixes for future releases:Save, exit, and resume: be able to load existing annotation fileThe YAML format was chosen because it is convenient and human-readable. However, in the future, the user should be able to choose output format (json,pickle,txt, Numpy array, etc.)Fix seek bar synchronization with playbackMultiple button support for rapid multiclass annotationInstallation:From pyPI usingpip:python3 -m pip install --upgrade [--user] pyMediaAnnotatorThe--userflag installs it locally
without needingroot(optional).If you are able to ensure the availability
of GTK bindings from some other source,
you could skip installing pyGTK:python3 -m pip install --upgrade [--user] --no-deps pyMediaAnnotatorFrom sourceClone the repositorygit clone https://gitlab.com/aalok-sathe/pyMediaAnnotator.gitcd pyMediaAnnotatorMake sure to have the necessary prerequisites:pyGTK/pyGObject: Python GTK bindingsvlc,python-vlc: the VLC media player and Python bindings
forlibvlc$ python3 -m pip install --upgrade -r requirements.txtCreate Python package and install:make buildpython3 setup.py installUsage:$ pyMediaAnnotatorScreenshot (v0.1.2): example usage to annotate the laugh track in an episode of Friends ![example usage](scrsht-friends.png?raw=true Screenshot")Compatibility:GNU/Linux, *NIX [recommended]:Expected to run smoothly with proper prerequisitesTested on Ubuntu 16.04Any other system:Not tested, however, should theoretically work long as you are able to provide pyGTK and libvlc supportBugs?Get in touch. Please try to see debug output in terminal and save it
if you notice a bug.Contribute! PRs are welcome and will be reviewed.
Package: pymediafire
This module provides a subset ofMediaFire’s REST API.
Only the basic stuff is done : upload, download, create folder, read folder.
We support http(s) proxy and big files.If you have questions, patches, etc. feel free to contact the author directly at schampailler at skynet dot be. Follow  us on Twitter : @Arakowa1.Please note that this module isin no wayendorsed by MediaFire.ExampleLet’s look at a simple session:from pymediafire import MediaFireSession

# Open a session with your credential (check MediaFire's developper page
# for all the information). It's basically email, password, appid, sessionkey.
# You can pass http(s) proxy information as well; check the source code
# for full constructor parameters.

mf = MediaFireSession('youremail@gonzo.be', 'password', '123123',
                      '7kjshfksjdhf435lkj435345kj')

# Load the root folder (no parameter == root folder)

f = mf.load_folder()

# The following print will give a list of pymediafire objects representing
# files and folders on the server.

print(f)

# [FILE: dbcr.txt 198 bytes 2013-12-04 14:41:56 ma32h6y9fkmdmub,
# FOLDER: backup_folder q3w4bx45i432c]

# Download the first file of the loaded folder and give it
# the same name as the one it has on MediaFire.

mf.download(f[0], f[0].filename)
Package: py-media-id-parser
py-media-id-parserA simple python package that returns the media or post ID from various social linksInstallationpipinstallpy-media-id-parserorpipenvinstallpy-media-id-parserSupportFacebookTwitterInstagramYoutubeVimeoSpotifyExamplefrom media_id_parser import parse_facebook

parse_facebook('https://www.facebook.com/ESPN/posts/2415420581838017')
Package: pymediainfo-cli
PyMediaInfo CLIThis is a command-line interface (CLI) for thepymediainfolibrary, which provides a way to extract metadata from media files.Requirementpymediainfo is a simple wrapper around the MediaInfo library, which you can find athttps://mediaarea.net/en/MediaInfo.Without the library, this package cannot parse media files, which severely limits its functionality.Binary wheels containing a bundled library version are provided for Windows and Mac OS X.Packages are available forseveral major Linux distributions. They depend on the library most of the time and are the preferred way to use pymediainfo on Linux unless a specific version of the package is required.InstallationYou can install this CLI using pip:pipinstallpymediainfo-cliUsageYou can use this CLI by running the pymediainfo command followed by the path to a media file:pymediainfo-clipath/to/media/fileThis will print the metadata for the media file in a human-readable format.You can also specify various options to control the output:--output-formator-f: Output format (table, json)--generalor-g: Include General tracks--videoor-v: Include Video tracks--audioor-a: Include Audio tracks--textor-t: Include Text tracks--imageor-i: Include Image tracks--otheror-o: Include Other tracks--menuor-m: Include Menu tracks--parse-speedor-p: MediaInfo parse speed (0-1)--output-file: Write output to a file (optional)For example, you can use the-f jsonto output the metadata in JSON format:pymediainfo-clipath/to/media/file-fjsonMore information with:pymediainfo-cli--helpContributingContributions are welcome! Please feel free to submit a pull request.I use Poetry to mange dependancies see:https://python-poetry.org/Clone the repogitclonehttps://github.com/GuiEpi/pymediainfo-cli.gitInstall dependanciespoetryinstallRunpoetryrunpymediainfo-cli--helpTestingpoetryrunpytesttests/test.pyLicenseThis project is licensed under the MIT License.CreditsThis project was inspired bypymediainfo.
Package: pymediaroom
pymediaroom - Python Remote Control for Mediaroom STBMediaroom is an IPTV platform currently developed by Ericsson with deployments worldwide,
for more information checkwikipedia.This python package provides an api that sends to the set-up-box the same commands the IR remote sends.
You do not require any special hardware, you just need to run this package from an equipment connected
to the same network segment as the set-up-box.Available KeysNumber0Number1Number2Number3Number4Number5Number6Number7Number8Number9BackOKMenuLeftRightUpDownProgUpProgDownVolUpVolDownMuteExitGuideSwitchRecPlayPauseForwardRewindPowerInfoSearchEnterVoDStopRedGreenYellowBlueDeleteOptionsOpenAVPrevNextOptionsAltFavouriteCopyrightpymediaroom is Copyright (C) 2017 Diogo Gomes <diogogomes@gmail.com>
Package: pymediasoup
PyMediasoupmediasouppython clientInstallpip3installpymediasoupUsagePyMediasoup API design is similar to the officialmediasoup-clientfrompymediasoupimportDevicefrompymediasoupimportAiortcHandler# Create a device# In order to generate the correct parameters, here should contain all the tracks you want to usetracks=[]device=Device(handlerFactory=AiortcHandler.createFactory(tracks=tracks))LICENSEMIT
Package: pymediawiki
*mediawiki*is a python wrapper and parser for the MediaWiki API. The goal
is to allow users to quickly and efficiently pull data from the MediaWiki site
of their choice instead of worrying about dealing directly with the API. As
such, it does not force the use of a particular MediaWiki site. It defaults toWikipediabut other MediaWiki sites can
also be used.MediaWiki wraps theMediaWiki APIso you can focus onleveragingyour favorite MediaWiki site’s data,
not getting it. Please check out the code ongithub!Note:this library was designed for ease of use and simplicity. If you plan
on doing serious scraping, automated requests, or editing, please look intoPywikibotwhich has a larger API, advanced rate limiting, and other features so we may
be considerate of the MediaWiki infrastructure. Pywikibot has also other extra
features such as support for Wikibase (that runs Wikidata).InstallationPip Installation:$ pip install pymediawikiTo install from source:To installmediawiki, simply clone therepository on GitHub, then run from the folder:$ python setup.py installmediawikisupports python versions 3.5 - 3.9Forpython 2.7support, installrelease 0.6.7$ pip install pymediawiki==0.6.7DocumentationDocumentation of the latest release is hosted onreadthedocs.ioTo build the documentation yourself run:$ pip install sphinx
$ cd docs/
$ make htmlAutomated TestsTo run automated tests, one must simply run the following command from the
downloaded folder:$ python setup.py testQuickstartImport mediawiki and run a standard search against Wikipedia:>>>frommediawikiimportMediaWiki>>>wikipedia=MediaWiki()>>>wikipedia.search('washington')Run more advanced searches:>>>wikipedia.opensearch('washington')>>>wikipedia.allpages('a')>>>wikipedia.geosearch(title='washington, d.c.')>>>wikipedia.geosearch(latitude='0.0',longitude='0.0')>>>wikipedia.prefixsearch('arm')>>>wikipedia.random(pages=10)Pull a MediaWiki page and some of the page properties:>>>p=wikipedia.page('Chess')>>>p.title>>>p.summary>>>p.categories>>>p.images>>>p.links>>>p.langlinksSee thedocumentation for more examples!ChangelogPlease see thechangelogfor a list
of all changes.LicenseMIT licensed. See theLICENSE filefor full details.