Saravanan666/pypi-org huggingface dataset:
Package: pcdsdevices
PCDS DevicesCollection of Ophyd Device subclasses for IOCs unique to PCDSMotivation•InstallationMotivationOphyd presents a uniform set of abstractions for EPICS devices. Many devices at
the LCLS are covered by ophyd-provided classes such asEpicsMotorandAreaDetector, but there are also many more custom and unique devices.This repository:Defines unique device classes required by the LCLS, referenced by happi
and ourdevice_configdatabase.Offers LCLS-tailored solutions for functionality not provided by ophydProvides essential tools to aid in the creation of new devices for specific
applicationsActs as a proving ground for features that may eventually be destined for
ophyd... and more!Much of the core re-used functionality can be found inpcdsdevices.device,pcdsdevices.interface,pcdsdevices.pseudopos,
andpcdsdevices.signal.InstallationInstall the most recent tagged build:$condainstall-cconda-forgepcdsdevicesInstall the most recent development build:$condainstallpcdsdevices-cpcds-dev-clightsource2-tag-cconda-forgeOr alternatively:# Install the tagged version for the dependencies$condainstall-cconda-forgepcdsdevices# Clone the master branch:$gitclonehttps://github.com/pcdshub/pcdsdevices
$cdpcdsdevices# And perform a development install:$python-mpipinstall-e.TestingTesting from psbuild-rhel7Use the pcds conda environment:$source/cds/group/pcds/pyps/conda/pcds_condaTesting without PCDS serversEnsure you have all of the development requirements available:$pipinstall-rdev-requirements.txtGeneral testing steps$gitclonehttps://github.com/pcdshub/pcdsdevices
$cdpcdsdevices# Switch to a branch that reflects what you're working on:$gitcheckout-bmy_feature_branch_name# Make your changes to files# Install pre-commit to allow for style checks before committing$pre-commitinstall# Run the test suite$pythonrun_tests.py-vIf all is well, commit and push your changes.If pre-commit complains about an issue, you will need to resolve it and try
again.$gitcommit-a-m"ENH: my new feature"$gitremoteaddmy_remotegit@github.com:my_username/pcdsdevices
$gitpush-umy_remotemy_feature_branch_name
Package: pcdviz
pcdvizpcdviz is a tool help to visuliaza pointcloud, labels and user-defined shapes. In addition, it also provides tool functions to generate charts and animations, etc. It's inspired by open3d.Installpip3 install pcdvizQuick startYou can use it in many scenarios, here are some examples.Display point cloudIf you only need to display the point cloud, specify the point cloud path and run the following command.pcdviz --pcd=data/kitti/training/velodyne/000003.bin --example--example means example mode, you can remove it in normal modeDisplay multi point cloudIf you want to display multiple point clouds at the same time, such as the results of ground detection, or the results of point cloud registration.From here on we start to use the configuration file method because it is more flexible.pcdviz --cfg=config/multi_pointcloud.yaml --example--example means example mode, you can remove it in normal modeDisplay point cloud and labelsIn the field of deep learning, we want to visualize detection results and compare them with ground truth.pcdviz --cfg=config/frame_visualize.yaml --example--example means example mode, you can remove it in normal modeDisplay datasetIf you want to view the whole dataset like KITTI, Nuscenes, Waymo. The first frame is initially displayed, and you can switch to the next frame by pressing the buttonN.pcdviz --cfg=config/dataset_visualize.yaml --example--example means example mode, you can remove it in normal modeKITTIKITTI directory structure is as followskitti
└── training
    ├── calib
    │   ├── 000003.txt
    │   ├── 000004.txt
    │   └── 000005.txt
    ├── label_2
    │   ├── 000003.txt
    │   ├── 000004.txt
    │   └── 000005.txt
    └── velodyne
        ├── 000003.bin
        ├── 000004.bin
        └── 000005.binPlandatasetCustomize the frame order, which is useful when checking data qualityAutomatically filter based on conditions, for example, only display frames where the number of pedestrians is greater than 3statisticsGenerate statistical charts for datasets
