Saravanan666/pypi-org huggingface dataset:
Package: philip-pal
PHiLIP PAL (PHiLIP Protocol Abstraction Layer)DescriptionA set of python modules that abstract away and standardize shell based command for bare metal memory map access.
PHiLIP PAL is used to interface to a memory map specified from a csv or by the device.
It handles the parsing of offsets, sizes, etc. of the device.To use this interface a memory must be provided, by default the package contains the PHiLIP memory map for all the versions.
If a development version of PHiLIP is used and a memory map has not been released, the memory map can be scanned from the device.PHiLIP PAL provides a philip_shell which developers can use for manual tests and interacting with PHiLIP.
For automated scripts, a Phil() class is provided.For the API check the docstring ofphilip_shell.pyorphilip_if.pyPHiLIP PAL InstallationTo interface to PHiLIP first install the philip_pal for python3.sudo pip3 install philip_palRunning PHiLIP PAL ShellFirst connected PHiLIP to the computer so a serial port connection is available.This script handles interfacing to the PHiLIP device.  It parses data and
exposes from the PhilipExtIf class to be run in a shell.The pip installation installs a script that can be run withphilip_shellThe purpose of this script is allow easy setup and manual usage of PHiLIP.Usageusage: philip_shell.py  [-h]
                        [--loglevel {debug,info,warning,error,fatal,critical}]
                        [--port PORT]
                        [--filter-data]

optional arguments:
  -h, --help            show this help message and exit
  --loglevel {debug,info,warning,error,fatal,critical}
                        Python logger log level (default: warning)
  --port, -p
                        Specify the serial port
  --data_only, -do
                        Filters data from philip responses to only display
                        what is needed (default: False)Upon starting the shell use thehelpcommand to see what functionality is available.See the main page for more getting started and examples.Running PHiLIP PAL from CLIBesides the full PHiLIP PAL Shell there is also CLI mode for simple one-shot
access to PHiLIP interface functions. It allows to reset the PHiLIP MCU and
the connected DUT.After connecting PHiLIP simply runpython3 -m philip_pal --helpto get the
following full usage description:usage: python3 -m philip_pal [-h] [--verbose] [--dut_reset] [--reset] [port]

positional arguments:
  port         PHiLIP serial port

optional arguments:
  -h, --help   show this help message and exit
  --verbose    Enable more output
  --dut_reset  Reset device-under-test (DUT)
  --reset      Reset PHiLIP MCUTo get output use--verbose, otherwise commands will silently be executed.
Package: philip-pal2
philip-pal2The PHiLIP (Primitive Hardware In the Loop Integration Product) PAL (Protocol Abstraction Layer)DescriptionThe application layer based on themm_palforPHiLIP.
Providing helpers and connection details specifically for PHiLIP.PHiLIP PAL InstallationAs this is both a python library (Phil interface) and application (philip-cli) you may or may not want to install in a virtual environment.Generally, a simple pip installation should work:pip install philip-pal2Logging on to PHiLIP CLIFirst connect PHiLIP to the computer so a serial port connection is available.To log into PHiLIP run:philip-cliRunning single PHiLIP commandsBesides the full PHiLIP PAL Shell there is also CLI mode for simple one-shot
access to PHiLIP interface functions. It allows to reset the PHiLIP MCU and
the connected DUT.After connecting PHiLIP simply runpython3 -m philip_pal --helpto get the
following full usage description:usage: python3 -m philip_pal [-h] [--verbose] [--dut_reset] [--reset] [port]

positional arguments:
  port         PHiLIP serial port

optional arguments:
  -h, --help   show this help message and exit
  --verbose    Enable more output
  --dut_reset  Reset device-under-test (DUT)
  --reset      Reset PHiLIP MCUTo get output use--verbose, otherwise commands will silently be executed.NoteThis project has been set up using PyScaffold 4.3.1. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: philips-air-purifier
