Saravanan666/pypi-org huggingface dataset:
Package: plfatools
PLFA Tools AggregatorPurposeThe MIDI Inc. Sherlock PLFA Analysis Software has a paid add-on package called PLFA Tools. The software takes as input GC results of PLFA (and NLFA) samples and assigns peaks to categories (General FAME, Gram Negative, etc.). The software creates a new Excel Worksheet for each sample, possibly resulting in hundreds of worksheets of various formats. The purpose of this package is to automate the aggregation of the data into a single CSV file for analysis.LicenseAs a work of the United States government, this project is in the public domain within the United States.Additionally, we waive copyright and related rights in the work worldwide through the CC0 1.0 Universal public domain dedication.Installation informationCan be installed using pip:pip install plfatoolsMust be using Python 3 or later to use this package.Using this packageFrom command linePlfaTools can be used via the command line by running the main file within the aggregator package. It takes two arguments: 1) a full path to the directory containing the files to be aggregated and 2) a full path to the directory where you want the final.csv file to be written.Example:> python -m plfatools "C:\Files\Experiment1\PlfaOutput" "C:\Files\Experiment1\Output"Where:"C:\Files\Experiment1\PlfaOutput"is the directory with xlsx files to be aggregated"C:\Files\Experiment1\Output"is the directory where "final.csv" file containing aggregated data is writtenFrom PythonPlfaTools can also be imported as a module:import plfatoolsTheAggregatorClass contains four functions, listed below in order of decreasing generality:read_dir(): Reads a directory path that contains multiple files from PLFA Tools and returns a pandas DataFrame with all data from all files and worksheetsread_file(): Reads a file from PLFA Tools and returns a pandas DataFrame with all data from all worksheetstransform_stacked_to_tidy(): Accepts a Pandas DataFrame generated by "read_dir" or "read_file" and returns a new DataFrame in a tidy formattransform_raw_to_stacked(): Reformats output from PLFA Tools, of a single sample, into proper tabular formatNote: If there are other .xlsx files in the directory to be aggregated this will cause errors as the main file assumes all the XLSX files in the directory are GC results.Example:importpathlibimportplfatools# create an aggregator objectaggregator=plfatools.Aggregator()# specify path to directory with PLFA Tools output (Windows paths)path_to_directory=pathlib.Path('C:\\Files\\Experiment1\\PlfaOutput')# aggregate and format instrument output and assign it to a Pandas DataFrameplfa_data=aggregator.read_dir(path_to_directory)# alternatively, read a single file and assign the formatted output to Pandas DataFramepath_to_file=path_to_directory/'gc-output.xlsx'plfa_data=aggregator.read_file(path_to_file)
Package: pl-hub-sparse-ml-callback
SparseML CallbackAll credits to Sean Narenthiran. I am merely using his code for demonstrating purposes.SparseMLallows you to leverage sparsity to improve inference times substantially.SparseML requires you to fine-tune your model with theSparseMLCallback+ a SparseML Recipe. By training with theSparseMLCallback, you can leverage theDeepSparseengine to exploit the introduced sparsity, resulting in large performance improvements.The SparseML callback requires the model to be ONNX exportable. This can be tricky when the model requires dynamic sequence lengths such as RNNs.To use leverage SparseML & DeepSparse follow the below steps:Choose your Sparse RecipeTo choose a recipe, have a look atrecipesandSparse Zoo.It may be easier to infer a recipe via the UI dashboard usingSparsifywhich allows you to tweak and configure a recipe.
This requires to import an ONNX model, which you can get from yourLightningModuleby doingmodel.to_onnx(output_path).Train with SparseMLCallbackfrompytorch_lightningimportLightningModule,Trainerfrompl_bolts.callbacksimportSparseMLCallbackclassMyModel(LightningModule):...model=MyModel()trainer=Trainer(callbacks=SparseMLCallback(recipe_path='recipe.yaml'))Export to ONNX!Using the helper function, we handle any quantization/pruning internally and export the model into ONNX format.
Note this assumes either you have implemented the propertyexample_input_arrayin the model or you must provide a sample batch as below.importtorchmodel=MyModel()...# export the onnx model, using the `model.example_input_array`SparseMLCallback.export_to_sparse_onnx(model,'onnx_export/')# export the onnx model, providing a sample batchSparseMLCallback.export_to_sparse_onnx(model,'onnx_export/',sample_batch=torch.randn(1,128,128,dtype=torch.float32))Once your model has been exported, you can import this into eitherSparsifyorDeepSparse.
Package: plib3.classes
The PLIB3.CLASSES package contains a number of useful
Python 3 classes. The latest official release is
available on PyPI athttps://pypi.org/project/plib3.classes/and the latest source code is available on Gitlab athttps://gitlab.com/pdonis/plib3-classes.PLIB3.CLASSES is built using thebuildPEP 517 build tool
with thesetuputils_buildbackend, which uses thesetuputilshelper module to build the setup.cfg file that
is included with the distribution. This module and build backend
are available athttps://gitlab.com/pdonis/setuputils3.The PLIB3.CLASSES PackageThe following classes are available in theplib.classesnamespace:TheStateMachineclass implements a basic finite state machine
with customizable code to be run at each state transition.InstallationThe simplest way to install PLIB3.CLASSES is by usingpip:$ python3 -m pip install plib3.classesThis will download the latest release from PyPI and install it
on your system. If you already have a downloaded source tarball or
wheel, you can havepipinstall it directly by giving its
filename in place of “plib3.classes” in the above command line.The Zen of PLIB3There is no single unifying purpose or theme to PLIB3, but
like Python itself, it does have a ‘Zen’ of sorts:Express everything possible in terms of built-in Python
data structures.Once you’ve expressed it that way, what the code is
going to do with it should be obvious.Avoid boilerplate code,andboilerplate data. Every
piece of data your program needs should have one and
only one source.Copyright and LicensePLIB3.CLASSES is Copyright (C) 2008-2019 by Peter A. Donis.This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (See the LICENSE file for a
copy of version 2 of the License.)This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Package: plib3.extensions
The PLIB3.EXTENSIONS package contains functions (and possibly,
in the future, other objects) exported from an extension
module written using the Python/C API. The general
philosophy of PLIB3 is to do everything possible in pure
Python, so the only functions that appear in this package
are those which by their very nature cannot be done in pure
Python. The latest official release is available on PyPI athttps://pypi.org/project/plib3.extensions/and the latest source code is available on Gitlab athttps://gitlab.com/pdonis/plib3-extensions.PLIB3.EXTENSIONS is built using thebuildPEP 517 build tool
withsetuptoolsin “legacy” mode, usingsetup.pyinstead
ofsetup.cfg, since building extension modules is currently
not supported insetup.cfg. It uses thesetuputilshelper
module to populate the setup variables insetup.py, and to
build theMANIFEST.infile that is used in the distribution.
This module is available athttps://gitlab.com/pdonis/setuputils3.The PLIB3.EXTENSIONS PackageThe following functions are available in theplib.extensionsnamespace:Thecapsule_comparefunction checks whether two Capsules
wrap the same C-level pointer.InstallationThe simplest way to install PLIB3.EXTENSIONS is by usingpip:$ python3 -m pip install plib3.extensionsThis will download the latest release from PyPI and install it
on your system. If you already have a downloaded source tarball,
you can havepipinstall it directly by giving its
filename in place of “plib3.extensions” in the above command line.The Zen of PLIB3There is no single unifying purpose or theme to PLIB3, but
like Python itself, it does have a ‘Zen’ of sorts:Express everything possible in terms of built-in Python
data structures.Once you’ve expressed it that way, what the code is
going to do with it should be obvious.Avoid boilerplate code,andboilerplate data. Every
piece of data your program needs should have one and
only one source.Copyright and LicensePLIB3.EXTENSIONS is Copyright (C) 2008-2022 by Peter A. Donis.This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (See the LICENSE file for a
copy of version 2 of the License.)This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Package: plib3.gui
NOTE: This package is deprecated, and will not be updated
further. For a more up to date UI toolkit, see the PLIB3.UI
package.The PLIB3.GUI package contains a simple GUI application framework
with two main features:It lets the same high-level code work with a number of
different underlying GUI toolkits. Currently supported:
Qt 5, PySide 2, Qt 4, PySide, KDE 4, and wxPython. (The
original reason for writing this sub-package was that
wxWidgets doesn’t use Qt and I like the Qt/KDE widgets
better, but Qt was not available for Windows and I wanted
code that would run cross-platform.) Note that the KDE 4
and wxPython toolkits are untested at this time.It allows you to express the layout of your GUI in terms
of Python lists and dicts, enabling a much more declarative
and easy to read (and maintain) coding style.Other than selecting the toolkit (which may not be necessary:
the main module of the sub-package can ‘auto-detect’ which
toolkit to use–theplib-setup-guipost-install script
does most of the work to enable this–so you only need to
override if you don’t like the default), you should not have
to worry about any toolkit internal details; the goal of this
sub-package is to make them all look the same to your code.Note: PLIB3.GUI works with Python 3. If you are using Python
2.7, see the PLIB.GUI package, available athttps://pypi.python.org/pypi/plib.gui.Thesetup.pyscript for PLIB3.GUI uses thesetuputilshelper module, which helps to automate away much of the
boilerplate in Python setup scripts. This module is available
as a separate release athttps://pypi.python.org/pypi/setuputils3.InstallationTo install PLIB3.GUI, you can simply run:$ python setup.py installat a shell prompt from the directory into which you
unzipped the source tarball (the same directory that this
README file is in). This will install PLIB3 and then
run each of the post-install scripts in the scripts
directory.Example ProgramsPLIB3.GUI comes with example programs that illustrate key features
of the package. After installation, these can be found in the$PREFIX/share/plib/examplesdirectory. If you have a
POSIX system (Linux or Mac OSX), theplib-setup-examplespost-install script will install symlinks to the example
programs in the$PREFIX/bindirectory.
Package: plib.classes
The PLIB.CLASSES package contains a number of useful
Python classes.Note: PLIB.CLASSES works with Python 2.7. If you are using
Python 3, see the PLIB3.CLASSES package, available athttps://pypi.org/project/plib3.classes.Thesetup.pyscript for PLIB.CLASSES uses thesetuputilshelper module, which helps to automate away much of the
boilerplate in Python setup scripts. This module is available
as a separate release athttps://pypi.org/project/setuputils.The PLIB.CLASSES PackageThe following classes are available in theplib.classesnamespace:TheStateMachineclass implements a basic finite state machine
with customizable code to be run at each state transition.InstallationTo install PLIB.CLASSES, you can simply run:$ python setup.py installat a shell prompt from the directory into which you
unzipped the source tarball (the same directory that this
README file is in). This will install PLIB and then
run each of the post-install scripts in the scripts
directory.
Package: plib.dbtools
The PLIB.DBTOOLS package provides an easier to use interface
to DB-API compliant databases.Note: PLIB.DBTOOLS works with Python 2.7. If you are using
Python 3, see the PLIB3.DBTOOLS package, available athttps://pypi.org/project/plib3.dbtools.Thesetup.pyscript for PLIB.DBTOOLS uses thesetuputilshelper module, which helps to automate away much of the
boilerplate in Python setup scripts. This module is available
as a separate release athttps://pypi.org/project/setuputils.The PLIB.DBTOOLS PackageThe following classes and functions are available in theplib.dbtoolsnamespace:TheDBInterfaceclass provides a simple API for working with
databases. It assumes that the underlying database engine conforms
to the Python DB API. This class itself does not know about any
particular database engine; a customized class should be derived
from it for each particular engine.TheMySQLDBInterfaceclass customizesDBInterfaceto work
with a MySQL database. It uses theMySQLdbthird-party Python
package. This class is in theplib.dbtools.mysqlsub-package.TheSQLite3DBInterfaceclass customizesDBInterfaceto work
with an SQLite version 3 database. It uses thesqlite3module
that comes with Python as its database engine. This class is in theplib.dbtools.sqlitesub-package.Theget_db_interfacefunction is a convenience function that
returns an instance of the appropriateDBInterfacesubclass for
the database type passed to it.Theget_db_interface_classandget_db_interface_argsfunctions
factor out key portions ofget_db_interfaceso that they can be
used separately if desired. For example, some databases might require
subclassing the interface class further, or customizing the interface
arguments.InstallationTo install PLIB.DBTOOLS, you can simply run:$ python setup.py installat a shell prompt from the directory into which you
unzipped the source tarball (the same directory that this
README file is in). This will install PLIB and then
run each of the post-install scripts in the scripts
directory.
Package: plib.extensions
The PLIB.EXTENSIONS package contains functions (and possibly,
in the future, other objects) exported from an extension
module written using the Python/C API. The general
philosophy of PLIB is to do everything possible in pure
Python, so the only functions that appear in this package
are those which by their very nature cannot be done in pure
Python.Note: PLIB.EXTENSIONS works with Python 2.7. If you are using
Python 3, see the PLIB3.EXTENSIONS package, available athttps://pypi.org/project/plib3.extensions.Thesetup.pyscript for PLIB.EXTENSIONS uses thesetuputilshelper module, which helps to automate away much of the
boilerplate in Python setup scripts. This module is available
as a separate release athttps://pypi.org/project/setuputils.The PLIB.EXTENSIONS PackageThe following classes are available in theplib.extensionsnamespace:Thecapsule_comparefunction checks whether two Capsules
wrap the same C-level pointer.Thecobject_comparefunction checks whether two CObjects
wrap the same C-level pointer.InstallationTo install PLIB.EXTENSIONS, you can simply run:$ python setup.py installat a shell prompt from the directory into which you
unzipped the source tarball (the same directory that this
README file is in). This will install PLIB and then
run each of the post-install scripts in the scripts
directory.
Package: plib.gui
The PLIB.GUI package contains a simple GUI application framework
with two main features:It lets the same high-level code work with a number of
different underlying GUI toolkits. Currently supported:
Qt (versions 3, 4, and 5), PySide and PySide 2, KDE
(versions 3 and 4), wxWidgets, and GTK. (The original
reason for writing this sub-package was that wxWidgets
doesn’t use Qt and I like the Qt/KDE widgets better, but
Qt was not available for Windows and I wanted code that
would run cross-platform.)It allows you to express the layout of your GUI in terms
of Python lists and dicts, enabling a much more declarative
and easy to read (and maintain) coding style.Other than selecting the toolkit (which may not be necessary:
the main module of the sub-package can ‘auto-detect’ which
toolkit to use–theplib-setup-guipost-install script
does most of the work to enable this–so you only need to
override if you don’t like the default), you should not have
to worry about any toolkit internal details; the goal of this
sub-package is to make them all look the same to your code.Note that the GTK toolkit support in this sub-package is
“experimental” and may be removed if it proves to be more
trouble than it’s worth. It’s currently included because
wxWidgets’ behavior when using GTK as its underlying GUI
framework has some quirks that I haven’t been able to work
around yet. However, the GTK implementation of a number of
widgets (particularly tables and list/tree views) is much
less capable than the wxWidgets one, so the Python code for
GTK ends up relying much more on ugly hacks.Note: PLIB.GUI works with Python 2.7. If you are using
Python 3, see the PLIB3.GUI package, available athttps://pypi.python.org/pypi/plib3.gui.Thesetup.pyscript for PLIB.GUI uses thesetuputilshelper module, which helps to automate away much of the
boilerplate in Python setup scripts. This module is available
as a separate release athttps://pypi.python.org/pypi/setuputils.InstallationTo install PLIB.GUI, you can simply run:$ python setup.py installat a shell prompt from the directory into which you
unzipped the source tarball (the same directory that this
README file is in). This will install PLIB and then
run each of the post-install scripts in the scripts
directory.Example ProgramsPLIB.GUI comes with example programs that illustrate key features
of the package. After installation, these can be found in the$PREFIX/share/plib/examplesdirectory. If you have a
POSIX system (Linux or Mac OSX), theplib-setup-examplespost-install script will install symlinks to the example
programs in the$PREFIX/bindirectory.
Package: plico
PLICO: Python Laboratory Instrumentation COntrolplico is a framework to develop applications controlling instrumentation typically available in a scientific laboratory.
It is entirely written in Python and support server-client applications, usingzeromqas message dispatcher.Documentationhttps://plico.readthedocs.ioStatus of related packagesplico_motorplico_motor_serverpysilicopysilico_serverplico_dmplico_dm_serverplico_interferometerplico_interferometer_servertipicotipico_server
Package: plico-dm-server
# plico_dm server: deformable mirror controller![Python package](https://github.com/ArcetriAdaptiveOptics/plico_dm_server/workflows/Python%20package/badge.svg)
[![codecov](https://codecov.io/gh/ArcetriAdaptiveOptics/plico_dm_server/branch/main/graph/badge.svg?token=ApWOrs49uw)](https://codecov.io/gh/ArcetriAdaptiveOptics/plico_dm_server)
[![Documentation Status](https://readthedocs.org/projects/plico_dm_server/badge/?version=latest)](https://plico_dm_server.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/plico-dm-server.svg)](https://badge.fury.io/py/plico-dm-server)This is part a component of the [plico][plico] framework to control Deformable Mirrors (Alpao, MEMS, PI piezo tip-tilt platform)See [plico_dm][plico_dm] repository for installation and usage[plico]:https://github.com/ArcetriAdaptiveOptics/plico[plico_dm]:https://github.com/ArcetriAdaptiveOptics/plico_dm
Package: plico-interferometer-server
# plico_interferometer_server
server for interferometer control under the plico environment![Python package](https://github.com/ArcetriAdaptiveOptics/plico_interferometer_server/workflows/Python%20package/badge.svg)
[![codecov](https://codecov.io/gh/ArcetriAdaptiveOptics/plico_interferometer_server/branch/main/graph/badge.svg?token=ApWOrs49uw)](https://codecov.io/gh/ArcetriAdaptiveOptics/plico_interferometer_server)
[![Documentation Status](https://readthedocs.org/projects/plico_interferometer_server/badge/?version=latest)](https://plico_interferometer_server.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/plico-interferometer-server.svg)](https://badge.fury.io/py/plico-interferometer-server)plico_interferometer is an application to control interferometers under the [plico][plico] environment.[plico]:https://github.com/ArcetriAdaptiveOptics/plico
Package: plico-motor-server
# plico_motor_server
server for motor control under the plico environment![Python package](https://github.com/ArcetriAdaptiveOptics/plico_motor_server/workflows/Python%20package/badge.svg)
[![codecov](https://codecov.io/gh/ArcetriAdaptiveOptics/plico_motor_server/branch/main/graph/badge.svg?token=ApWOrs49uw)](https://codecov.io/gh/ArcetriAdaptiveOptics/plico_motor_server)
[![Documentation Status](https://readthedocs.org/projects/plico_motor_server/badge/?version=latest)](https://plico_motor_server.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/plico-motor-server.svg)](https://badge.fury.io/py/plico-motor-server)plico_motor is an application to control motors under the [plico][plico] environment.[plico]:https://github.com/ArcetriAdaptiveOptics/plico
Package: pliffy
pliffymakes difference plots, plots that are simple and informative. At present,pliffymakes difference plots for two independent groups (e.g. treatmentvscontrol) or for two measurements made in the same group (e.g. pre-treatmentvspost-treatment). All raw data points are plotted by default, and data is summarised with the mean and confidence interval. The confidence interval is calculated using the appropriatet-distribution and is set to 95% by default.pliffyplots are simple to generate. The simplestpliffyplot requires only two inputs,data_aanddata_b. Because these two datasets (aandb) are used to compute thedifference, these plots are referred to asabdplots. For example, with our two datasets already loaded:>>>frompliffyimportPliffyInfoABD,plot_abd>>>info=PliffyInfoABD(data_a=data_a,data_b=data_b)>>>plot_abd(info)DocumentationIntroductory tutorials, how-to's and other useful documentation are available onRead the DocsInstallingpliffyis available on PyPI:$python-mpipinstallpliffypliffyofficially supports Python 3.8+.ContributingLike this project? Want to help? We would love to have your contribution! Please seeCONTRIBUTINGto get started.Code of conductThis project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior toheroux.martin@gmail.com.LicenseGPLv3
Package: plight
plightallows screen backlight adjustment.InstallTo install plight:pip install plightor clone the repo and:python setup.py installYou must allow users in the video group to change the brightness, a udev rule such as the following can be used:/etc/udev/rules.d/backlight.rulesACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"where acpi_video0 must be replaced by the right directory. Then add user to
video group:gpasswd -a user video