Package: pce
1. pceThis repository includes an implementation of the Polynomial Chaos Expansion method.1.1 Brief descriptionMore comprehensive tools on the same subject are available (e.g. Chaospy), this repository is born during a self-learning activity of the authors.At the moment, one can use this module to study the uncertainty propagation of a model with uncertain inputs. The following aspects are implemented:each uncertain variable can be associated to a uniform or normal distributionevaluation of the coefficient with spectral projection methodglobal sensitivity analysis with Sobol' indices1.2 How can I use it? How can I cite this module?If you use this module you can consider to cite the following paperdirect link.Giaccone, L.; Lazzeroni, P.; Repetto, M. Uncertainty Quantification in Energy Management Procedures. Electronics 2020, 9, 1471.https://doi.org/10.3390/electronics9091471In this paper thepcemodule has been used successfully to estimate uncertainties. You can also find all codes associated to the paper herehttps://github.com/giaccone/cogen_eval.1.3 RequirementsThe project is developed using Python 3. The installer requires a Python version>= 3.6.Other requirements (I tend to use always the latest version of the following libraries):numpyscipymatplotlibjoblib2. InstallationThis project is deployed through the Python Package Index, therefore, it can be easily obtained by running the following command:pipinstallpce
Package: pcf8574
PCF8574This is a Python library for use with thePCF8574I2C IO expander chip. It abstracts the 8 bit IO port as a Python list, and allows the read/writing of individual pins or the whole port at once.InstallationThe library depends on thesmbus-cffipackage. You may need toapt-get install libffi-devif you're on a debian based system. Otherwise, simply:pip install pcf8574UsageIn[1]:frompcf8574importPCF8574In[2]:i2c_port_num=1In[3]:pcf_address=0x20In[4]:pcf=PCF8574(i2c_port_num,pcf_address)In[5]:pcf.portOut[5]:[True,True,True,True,True,True,True,True]In[6]:pcf.port[0]=FalseIn[7]:pcf.portOut[7]:[False,True,True,True,True,True,True,True]In[8]:pcf.port=[True,False,True,False,True,False,True,False]In[9]:pcf.portOut[9]:[True,False,True,False,True,False,True,False]In[10]:pcf.port[7]Out[10]:FalseIn[11]:pcf.port[6]Out[11]:True
Package: pcf8574-io
Python driver for PCF8574 8bit IO Expander boardDeveloped for the Raspberry Pi, requires python-smbus2 package to access the I2C bus.Tested on raspberry pi 3b plus with two PCF8574 boards.First install smbus2 using:pip3 install smbus2then install the actual package using:pip3 install pcf8574-ioUsage Example:importpcf8574_io# You can use up to 8 PCF8574 boards# the board will start in input mode# the pins are HIGH in input modep1=pcf8574_io.PCF(0x20)# You can use multiple boards with different addresses#p2 = pcf8574_io.PCF(0x21)# p0 to p7 are the pins name# INPUT or OUTPUT is the modep1.pin_mode("p0","INPUT")print(p1.read("p0"))# You can write and read the output pins# use HIGH or LOW to set the pin, HIGH is +3.3v LOW is 0vp1.pin_mode("p7","OUTPUT")p1.write("p7","LOW")print(p1.read("p7"))# Additional you can do the followingp1.set_i2cBus(1)p1.get_i2cBus()print(p1.get_pin_mode("p7"))# returns string OUTPUT, INPUTprint(p1.is_pin_output("p7"))# returns boolean True, Falseprint(p1.get_all_mode())# returns list of all pins ["OUTPUT","INPUT",...etc]Note: the board has only 25mA output current so if you want to control some relay modules,
that need more than 25mA use more than one pin to control each relay.The board been used:#Linkhttps://pypi.org/project/pcf8574-io/
Package: pcf8574-library
www.mischianti.orgPCF8574 PCF8574AP digital input and output expander with i2c bus.Changelog18/04/2023: v0.0.2 Add static declaration for Px constants inside class.14/04/2023: v0.0.1 Initial commit of stable version.I try to simplify the use of this IC, with a minimal set of operations.Tested with esp8266, esp32, Arduino, Arduino SAMD (Nano 33 IoT, MKR etc.), STM32 and rp2040 (Raspberry Pi Pico and similar)PCF8574P address map 0x20-0x27
PCF8574AP address map 0x38-0x3fInstallationTo install the library execute the following command:pipinstallpcf8574-libraryConstructor:Pass the address of I2CfromPCF8574importPCF8574pcf=PCF8574(0x38,sda=21,scl=22)To use interrupt you must pass the interrupt pin and the function to call when interrupt raised from PCF8574fromPCF8574importPCF8574defkeyPressedOnPCF8574(pin):# Interrupt called (No Serial no read no wire in this function, and DEBUG disabled on PCF library)keyPressed=Truepcf=PCF8574(0x38,sda=21,scl=22,interrupt_callback=keyPressedOnPCF8574,interrupt_pin=18)You must set input/output mode:frommachineimportPinfromPCF8574importPCF8574pcf.Pin(PCF8574.P0,Pin.IN)pcf.Pin(PCF8574.P1,Pin.IN,Pin.PULL_UP)pcf.Pin(PCF8574.P2,Pin.IN)pcf.Pin(PCF8574.P3,Pin.IN)pcf.Pin(PCF8574.P7,Pin.OUT)pcf.Pin(PCF8574.P6,Pin.OUT,1)pcf.Pin(PCF8574.P5,Pin.OUT,0)pcf.Pin(PCF8574.P4,Pin.OUT,0)then IC as you can see in the image has 8 digital input/output ports:To read all analog input in one trasmission you can do (even if I use a 10millis debounce time to prevent too much read from i2c):digital_input=pcf.digital_read_all()print(digital_input.p0)print(digital_input.p1)print(digital_input.p2)print(digital_input.p3)print(digital_input.p4)print(digital_input.p5)print(digital_input.p6)print(digital_input.p7)array_input=pcf.digital_read_all_array()print(array_input)byte_input=pcf.digital_read_all_byte()print(bin(byte_input))If you want to read a single input:digital_input=pcf.digital_read(PCF8574.P1)print(digital_input)If you want to write a digital value:pcf.digital_write(PCF8574.P1,1)You can also use an interrupt pin:
You must initialize the pin and the function to call when interrupt raised from PCF8574defcallback(pin):now=utime.ticks_ms()globalcountcount+=1print("Time:{}{}".format(now,count))pcf.attach_interrupt(18,callback)For the examples I use this wire schema on breadboard:
Package: pcf8575
PCF8575Python library for the PCF8575 I2C IO expander. It abstracts the 16 bit IO port as a Python list, and allows the read/writing of individual pins or the whole port at once.
This is a modified version of thePCF8574library to support the extra 8 ports.InstallationThe library depends on thesmbus-cffipackage. You may need toapt-get install libffi-devif you're on a debian based system. Otherwise, simply:pip install pcf8575UsageIn[1]:frompcf8575importPCF8575In[2]:i2c_port_num=1In[3]:pcf_address=0x20In[4]:pcf=PCF8575(i2c_port_num,pcf_address)In[5]:pcf.portOut[5]:[True,True,True,True,True,True,True,True]In[6]:pcf.port[0]=FalseIn[7]:pcf.portOut[7]:[False,True,True,True,True,True,True,True]In[8]:pcf.port=[True,False,True,False,True,False,True,False]In[9]:pcf.portOut[9]:[True,False,True,False,True,False,True,False]In[10]:pcf.port[7]Out[10]:FalseIn[11]:pcf.port[6]Out[11]:True
Package: pcf8591-library
www.mischianti.orgMicroPython Library to use i2c analog IC with arduino and esp8266. Can read analog value and write analog value with only 2 wire (perfect for ESP-01).Changelog07/11/2023: v0.0.3 Fix on read when write is active and running#Forum16/05/2023: v0.0.2 Minor fix on read and write#Forum18/04/2023: v0.0.1 Initial commit of stable version.I try to simplify the use of this IC, with a minimal set of operation.InstallationTo install the library execute the following command:pipinstallpcf8591-libraryConstructor:Pass the address of I2CfromPCF8591importPCF8591frommachineimportI2C,Pin# Initialize the I2C busi2c=I2C(0,scl=Pin(22),sda=Pin(21))# Initialize the PCF8591pcf8591=PCF8591(0x48,i2c)ifpcf8591.begin():print("PCF8591 found")orfromPCF8591importPCF8591pcf8591=PCF8591(0x48,sda=21,scl=22)ifpcf8591.begin():print("PCF8591 found")To read all analog input in one# Main loopwhileTrue:# Read all analog input channelsain0,ain1,ain2,ain3=pcf8591.analog_read_all()# Print the resultsprint("AIN0:",ain0,"AIN1:",ain1,"AIN2:",ain2,"AIN3:",ain3)# Wait for 1 secondutime.sleep(1)If you want to read a single input:print("AIN0 ",pcf8591.analog_read(PCF8591.AIN0))print("AIN1 ",pcf8591.analog_read(PCF8591.AIN1))print("AIN2 ",pcf8591.analog_read(PCF8591.AIN2))print("AIN3 ",pcf8591.analog_read(PCF8591.AIN3))If you want to write a value:pcf8591.analog_write(255)utime.sleep(1)pcf8591.analog_write(128)utime.sleep(1)pcf8591.analog_write(0)You can also read and write voltagepcf8591.voltage_write(3.3)utime.sleep(1)pcf8591.voltage_write(1.65)utime.sleep(1)pcf8591.voltage_write(0)orprint("AIN0 ",pcf8591.voltage_read(PCF8591.AIN0))print("AIN1 ",pcf8591.voltage_read(PCF8591.AIN1))print("AIN2 ",pcf8591.voltage_read(PCF8591.AIN2))print("AIN3 ",pcf8591.voltage_read(PCF8591.AIN3))For the examples I use this wire schema on breadboard:
Package: pcfg
pcfgDescriptionImplement thegenerate()method for NLTK'sprobabilistic context-free grammarto probabilistically generate valid sentences. (NLTK stands for Natural Language Toolkit.)InstallationpipinstallpcfgDocumentationRead the latest documentation forpcfghere.Example usageAPCFGcan be initialized in the same way that an NLTKprobabilistic context-free grammaris initialized:>>>frompcfgimportPCFG>>>grammar=PCFG.fromstring("""S -> Subject Action [1.0]Subject -> "a cow" [0.7] | "some guy" [0.1] | "the woman" [0.2]Action -> "eats lunch" [0.5] | "was here" [0.5]""")To generate sentences, simply use thegenerate()method:>>>forsentenceingrammar.generate(3):...print(sentence)The output could be the following:the woman eats lunch
the woman was here
a cow was hereOf course, your output may be different because the sentences are generated probabilistically.LicenseMIT
Package: pcfl
pcflMuseScore4에서 FL Studio에 피아노 페달(CC64)이 포함된 미디파일을 임포트할 때, 페달 사이의 간격을 벌려 정상적으로 임포트를 하게 하는
전처리 라이브러리 및 프로그램 입니다.페달이 연속으로 붙어있는 미디파일을 FL Studio에 임포트 하면 그 두 개의 페달이 하나로 합쳐저 불협화음을 발생시킵니다.PCFL는 이를 막기 위해 두 페달 사이의 간격을 3 ticks 정도 벌립니다.이전 구현체에서는 Musescore3까지만 대응할 수 있고 Musescore4 부터 대응이 불가능 하여 새 구현체를 구현하게 되었습니다.Installation (As User)$pipinstallpcflInstallation (As Dev)$gitclonehttps://github.com/skywinz/pcfl.git
$poetryinstallUsageAs CLI$python-mpcfl-finput.mid-ooutput.midAs Libraryimportmidofrompcflimportpcfl,pcfl_by_file# 파일을 사용할 경우output_filepath=pcfl_by_file("input.mid","output.mid")# mido.MidiFile을 사용할 경우midi=mido.MidiFile("input.mid")pcfl(midi)ThirdPartymido이전 legacy 버전에서 사용했던music21대신 mido를 사용했습니다.기본 midi R/W 말고도 많은 분석 툴까지 포함되어 상당히 무거운 music21과는 달리 mido는 단순히 midi 데이터를 R/W하는 데만 집중되어 있어 훨씬 가볍습니다.
Package: pcg-gazebo
Thepcg_gazeboPython package is an Open Source Project extending
the simulation capabilities of the robotics simulatorGazebofor automation and scripting of
Gazebo simulations.Visit thedocumentation
pagefor more
information.Purpose of the projectThis software is a research prototype.The software is not ready for production use. It has neither been
developed nor tested for a specific use case. However, the license
conditions of the applicable Open Source licenses allow you to adapt the
software to your needs. Before using it in a safety relevant setting,
make sure that the software fulfills your requirements and adjust it
according to any applicable safety standards (e.g. ISO 26262).InstallationUsingpipYou can install thepcg-gazebopackage usingpipas followspipinstallpcg-gazeboyou still might need to install some extra dependencies that cannot be
handled bypipassudo apt install libspatialindex-dev pybind11-dev libgeos-devGive some issues with the packagertreeonpip, it would also be
recommended to install it fromapt. Please installpython-rtreeif you are using Python 2.x orpython3-rtreefor Python 3.x.The default installation does not includerospydependencies that
are not available as apippackage. They have to be installed
separately for certain submodules to work, such aspcg_gazebo.task_manager.From sourceFirst install some non-Python dependenciessudo apt install libspatialindex-dev pybind11-dev libgeos-dev libfcl-dev liboctomap-devThen clone the repository and install it usingpipgit clone https://github.com/boschresearch/pcg_gazebo.git
cd pcg_gazebo
pip install .Using the package with ROS and GazeboCertain functionalities as the Gazebo proxy, task manager and model
spawning are only available ifrospyis installed. The lack of
Gazebo androspyonly restricts functionalities related to
interaction with the simulation in runtime and the creation of
ROS-related tasks.At the moment, ROS 2 isnotsupported for this purpose. To install
ROSmelodic, follow theseinstallation
instructionsand
installros-melodic-desktop-fullor separately install Gazebo and
its ROS bindings assudo apt install gazebo9 libgazebo9-dev ros-melodic-gazebo-*LicenseProcedural Generation for Gazebo is open-sourced under the Apache-2.0
license. See theLICENSEfile for details.For a list of other open source components included in Procedural
Generation for Gazebo package, see the file3rd-party-licenses.
Package: pchaa
# Power Search and Autocomplete# Why PCHAA?
- FOSS
- Not Electron based
- Works with your existing terminal & shell
- Customize text search algorithms as per your need# Demo![pchaa](https://user-images.githubusercontent.com/6279035/177213296-1e8af323-fd62-4f1b-a8c5-89e2e99d6701.gif)# Project GoalsThe goal of the project is to create a beautiful experience for Terminals users. All of the alternative versions for such projects were ElectronJS based, I needed something minimal with easy to update custom search algorithmsInstall dependancies` pip installpython-libxdoprompt_toolkit `Run` python main.py `## Next steps:Clean and filter the bash history and integrate Naive Bayes algorithm for next command prediction
Package: pchain
Process ChainCurrent programming uses pre-designed logic, which consist of multiple processes that are combined in a carefully designed sequence to perform specific functions. In a logical sequence, although there are branches or choices, these branches and choices are also pre-designed. This programming method is completely under the control of the designer, reflecting the designer's thinking and wisdom. Designers have a complete understanding of the processing  procedure of information and data, the program can complete the processing of information and data according to the designer's way of thinking, the designer's wisdom makes the program realized in this way efficient. However, this method lacks flexibility, adaptability and creativity. In the process of data processing, the relationship between data and data, the relationship between data and process is transparent. It is not easy to get the relationship between data and data, data and process. It is also not easy to adjust the processing logic based on the desired result. When the expected result changes, the designer needs to adjust the logic of data processing, design new logic, and develop new programs.The current development of programming technology focuses on programming languages (the rise of various programming languages, constantly updated, and constantly introducing new versions), improving performance, simplifying grammar, reducing or eliminating programming errors, and simplifying the concurrent process. But in terms of programming, it is still based on traditional logic sequences, without paying too much attention to flexibility, adaptability and creativity.The process chain is a new programming technology aim to increase the flexibility and buildability of the program. The process chain introduces the management of data and processes, adds definitions of data management types, descriptions of process input data types, and output data types so that process chains can be built based on input data types and output data object types. The scheduling of data objects is the core of the process chain. During execution, the process chain automatically matches or controls the data objects based on the it's type, and the process processes the data until there are no new data or processes. The process can be adjusted according to the rules to obtain the desired output. The process chain provides the basis for rule object management, but the rules themselves are not within the scope of the process chain, at least not currently.The process chain records the relationship between data objects and the relationship between data and processes. These relationships can be used as the basis for future data object processing.More detail
Package: pci
pci@Version: 0.2.3Introduction[1] 评估PCI group;
[2] 地理化呈现评估结果
[3] 提供测距/自定义矢量图层等基本功能Package Installpython_requires=">=3.5"Import File Format导入文件要求：
    [1] csv格式文件;
    [2] 至少包括以下几个列名的列：'enodebid','cellid','pci', 'longitude', 'latitude', 'city', 'cellname'.

其他要求：
    [1] 经纬度：请遵循经纬度的有效范围输入有效值，但程序中暂时没有加以限制;
    [2] PCI组：请遵循PCI组号的有效范围0至167的整数，但程序中暂时没有加以限制.Example Usage以下提供两种用法.. code:: pythonfrom pci import *
pci() / main() / init().. code:: pythonimport pci
pci.pci() / pci.main() / pci.init()Help Document.. code:: pythonimport pci
help(pci)LICENSESee LICENSE.txt file.
Package: pc-initializer
InititializerThis is a command-line tool that helps you to setup your os by using configoration files which are either stored locally or on Github
It supports the following subcommandsi3: Create your i3 configenv: Create your env filesdevtools: Download your devtools, e.g. Java or CMakeinstall: Install packages from many different package managers, e.g. apt, pacman, pip, snap or flatpakvenv: Create a python virtual environment