Philips Air Purifier Client APIPython API for monitoring and controlling Philips air purifiers.Installationpip install philips-air-purifierUsageGet the status of the air purifier:fromphilips_air_purifierimportstatusstatus.put_status(air_purifier_host="192.168.1.12",status={"pwr":"1"})current_status=status.get_status(air_purifier_host="192.168.1.12")Deploying to PyPipipinstallsetuptoolswheel
pythonsetup.pysdistbdist_wheel
twineuploaddist/*
Package: philips-air-purifier-ac2889
Author:marcinoooTags:philips air purifier, python, client, apiabstract:A simple client to control the Philips AC2889 air purifier.ContentsDescriptionInstallationUsageLicenseDescriptionThe package is a simple interface for controlling the Philips AC2889 air purifier. It allows read parameters and set parameters.Philips AC2889:InstallationInstall from PyPi:pip installphilips-air-purifier-ac2889Install from github:$ pip installgit+https://github.com/marcinooo/philips-air-purifier.gitUsageSimple example:fromphilips_air_purifier_ac2889importAirPurifierphilips_air_purifier=AirPurifier(host='192.168.1.21').connect()data=philips_air_purifier.get()print(data)print('Power on...')philips_air_purifier.set(pwr='1')# power onifisinstance(data['om'],int)andint(data['om'])<=2:new_speed=str(int(data['om'])+1)print(f'Increasing device speed from{data["om"]}to{new_speed}...')else:new_speed='1'print(f'Decreasing device speed from{data["om"]}to{new_speed}...')philips_air_purifier.set(mode='M',om=new_speed)List of all allowed parameters you can find in dictionary:importpprintfromphilips_air_purifier_ac2889importALLOWED_PARAMETERSpprint.pprint(ALLOWED_PARAMETERS)Seeexamplesdirectory :grinning:.NoteSome parameters must be set together:setting speed in manual mode:philips_air_purifier.set(mode='M',om='2')setting manual with speed:philips_air_purifier.set(mode='M',om='s')Licenselicense(MIT)
Package: philipstv
Python package providing CLI and library for interacting with Philips Android-powered TVs.Features:Get and set TV power state.Get and set volume.List and change TV channels.Emulate pressing remote keys.Get and set Ambilight power state.Get and set Ambilight color.List and launch applications.InstallationPyPIIf you plan to use the CLI:$pipinstall'philipstv[cli]'If you only need library for use in Python code:$pipinstallphilipstvArch Linux (AUR)philipstv AUR packageis available.DocumentationSee full documentation:Read the Docs: philipstv.See alsoPhilipsTV GUI- GUI application built with this library.ResourcesFantastic unofficial API documentationandscriptby@eslavnov.PhilipsJointSpace API documentation.
Package: philipstv-gui
PhilipstvTV GUIGUI remote for Philips Android-powered TVs.Features:Full remote emulation, all standard keys available.List available channels and change between them.List available applications and launch them.Set Ambilight colors for each TV side separately.InstallationPyPI$pipinstallphilipstv-guiArch Linuxphilipstv-gui AUR packageis available.See alsophilipstv- CLI and library for controlling Philips Android-powered TV's.
Package: philistine
A Python package for Phillip’s helper and utility functions, especially for EEG and statistics.StatusOverviewPhilistine is a collection of hopefully useful functions in Python for statistics and analysis of EEG data using existing packages in the Python ecosystem. It is not intended to be a standalone package, but rather a convenient way to distribute manipulations that I (Phillip) find useful in my own work.This is very much aa hobby project developed in my free time (in a language I don’t use much anymore) and the API is subject to change in a rather volatile fashion as improvements, corrections, etc. are made. The idea is provide a convenient way to redistribute functions that I (Phillip) find useful. The hope is that many of these functions are eventually integrated into packages such asMNE,bambi, etc. At that point, the functions will be changed into thin wrappers for those other packages, deprecated and eventually removed.The BV-writer functionality will likely be removed in a future release.
MNE now has anexportmodule, which takes advantage of [pybv](https://pypi.org/project/pybv/), which in turn took the good parts of the writer here and added some active maintenance.InstallationPhilistine requires a working Python interpreter. As of version 0.2.0, this must be at least Python 3.7 for compatibility with MNE 1.3.Assuming a standard Python environment is installed on your machine (including pip), Philistine itself can be installed in one line using pip:python -m pip install --user --upgrade philistineAlternatively, if you want the bleeding edge version of the package, you can install from GitLab:python -m pip install --user --upgrade  git+https://gitlab.com/palday/philistine.gitDependencies should be handled automatically by pip.DevelopmentThe primary hosting for this project is onGitLab, and issues should be raised there. AGitHub mirroris provided for convenience and redundancy. Pull requests can be made on either site.
Package: phillpot-vasp-scripts
vasp-scriptsScripts to automate common operations with the Vienna Ab-initio Simulation Package.InstallationThe collection can be downloaded fromPyPIunder the package namephillpot-vasp-scripts.$pipinstallphillpot-vasp-scriptsAssuming yourpipinstallation is configured correctly, the scripts will be immediately available through yourPATHenvironment variable.Available Scriptsvasp-compare.py- Compares the results of a set of calculations in the current directory.Optional Arguments:--energy- Enables comparison of final energy.--memory- Enables comparison of maximum memory usage.--time- Enables comparison of elapsed time.--ignore- Directory names to exclude from considerationvasp-converge.py- Sets up a convergence test from input files in the current directory.Subcommands:incar- Signals an INCAR tag convergence test.Positional Arguments:tag- INCAR tag name.values- Tag values to test.kpoints- Signals a k-point convergence test.Positional Arguments:min- Minimum grid density.max- Maximum grid density.n- Number of density values to test.Optional Arguments:--mode- Grid construction mode (gamma, monkhorst...). Defaults to 'gamma'.Optional Arguments:--jobcmd- The command used to submit the job script. Defaults to 'sbatch' or environment variableJOBCMD.--jobfile- The filename of the job submission script. Defaults to 'runjob.slurm' or environment variableJOBFILE.vasp-defect-energy.py- Calculates defect formation energy between a reference system and a defective system.Subcommands:point- Signals a point defect energy calculation.Positional Arguments:perfect- Path to the perfect system's calculation directory.defect- Path to the defective system's calculation directory.ground- Path to the defect specie's ground state calculation directory.surface- Signals a surface formation energy calculation.Positional Arguments:perfect- Path to the perfect system's calculation directory.defect- Path to the defective system's calculation directory.plane- Specifies which plane to interpret as surface. Defaults to 'xy'. Valid options are 'xy', 'xz', and 'yz'.vasp-restart.py- Restarts a calculation after a timeout or failure.Optional Arguments:--jobcmd- The command used to submit the job script. Defaults to 'sbatch' or environment variableJOBCMD.--jobfile- The filename of the job submission script. Defaults to 'runjob.slurm' or environment variableJOBFILE.
Package: philo
Philo <http://philocms.org/> is a foundation for developing web content management systems.Prerequisites:Python 2.5.4+ <http://www.python.org/>Django 1.3+ <http://www.djangoproject.com/>django-mptt e734079+ <https://github.com/django-mptt/django-mptt/>(optional) django-grappelli 2.0+ <http://code.google.com/p/django-grappelli/>(optional) south 0.7.2+ <http://south.aeracode.org/>(philo.contrib.penfield) django-taggit 0.9.3+ <https://github.com/alex/django-taggit/>(philo.contrib.waldo, optional) recaptcha-django r6+ <http://code.google.com/p/recaptcha-django/>After installing philo and mptt on your PYTHONPATH, make sure to complete the following steps:Add ‘philo.middleware.RequestNodeMiddleware’ to settings.MIDDLEWARE_CLASSES.Add ‘philo’ and ‘mptt’ to settings.INSTALLED_APPS.Include ‘philo.urls’ somewhere in your urls.py file.Optionally add a root node to your current Site.Philo should be ready to go! All that’s left is to learn more <http://docs.philocms.org/> and contribute <http://docs.philocms.org/en/latest/contribute.html>.
Package: philologic
These are the Python bindings for the PhiloLogic search engine.This package is only useful for the TEI Parser which you can import for use
outside of PhiloLogic.To get the full functionality of PhiloLogic, you need to install the search core
as well as the web components. See <a href=”https://github.com/ARTFL-Project/PhiloLogic4”>https://github.com/ARTFL-Project/PhiloLogic4</a>
for instructions and further documentation.
Package: philoseismos
philoseismos: engineering seismologist's toolbox.The Classical Greeks had a love for wisdom —It came down to us asphilo·sophia.And I have a passion for the seismic method —Let this be an ode tophilo·seismos.O how sweet it is —Listening to the echos from the earth.Öz YilmazSeismic Data AnalysisFeaturesWorking with SEG-Y filesDispersion image calculation from seismograms (phase-shift method)Dispersion curve calculation for Rayleigh waves for horizontally layered media
Package: philote-mdo
Philote-PythonPython library for using and creating Philote analysis servers.Documentation can be found at:https://chrislupp.github.io/Philote-PythonRequirementsThe installation/build process requires the following tools to be installed
(they will be installed if not present):grpcio-toolsprotoletariatimportlib.resourcesAdditionally, the following dependencies are required by Philote MDO and will be
installed automatically during the installation process:numpyscipygrpcioInstallationOlder versions of this library featured a two-step build process. This has since
been simplified. To install the package run pip:pip install <path/to/Philote-Python>orpip install -e <path/to/Philote-Python>for an editable install. Note, that <path/to/Philote-Python> is the path to the
repository root directory (the one containing pyproject.toml). Often, people
install packages when located in that directory, making the corresponding
command:pip install .Potential IssuesSome users have reported that grpcio-tools does not install the protoc
executable required to generate the stubs. If you run into this issue, you
will have to manually install the protoc executable (make sure to match the
version of gRPC that you have installed) and make it discoverable on your PATH.LicenseThis package is licensed under the Apache 2 license:Copyright 2022-2024 Christopher A. LuppLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.This work has been cleared for public release, distribution unlimited, case
number: AFRL-2023-5713.The views expressed are those of the authors and do not reflect the official
guidance or position of the United States Government, the Department of Defense
or of the United States Air Force.Statement from DoD: The Appearance of external hyperlinks does not constitute
endorsement by the United States Department of Defense (DoD) of the linked
websites, of the information, products, or services contained therein. The DoD
does not exercise any editorial, security, or other control over the information
you may find at these locations.
Package: philsol
philsolModes for the Masses (Massless?)Fed up with relying on expensive proprietary software for your electromagnetic waveguide research?  philsol might just be the package for you. In a world where high performance hardware is cheaper than specialist software, philsol throws elegence and sophistication out of the window and replaces it with brute force.This is a fully vectorial finite difference waveguide mode solver and a direct Python implimentation of the algorithm found in the paper:'Full-vectorial finite-difference analysis of microstructured optical fibres', by Zhu and Brown.Warning: I haven't thoroughly tested so be wary and check the results are sensible...New Warning: Original paper by Zhu and Brown is in gaussian not S. I. units.
To correct use conversion tablehere.InstallationInstall using pip with command 'pip install philsol'If you can't be bothered, the important part is the function eigenbuild in core.py.ExamplesCommented example projects can be found in theexamplesdirectory.To run the examples, first install philsol to your Python environment (see above)FeaturesSolverSolves vector Maxwell(Helmholtz) equations in 2D for arbitary refractive index profile.Return x and y componants of electric field.philsol can handle anisotropic refractive indices with diagonal tensor.Currently hard coded with conductive boundary.Choice of solving routines: the default scipy.sparse solver or Slepc (slepc4py and petsc4py) this libraries can be fiddly to set up but are very heavily featured including some limited GPU support.Extra field componants Ez, Hx, Hy, Hz can be calculated from construct modulePeriodic boundary conditionsGeometry buildingThe quickest way of importing geometry is with a bitmap imageSeeexamples/example_image.pyfor an example in loading .bpm imagesSeeexamples/example_build.pyfor an example in building geometry using PIL/PillowTo doMore intelligent geometry aproximation (e.g pixel interpolation on curved boundaries)More boundry condition options Bloch, PML...GPU eigensolving
Package: phimaker
phimakerPersitenthomology ofimagesand (co)kernels.OverviewPhimaker is a Rust library implementing the algorithm introduced in[1]for computing persistent homology for kernels, images and cokernels.
Python bindings are provided via PyO3.Install viapip install phimakerReferences[1]Cohen-Steiner, D., Edelsbrunner, H., Harer, J. and Morozov, D., 2009, January.
Persistent homology for kernels, images, and cokernels.
In Proceedings of the twentieth annual ACM-SIAM symposium on Discrete algorithms (pp. 1011-1020).
Society for Industrial and Applied Mathematics.
Package: phiml
ΦML🌐Homepage•📖Documentation•🔗API•▶ Videos•ExamplesΦMLprovides a unified math and neural network API for Jax, PyTorch, TensorFlow and NumPy.See theinstallation Instructionson how to compile the optional custom CUDA operations.fromjaximportnumpyasjnpimporttorchimporttensorflowastfimportnumpyasnpfromphimlimportmathmath.sin(1.)math.sin(jnp.asarray([1.]))math.sin(torch.tensor([1.]))math.sin(tf.constant([1.]))math.sin(np.asarray([1.]))CompatibilityWriting code that works with PyTorch, Jax, and TensorFlow makes it easier to share code with other people and collaborate.Your published research code will reach a broader audience.When you run into a bug / roadblock with one library, you can simply switch to another.ΦMLcan efficientlyconvert tensors between ML librarieson-the-fly, so you can even mix the different ecosystems.Fewer mistakesNo more data type troubles: ΦMLautomatically converts data typeswhere needed and lets you specify theFP precision globally or by context!No more reshaping troubles: ΦMLperformsreshaping under-the-hood.Isneighbor_idx.at[jnp.reshape(idx, (-1,))].set(jnp.reshape(cell_idx, (-1,) + cell_idx.shape[-2:]))correct?: ΦMLprovides a custom Tensor class that lets you writeeasy-to-read, more concise, more explicit, less error-prone code.Unique featuresn-dimensional operations: With ΦML, you can write code thatautomatically works in 1D, 2D and 3D, choosing the corresponding operations based on the input dimensions.Preconditioned linear solves: ΦMLcanbuild sparse matrices from your Python functionsand run linear solverswith preconditioners.Flexible neural network architectures:ΦMLprovides various configurable neural network architectures, from MLPs to U-Nets.Non-uniform tensors: ΦMLallows you tostack tensors of different sizes and keeps track of the resulting shapes.
Package: phink
PhinkPhinkprovides a convenient wrapper aroundSphinxto make project documentation a breeze.Super easy to setup and buildWrite your docs inMarkdownAutomaticallyrebuild and reloadduring developmentExtract docstrings forAPI documentationRead the fullPhink documentationto learn more.InstallationpipinstallphinkGetting StartedCreatea set of sample documentation files:cdyour_project_directoryphinkinitBuildand serve the HTML output:phinkserveEditthe files in thedoc/directory to your liking.
The documentation will be rebuilt and reloaded automatically in your browser.Commitand push to your Git repository.
Make sure you don't commit thedoc/_builddirectory.Publishto ReadTheDocs by following theRTD import documentation.
Package: phinka
Phinka tools for data processingLaunch bypython -m phinkawithpython-is-python3installed. Help is available with the--helpoption. Check out the package source ofphinka.__main__.pyfor more details.blwzcompressionA data compression tool. A BWT transform followed by partition on the following letter, with an offset LZW per partition and then another partition into three symbol rate groups with a final gzip.The BWT groups similar symbols. The partition keeps the LZW dictionary smaller. The second partition removes some common most significant bits from the LZW dictionary keys. The gzip then chooses a good coding for the final symbol stream based on remaining entropy.Some say it's an experiment in removing self-partition mutual information. So when I say the LZW dictionary is smaller, each one is. But there is now an LZW dictionary for each partition. Along with common lettering in each partition from the BWT this improves the LZW.Making the LZW index down from the last dictionary entry as zero, makes more zeros in the stream, and uncommon individual symbols have lower (more zeros) entry codes from the partition. The high bits of dictionary codes also "gtow" slower and have more zeros earlier in the partition, so these can be grouped as a secondary partitioning and effectively compressed by gzip.It is thus an experiment in information "fission" in the partion of information blocks to test the limits of the Landau information mass energy equivalence with the "evaporated radiation" information being mutual and hence not stored with the remaining information "mass" pattern.The "evapourate" is inferred at decompression as it has to have a necessary form to refuse the block to the required form is the hypothesis. Either it then further implies a fusion form exists or it doesn't.Thanks
The Management
Package: phippery
PhipperyA set of functions designed to query anxarray DataSetobject formatted to tie enrichment data with
their respective row & column (peptide & sample) annotations.Please see thedocumentationfor further details.Developer Install# using venv
python -m venv phippery_dev_env
source phippery_dev_env/bin/activate

# install
git clone https://github.com/matsengrp/phippery.git
(cd phippery && pip install -e ".[dev]")
Package: phipsair
phipsairA library and CLI for controlling Philips air purifiers via encrypted CoAP.Forked frombetaboon's aioairctlandpublished on PyPIfor use from Home Assistant.Device SupportCurrently tested with Philips AC2889/10 with firmware1.0.7and WiFi firmwareAWS_Philips_AIR@64.3.LicenseMIT