Saravanan666/pypi-org huggingface dataset:
Package: pymensor
pymensorThis package is a GPIB (IEEE 488.2) driver forMensor Modular Pressure Controllers.This package is written for and tested on the now obsolete modelCPC6000,
but is intended to work for all WIKA pressure controllers made by Mensor.Please feel free to raise any issues or contact the maintainers to contribute.Installationpip install pymensorDependenciesThis package depends onpyvisa.UsagePythonfrompymensorimportPressureController
Package: pymentor
PymentorMentor is a Python library to implement a computational model of the Mentor Didactic Robotic Arm. This model was first published in the workA Genetic Approach for Trajectory Optimization Applied to a Didactic Robot. The library includes:Direct kinematics based on Denavit-Hartenberg parameters, where variables represented in the cartesian coordinate space are transformed to joint space.Inverse kinematics to encounter joint angles based on position and orientation matrix.Exception and error treatment in case of impossible position/orientation pairs.Method to deal with alpha, beta and gamma angles to encounter orientation 3x3 matrix based on XYZ angles.InstallationUse the package managerpipto install pymentor.pipinstallpymentorUsageUse this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.importnumpyasnpfrompymentorimportMentor# direct kinematics exampleangles=[np.pi/6]*5robot=Mentor()pos,rot=robot.get_position(angles)# pos is 4x1 vector# rot is 3x3 rotation matrixpos=np.array([24.21323027,13.97951501,-17.07885504,1.0])rot=np.array([[0.59049287,0.23642905,-0.77163428],[-0.23642905,-0.86349762,-0.44550326],[-0.77163428,0.44550326,-0.4539905]])# pos is 4x1 vector# rot is 3x3 rotation matrixangles=robot.get_angles(pos,rot)# creating rotational matrix from alpha-beta-gamma anglesrot=robot.get_orientation(np.pi/6,np.pi/6,np.pi/6)ContributingAny contributions you make aregreatly appreciated. To contribute please follow this steps:Fork the ProjectCreate your Feature Branch (git checkout -b feature/new_feature)Commit your Changes (git commit -m 'commit-tag: commit-description')Push to the Branch (git push origin feature/new_feature)Open a Pull RequestLicenseGeneral Public License version 3.0GPL-3.0ContactOscar Schmitt Kremer -LinkedinEmailProject Link:pymentor RepositoryReferencesO. S. Kremer, M. A. B. Cunha, F. S. Moraes, S. S. Schiavon.A Genetic Apporach for Trajectory Optimization Applied to a Didactic Robot2019 Latin American Robotics Symposium. 2019.doi:10.1109/LARS-SBR-WRE48964.2019.00049
Package: pymenu-console
pymenupymenu is a python library for creating interactive, console-based menus. It allows for the creation of menus that can be controlled with keyboard arrows, and can also automatically generate menus from files in a folder.InstallationTo install pymenu, simply run the following command:pip install pymenu-consoleUsagepymenu makes it easy to create menus for your console applications. You can create a menu from files in a folder, or create a selector menu, in which the user chooses an option and the option is returned in the function.ExamplesSimple menuHere is an example of how to create a menu with pymenu:frompymenuimportMenumenu=Menu('Menu title')menu.add_option("Option 1",lambda:print("Option 1"))menu.add_option("Option 2",lambda:print("Option 2"))menu.add_option("Option 3",lambda:print("Option 3"))menu.show()Menu with submenusHere is an example of how to create a menu with submenus using pymenu:frompymenuimportMenumenu=Menu('Menu title')menu.add_option("Option 1",lambda:print("Option 1"))menu.add_option("Option 2",lambda:print("Option 2"))menu.add_option("Option 3",lambda:print("Option 3"))submenu=Menu('Submenu title')submenu.add_option("Suboption 1",lambda:print("Suboption 1"))submenu.add_option("Suboption 2",lambda:print("Suboption 2"))submenu.add_option("Suboption 3",lambda:print("Suboption 3"))menu.add_option("Submenu",submenu)menu.show()Automatic menu of a folderHere's an example of how to automatically create a menu from a folder with pymenu:frompymenuimportauto_menumenu=auto_menu.create_menu_from_directory('directory')menu.add_option('Exit',exit)menu.show()Selector menuHere is an example of how to create a selector menu with pymenu:frompymenuimportselect_menuoptions=['Option 1','Option 2','Option 3']selected_option=select_menu.create_select_menu(options,'Select an option')
Package: pymeos
MEOS (Mobility Engine, Open Source)is a C library which enables the manipulation of
temporal and spatio-temporal data based onMobilityDB's data types and functions.PyMEOS is a Python library built on top of MEOS using CFFI which presents a set of classes to manipulate spatio-temporal
informationUsageInstallationpipinstallpymeosPyMEOS wheel should be compatible with any system, but it is possible that the pre-built distribution is
not available for PyMEOS CFFI for some OS/Architecture.If it is not available, see thesource installation notes on PyMEOS CFFI's readmeon how to proceedSample codeIMPORTANTBefore using any PyMEOS function, always callpymeos_initialize. Otherwise, the library will
crash with aSegmentation Faulterror. You should also always callpymeos_finalizeat the end of your code.frompymeosimportpymeos_initialize,pymeos_finalize,TGeogPointInst,TGeogPointSeq# Important: Always initialize MEOS librarypymeos_initialize()sequence_from_string=TGeogPointSeq(string='[Point(10.0 10.0)@2019-09-01 00:00:00+01, Point(20.0 20.0)@2019-09-02 00:00:00+01, Point(10.0 10.0)@2019-09-03 00:00:00+01]')print(f'Output:{sequence_from_string}')sequence_from_points=TGeogPointSeq(instant_list=[TGeogPointInst(string='Point(10.0 10.0)@2019-09-01 00:00:00+01'),TGeogPointInst(string='Point(20.0 20.0)@2019-09-02 00:00:00+01'),TGeogPointInst(string='Point(10.0 10.0)@2019-09-03 00:00:00+01')],lower_inc=True,upper_inc=True)speed=sequence_from_points.speed()print(f'Speeds:{speed}')# Call finish at the end of your codepymeos_finalize()
Package: pymeos-cffi
PyMEOS CFFIMEOS (Mobility Engine, Open Source)is a C library which enables the manipulation of
temporal and spatio-temporal data based onMobilityDB's data types and functions.PyMEOS CFFI is a Python library that wraps the MEOS C library using CFFI, providing a set of python functions
that allows to use all MEOS functionality while automatically taking care of conversions between basic Python and C types
(such as Python'sstrto C'schar *).This library is not meant to be used directly by the user, since most of the functions receive or return C objects
(CFFI'scdatatype).ThePyMEOSlibrary is built on top of this library and exposes all the functionality
of MEOS through a set of Python classes.UsageInstallationpipinstallpymeos-cffiSource installationIf the pre-built distribution is not available for your system,pipwill try to make source distribution. For that, you will
need to make sure you have the following requirements:C compilerMEOS LibraryIf the installation fails, you can submit an issue in thePyMEOS issue tracker
Package: pymep
python.math.expression.parser.pymeppymep can parse or evaluate math expressions.This algorithm does not use a decision tree. It is a kind of Recursive Ascent Parser (https://en.wikipedia.org/wiki/Recursive_ascent_parser). In fact, it is LR parser (Left-Right Parser) without backtracking. This recursive algorithm is faster than decision treespypi versionhttps://pypi.org/project/pymep/Installationpip install pymepExamplesHere you can see some examples:Real Numbers:from pymep.realParser import parse
from pymep.realParser import eval


#Real Expresion parser
fx="cos(10)"
print(parse(fx))

xi=5
fx = "1 + x"
print(eval(fx, xi))

var = {"x":"1+1", "Z":1}
eval(" 2*(-(((z*3)*sqrt(x^(2)))+3))",var)For Complex Numbers:from pymep.complexParser import parse
from pymep.complexParser import eval
from pymep.complex import Complex

#Operation with complex numbers
a = Complex(1,2)
print(a.__radd__(10).__complex__())
print(Complex.radd(10, a).__complex__())


#Complex Expresion parser
fx="cos(10+2j)"
print(parse(fx).__complex__())

xi=5
fx = "1 +j+x"
print(eval(fx, xi).__complex__())

var={"x":"1+2j", "Y":complex(2,1)}
f_x = "x-y"
eval(f_x,var).__complex__()There is a full list of examples inside!!Enjoy it!!The java version of this library is:https://github.com/sbesada/java.math.expression.parserNOTE: Regarding to the OS where you excute the tests, it is possible that some tests fail beacause of rounding issues. The mathematical library that was used in this project is "math". In the future, it is possible that the math library changes.PD: If you think that my work deserves a donation, you can do it:https://sbesada.github.io/
Package: pymergedocx
===========pymergedocx===========.. image:: https://img.shields.io/pypi/v/pymergedocx.svg:target: https://pypi.python.org/pypi/pymergedocx.. image:: https://img.shields.io/travis/x-debug/pymergedocx.svg:target: https://travis-ci.org/x-debug/pymergedocx.. image:: https://readthedocs.org/projects/pymergedocx/badge/?version=latest:target: https://pymergedocx.readthedocs.io/en/latest/?badge=latest:alt: Documentation Statuspython 下合并doc库,使用非常简单merge_docx('{}/files/result.docx'.format(current_path), '{}/files/template.docx'.format(current_path),'{}/files/template1.docx'.format(current_path), '{}/files/template2.docx'.format(current_path))* Free software: Apache Software License 2.0* Documentation: https://pymergedocx.readthedocs.io.Features--------* TODOCredits-------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage=======History=======0.1.0 (2018-06-07)------------------* First release on PyPI.0.1.1 (2018-06-07)------------------* fix some description.0.1.2 (2018-06-07)------------------* fix readme file.0.1.4 (2018-06-07)------------------* include php engine.
Package: pymerger
The Python Files Merger is a tool that seamlessly combines multiple Python files into a single, well-organized unit while automatically handling imports, checking definition collisions, and resolving dependencies. It can be used to merge standard Python files but works especially well hadnling files designed for microcontrollers. The package supports Python, MicroPython, and CircuitPython files.UsageShell examplepython -m pymerger src/*orpython -m pymerger src/lorem.py src/ipsum.pyYou can see shell option withpython -m pymerger -hFile exampleimport pymerger

pymerger.merge(["src/**"], output="merged_files.py")The function also returns the raw string, so you could do:import pymerger

output_string = pymerger.merge(["src/**"])
print(output_string)Only optional parameter is "output", that lets you choose where the output should be saved.ContributingDevelopingYou can download the repo and run the merger withpython -m pymerger <files_to_merge>Lintpylint pymergerTestsYou can click on the tests badge to check the tests statuspytestCoverageYou can clickon the coverage badge to check the code coveragecoverage run --source=pymerger -m unittest discover && coverage reportReports and badgesRight now, badges are generated locally and uploaded to github, we should really do this in github workflows.To generate reports and badges:python genbadges.pyUpload to pipUpdate pymerger version inpymerger/__init__.py.Runpython setup.py sdistto create the dist tar which will be uploadad to pip.Runpython -m twine upload dist/$(ls dist | tail -n 1)to upload the most up to date tar folder in the sir directory.
Package: pymergevcd
IntroductionMerge VCD files, optionally to create a diff on various files and signals.Also a playground forsltoo.Requirements and architecure documents arehere.InstallationpipinstallpymergevcdRequirementsPython 3.6+.DocumentationPlease see thedocsfolder.Usagepymergevcd -o merged_out.vcd in1.vcd in2.vcd
Package: pymeringue
PyMeringuePyMeringue is a port ofMeringue. PyMeringue offers an extension for Python lists, adding helpful functions to make your life easier.InstallationThroughpip:$pip3installpymeringueFrom source:$gitclonehttps://github.com/stiive/pymeringuepymeringue
$cdpymeringue
$pythonsetup.pyinstallSample UsagePyMeringue is simple to use and can be used as a drop-in replacement for normal Python lists.importmeringuelist1=Meringue()foriinrange(20):list1.append(i)print(list1)# [0, 1, 2, ... 19]PyMeringue adds several helpful functions to make managing Python lists easier.print(list1.last());# 19print(list1.at(-1));# 19list2=Meringue(["a","b","c","d","c","b","a"]);print(list2.removeCommonElements(["a","c"],["d"]));# ["b", "b"]print(list2.unique());# ["a", "b", "c", "d"]DocumentationFull documentation can be found athttps://meringue.stiive.co.
Package: pymerkle-logsTransparentes
pymerkleMerkle-tree cryptographyDocumentation found atpymerkle.readthedocs.org.This library provides a Merkle-tree implementation in Python. It supports
multiple combinations of hash functions and encding schemas with defense against
second-preimage attack enabled.Installpip3installpymerkleUsagefrompymerkleimportMerkleTree,verify_inclusion,verify_consistencytree=MerkleTree()# Populate tree with some entriesfordatain[b'foo',b'bar',b'baz',b'qux',b'quux']:tree.append_entry(data)# Prove and verify inclusion of `bar`proof=tree.prove_inclusion(b'bar')verify_inclusion(b'bar',tree.root,proof)# Save current statesublength=tree.lengthsubroot=tree.root# Append further entriesfordatain[b'corge',b'grault',b'garlpy']:tree.append_entry(data)# Prove and verify previous stateproof=tree.prove_consistency(sublength,subroot)verify_consistency(subroot,tree.root,proof)SecurityThis is currently a prototype requiring security review. However, some steps have
been made to this direction:Defense against second-preimage attackThis consists in the following standard technique:Upon computing the hash of a leaf, prepend its data with0x00.Upon computing the hash of an interior node, prepend the hashes of its
children with0x01.Referhereto see how to perform second preimage
attack against the present implementation.Defense against CVE-2012-2459 DOSContrary to thebitcoinspecification for Merkle-trees, lonely leaves are not duplicated while the tree is growing.
Instead, when appending new leaves, a bifurcation node is created at the rightmost branch.
As a consequence, the present implementation should be invulnerable to the DOS attack reported asCVE-2012-2459(see alsoherefor explanation).Tree structureThe topology turns out to be that of a binarySakura tree.Developmentpip3 install -r requirements-dev.txtTests./test.sh [pytest options]to run tests against the limited set of encoding schemas UTF-8, UTF-16 and
UTF-32. To run tests against all possible combinations of hash algorithms and
encoding schemas, run./test.sh --extendedDocumentationpymerkle.readthedocs.org.Build locallyDocumentation is built withsphinx:pip3 install -r requirements-doc.txtOnce installed, build docs with./build-docs.sh [--help]and browse atdocs/target/build/html/index.htmlto view them.
Package: pymermaid2dir
pymermaid2dirA Python package for converting directory structures to Markdown's Mermaid syntax.pymermaid2dir is a Python package that allows you to convert directory structures into Markdown's Mermaid syntax, making it easy to visualize your file and folder hierarchy. With pymermaid2dir, you can easily generate diagrams and flowcharts that represent the structure of your project.InstallationYou can install pymermaid2dir using pip:pipinstallpymermaid2dirUsageTo use pymermaid2dir, simply run the pymermaid2dir module on the command line to convert the directory structure to mermaid.usage:pymermaid2dir[-h]--folderFOLDER--outputOUTPUT[-v]pymermaid2dir

options:-h,--helpshowthishelpmessageandexit--folderFOLDER,-fFOLDERInputRootFolder--outputOUTPUT,-oOUTPUTOutputMode-v,--versionshowprogram'sversionnumberandexitExsample# commandpython3-mpymermaid2dir-fsample-omarkdown# result\```mermaid
graphTD;28191270[sample]-->28191273[f1.txt];28191270[sample]-->28191278[f2.txt];\```Currently, only markdown output is available, so be sure to run with-o markdown.Licensepymermaid2dir is distributed under the MIT License. See the LICENSE file for more information.We hope this helps you get started with your pymermaid2dir project on GitHub! Let us know if you have any other questions or if there's anything else we can do to assist you.
Package: pymermaiddiagram
PyMermaidA library to create mermaid.js diagrams using pythonCoded byGioele SL FierroHow to use pymermaiddiagramsimportbase64importrequestsimportiofromPILimportImagefrompymermaiddiagramimportcreateDiagram,saveDiagramdefcreateAndShow(string_description):diagram_image=createDiagram(string_description)diagram_image.show()defsave(string_description):saveDiagram(diagram_description,image_name="test")if__name__=="__main__":string_description="graph LR;A-->B;A-->C;B-->D;C-->D;"createAndShow(string_description)save(string_description)
Package: pymesh3d
PyMesh3DBasic InstallationThis project for mesh render in data science.pipinstall--upgradepippipinstallpymesh3dIf you need mayavi backend.pipinstallmayavipipinstallpyqtQuick Startimportpymeshimportnumpyasnpimportmatplotlib.pyplotaspltLook at the directory example for full example.###################################################### Rotate Mesh Data ######################################################wkdir="../../Render"ey=np.load(wkdir+"/Ez.npy")[::2,::50]m,n=ey.shape[0],ey.shape[1]res=np.zeros([m,n,n])pymesh.rotate(ey,res,ifhalf=False)fig=plt.figure(figsize=(4,3))plt.contourf(res[:,int(n/2),:].T)cbar=plt.colorbar()####################################################### Save Mesh Data #######################################################mesh=pymesh.get_iso_surf(res,contours_number=4,cmap="jet")color=pymesh.interp_color(mesh.iso_vals,cmap="jet")mesh.export(wkdir+"test","obj")####################################################### Load Mesh Data #######################################################mesh=pymesh.Mesh.load(wkdir+"test","obj")####################################################### Plot Mesh Data #######################################################frommayaviimportmlabmlab_mesh=pymesh.iso_surface(mesh,colormap="RdBu")mlab.colorbar()mlab.show()################ plt example #################surf=mesh.plt_trisurf(cmap="jet")plt.colorbar(surf,orientation='horizontal')plt.tight_layout()
Package: pymeshb
pymeshblibMeshbPython 2&3 wrapper.OverviewThepymeshbPython module provides read/write functions
to handle the *.meshb file format. It is simply a Python wrapper
oflibMeshb.InstallationFrom the Python Package IndexPlease make sure thatnumpyis installed by typingpip install -U numpypymeshb isavailable from the Python Package
Index, so simply typepip install -U pymeshbto install or upgrade.From sourcespip install -U numpy
git clone https://github.com/jvanharen/pymeshb
cd pymeshb
git submodule init
git submodule update
python setup.py installUsageimportpymeshbmsh=pymeshb.read('in.meshb')pymeshb.write(msh,'out.meshb')The read function simply returns a dictionary whose the keys
are the keywords of the libmeshb library.
Package: pymeshlab
PyMeshLabPyMeshLab is a Python library that interfaces toMeshLab, the popular open source application for editing and processing large 3D triangle meshes. Python bindings are generated usingpybind11.DocumentationYou can find the official documentationhere.Install PyMeshLabYou can easily install PyMeshLab using pip:pip3 install pymeshlabNote about CondaPyMeshLab has not been tested in a Conda environment, so we cannot provide support for it. If possible, please install PyMeshLab usingpipoutside of Conda.
If you are a Conda developer and would like to contribute to making PyMeshLab compatible with Conda, pull requests are always appreciated :)Run PyMeshLabAfter installing PyMeshLab through pip:python
>>> import pymeshlab
>>> ms = pymeshlab.MeshSet()You can load, save meshes and apply MeshLab filters:ms.load_new_mesh('airplane.obj')
ms.generate_convex_hull()
ms.save_current_mesh('convex_hull.ply')And apply filters with your parameters:ms.create_noisy_isosurface(resolution=128)You can find all the names and parameters of the filters in theList of Filterspage of the documentation.To run the tests:pip3 install pytest
pytest --pyargs pymeshlabBuild PyMeshLabSee thesrcfolder that contains the instructions to build PyMeshLab.LicenseThe PyMeshlab source is released under theGPL License.CopyrightPyMeshLab
   All rights reserved.

   VCGLib  http://www.vcglib.net                                     o o
   Visual and Computer Graphics Library                            o     o
                                                                  _   O  _
   Paolo Cignoni                                                    \/)\/
   Visual Computing Lab  http://vcg.isti.cnr.it                    /\/|
   ISTI - Italian National Research Council                           |
   Copyright(C) 2020                                                  \ReferencesPlease, when using this tool, cite:@software{pymeshlab,
  author       = {Alessandro Muntoni and Paolo Cignoni},
  title        = {{PyMeshLab}},
  month        = jan,
  year         = 2021,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.4438750}
}ContactsPaolo Cignoni (paolo.cignoni (at) isti.cnr.it)Alessandro Muntoni (alessandro.muntoni (at) isti.cnr.it)FeedbackFor documented and repeatable bugs, feature requests, etc., please use theGitHub issues.
Package: pymesomake
PyMesomakePyMesomake is a Python 3 implementation of the mesostic generation algorithm Andrew Culver developed for John Cage.InstallationWindowsI only use Windows for testing in my projects but these instructions work for me on a vanilla Windows 10 VirtualBox virtual machine:If you don't already have Python on your system download and install the current release frompython.org.Open a Command Prompt.Run this command.pip install pymesomakeDownload thepunkttokenizer from Python's Natural Language Tool Kit.python -m nltk.downloader punktDownloadthis file, containing the text of Genesis.Run this command, making sure to provide the correct path to wherever you've downloaded the Genesis text.python -m pymesomake --sourcefile=Downloads\genesis.txt --mesostring="these are the times that try men's souls"You should see a mesostic on your screen. Congratulations.macOSI do most of my development work on Macintosh hardware so my setup is somewhat customized. If you've done any programming on your Mac it's likely you've already installedXcode,thehomebrewpackage manager, and maybe a version of Python 3.Install a current release of Python 3 on your Mac.This guideis as good as any.Open a Terminal window.Run this command.pip install pymesomakeDownload thepunkttokenizer from Python's Natural Language Tool Kit.python -m nltk.downloader punktDownloadthis file, containing the text of Genesis.Run this command, making sure to provide the correct path to wherever you've downloaded the Genesis text.python -m pymesomake --sourcefile=Downloads/genesis.txt --mesostring="these are the times that try men's souls"You should see a mesostic on your screen. Congratulations.Linuxcoming soonUsagepython pymesomake --sourcefile='data/genesis.txt' --mesostring="these are the times that try men's souls"Acknowledgements & ResourcesAndrew Culverpost to silence mailing listthat inspired this codecompilation ofcomputer programs used by John CageThe Holy Seesource of Genesis text. HTML source subjected to these minimal edits:removal of page navigation elementsremoval of chapter headings (e.g., "Chapter 6") and line numbering (e.g., "[1:30]")Marjorie Perloff contextual essaysJohn Cage Conceptualist PoetThe Music of Verbal Space: John Cage’s “What You Say”Reminder to MaintainerPublish thusly:python setup.py sdist bdist_wheel
twine upload dist/*