Saravanan666/pypi-org huggingface dataset:
Package: pulse
Scheduling WSGI Middleware============================This package acts as a WSGI scheduling engine, the middleware can be configuredto request web contexts at given intervals.  A user may then, within their application,configure the web contexts to perform scheduled tasks e.g. maintainence.The middleware for pulse is provided in pulse.middleware:PulseMiddleware and a pastefilter_app_factory is also provided.Configuration-----------------Pulse can be configured in two ways.  The Middleware takes keyword configurationarguments when constructed,or alternatively a config dictionaryallowing it to be configured by paste.If using pastes the pulse configuration options take the form of:pulse.config.$configoption.Currently only one configuration option is supported:* context - This is the base web context that tasks are sent to,tasks are dispatched to /$context/$action, unless action is an absolutepath.* mode - This specifies the multiprocessing mode, the default is 'theading',if running python2.6 the 'processing' option is also available.* guard - If True the pulse middleware prevents any pulse managed contextsfrom being accessed extenally, the default is False.Tasks------Each task defines at an interval and a web context, pulse will requestthe specified web context every interval seconds.Creating A Task~~~~~~~~~~~~~~~~A new task is created by specifying configuration options, each option takes the form:pulse.task.$taskname.$optionThe following task configuration options are available:* interval - The interval between task dispatching.* action - The action to dispatch to: see pulse.config.contextTasks can also be programmatically configured by passing a dictionary of<taskname, TaskObject> into  PulseMiddleware's task keyword argument.Example========To request the following context '/sessions/cleanup' every 5 minutes, the followingpaste configuration could be used:pulse.config.context = sessionspulse.task.cleanup.action = cleanuppulse.task.cleanup.interval = 300
Package: pulse2percept
pulse2percept: A Python-based simulation framework for bionic visionRetinal degenerative diseases such as retinitis pigmentosa and macular degeneration
result in profound visual impairment in more than 10 million people worldwide, and a variety
of sight restoration technologies are being developed to target these diseases.Retinal prostheses, now implanted in over 500 patients worldwide, electrically
stimulate surviving cells in order to evoke neuronal responses that are
interpreted by the brain as visual percepts (‘phosphenes’).
However, interactions between the device electronics and the retinal
neurophysiology result in perceptual distortions that may severely limit the
quality of the generated visual experience:(left: input stimulus, right: predicted percept)Built on the NumPy and SciPy stacks,pulse2perceptprovides an open-source
implementation of a number of computational models for state-of-the-artvisual prostheses(also known as the ‘bionic eye’),
such asArgusII,BVA24, andPRIMA, to provide insight into the
visual experience provided by these devices.Simulations such as the above are likely to be critical for providing realistic
estimates of prosthetic vision, thus providing regulatory bodies with guidance
into  what sort of visual tests are appropriate for evaluating prosthetic
performance, and improving current and future technology.If you use pulse2percept in a scholarly publication, please cite as:M Beyeler, GM Boynton, I Fine, A Rokem (2017). pulse2percept: A
Python-based simulation framework for bionic vision.Proceedings of the
16th Python in Science Conference (SciPy), p.81-88,
doi:10.25080/shinma-7f4c6e7-00c.InstallationOnce you have Python 3 and pip, thestable releaseof pulse2percept
can be installed with pip:pipinstallpulse2perceptThebleeding-edge versionof pulse2percept can be installed via:pipinstallgit+https://github.com/pulse2percept/pulse2perceptWhen installing the bleeding-edge version on Windows, note that you will have
to install your own C compiler first.
Detailed instructions for different platforms can be found in ourInstallation Guide.pulse2percept supports these Python versions:Python3.103.93.83.73.63.53.42.7p2p 0.8YesYesYesYesp2p 0.7YesYesYesYesp2p 0.6YesYesYesYesp2p 0.5YesYesYesp2p 0.4YesYesYesWhere to go from hereHave a look at some code examples from ourExample Gallery.Familiarize yourself withvisual implants,electrical stimuli,
and ourcomputational models.Check theFAQto see if your question has already been answered.Request features or report bugs in ourIssue Trackeron GitHub.
Package: pulse-actions
This project is Pulse listener that listens to Treeherder’s job cancellation and retrigger actions in ‘exchange/treeherder/v1/job-actions’ and acts upon them.What it doesworker.py listens toexchange/treeherder/v1/job-actionsin an infinite loop.When it sees a retrigger actions it makes a retrigger request in builapi self-serve using make_retrigger_request from mozci.When it sees a cancel action it makes a cancel request in buildapi self-serve using make_cancel_request from mozci.Currently everything is run with dry_run=True, so instead of doing requests the script just logs the requests it would have made.Current statusworker.py reads exchange and topic from run_time_config.json. It then uses HANDLERS_BY_EXCHANGE, a dictionary defined in config.py to decide what function it will use to handle incoming messages.Only buildbot topics (e.g. buildbot.#.# or buildbot.try.retrigger) in exchange/treeherder/v1/job-actions are supported for now.The functions to deal with TH’s job-actions are defined in the module treeherderactions.pyRequirementsmozcimozillapulseSee bug1168148for more details.
Package: pulseapi
pulseapiqeaml's asynchronous, straight-to-the-point API wrapper forWhatPulse's API. This wrapper includes interactions with both the online API and the client API. (more below)Exampleimportasyncioimportpulseapiasyncdefmain():wp=pulseapi.Client()user=awaitwp.get_user("QML")ifuserisnotNone:print(user.id,user.name)awaitwp.close()# always remember to close() your client !if__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())Web APIThe web API is avilable under [api.whatpulse.org][https://dev.whatpulse.org/],
and allows us to query WhatPule users, teams and pulses.Client APIThe client API is locally hosted by the WhatPulse client itself. It is
avilable under [localhost:3490][https://dev.whatpulse.org/], and allows us to
retreive the local client's account totals (online stats + local unpulsed),
local unpulsed stats and execute pulses.
Package: pulseapi-integration
Wrapper around RobotPulse version >= 1.6.0Latest PulseApi version: pip3 install pulse-api -ihttps://pip.rozum.com/simpleConnect to robot:from pulseapi_integration import *
            host = '127.0.0.0:8081'
            robot = NewRobotPulse(host)New function:set_reference_frame(robot_position)Set reference frame in the respect to the robot base,
further robot works relative it.robot.set_reference_frame(position([x,y,z],[r,p,w]))get_reference_frame()Return a dict with keys 'point' and 'rotation'robot.get_reference_frame()

            >>> {'point': {'x': 0.0, 'y': 0.0, 'z': 0.0},
                 'rotation': {'roll': 0.0, 'pitch': 0.0, 'yaw': 0.0}}- run_positions(
target_positions,
speed=None,
velocity=None,
acceleration=None,
tcp_max_velocity=None,
motion_type=MT_JOINT
)Starts the list of points recalculated relative to the reference coordinate system.target_positions = [
                position([x, y, z], [r, p, w]),
                position([x, y, z], [r, p, w])
            ]

            robot.run_positions(target_positions, speed=5)- set_position(
target_position,
speed=None,
velocity=None,
acceleration=None,
tcp_max_velocity=None,
motion_type=MT_JOINT
)Set the robot in the given position. If an reference frame is specified,
the robot moves relative to it.set_position(position([x, y, z], [r, p, w]), speed=5)untwist()Allows the robot exit from TWISTED state, after the rotors were manually rotated into ~correct placerobot.untwist()

            >>> <Response [503]>  (if all is OK)move_along_axis(axis, distance, velocity)Allows to move along one of each axis: 'x', 'y', 'z', 'roll', 'pitch', 'yaw'
at a given distance, at a specified speedaxis = 'x'
            distance = 0.1
            velocity = 1

            robot.move_along_axis(axis, distance, velocity)stop_by_digital_input(number_of_input)Stop the robot from the Digital Inputnumber_of_DI = 1
            robot.stop_by_digital_input(number_of_DI)- sensing(
axis,
detect_distance,
velocity,
retract_distance=0.01,
retract_velocity=0.3,
number_of_input=1
)Mini case.axis = 'x'
            detect_distance = 0.1
            velocity = 1

            robot.sensing(axis, detect_distance, velocity)get_position_rel_base()Returns the position relative to the base, even if an reference frame is specified.robot.get_position_rel_base()

            >>> {'point': {'x': -0.09161, 'y': -0.2911, 'z': 1.07063},
                 'rotation': {'roll': 3.08421, 'pitch': 0.72008, 'yaw':0.17362}}- go_home(
speed=None,
velocity=None,
acceleration=None,
tcp_max_velocity=None,
motion_type=MT_JOINT
)Return the robot on home positionpose[0, -90, 0, -90, -90, 0]robot.go_home()
Package: pulseapi-integration-calibrate
Rounding motion for robot Pulse by Rozum RoboticsRequirementsPython 3.6+pulse-api (pip3 install pulse-api -ihttps://pip.rozum.com/simple)pulseapi-integration (pip3 install pulseapi-integration)InstallationTo get the latest version, use the following command:pip install pulseapi-integration-calibrateGetting startedExamples use the latest version of the library.Quickstartfrompulseapi_integration_calibrate.planeimportcalibrate_reference_framefrompulseapi_integrationimport*host="192.168.1.33:8081"robot=NewRobotPulse(host)CALIBRATE_FRAME_3P_P1_ORIGIN=1M1=[x1,y1,z1]M2=[x2,y2,z2]M3=[x3,y3,z3]frame=calibrate_reference_frame([M1,M2,M3],method=CALIBRATE_FRAME_3P_P1_ORIGIN)robot.set_reference_frame(position(frame[0],frame[1]))New function:calibrate_reference_frame(points,method)Return calibrate framePoints definition:If method = CALIBRATE_FRAME_3P_P1_ORIGIN, then set points as in the imageMethods:CALIBRATE_FRAME_3P_P1_ON_X = 0  # Calibrate by 3 points: [X, X+, Y+] (p1 on X axis)CALIBRATE_FRAME_3P_P1_ORIGIN = 1  # Calibrate by 3 points: [Origin, X+, XY+] (p1 is origin)CALIBRATE_FRAME_6P = 2  # Calibrate by 6 pointsImportant!Now only CALIBRATE_FRAME_3P_P1_ORIGIN method works
Package: pulseapi-integration-rounding-motion
Rounding motion for robot Pulse by Rozum RoboticsRequirementsPython 3.6+pulse-api (pip3 install pulse-api -ihttps://pip.rozum.com/simple)pulseapi-integration (pip3 install pulseapi-integration)InstallationTo get the latest version, use the following command:pip install pulseapi-integration-rounding-motionGetting startedExamples use the latest version of the library.Quickstartfrommathimportpifrompulseapi_integrationimport*frompulseapi_integration_rounding_motion.rounding_motionimportrounding_motionhost="192.168.1.33:8081"robot=NewRobotPulse(host)SPEED=20x=-0.58y=-0.20z=0.155robot.set_reference_frame(position([x,y,z],[0,0,0]))targets=[[position([0.015,0.072,0.1],[pi,0,0])],[position([0.015,0.08,0.1],[pi,0,0],[output_action(1,SIG_HIGH)])],[position([0.015,0.09,0.1],[pi,0,0])],[position([0.015,0.1234,0.1],[pi,0,0]),[0.003]],[position([0.0277,0.1234,0.1],[pi,0,0]),[0.006]],[position([0.0277,0.135,0.1],[pi,0,0]),[0.003]],[position([0.1300,0.135,0.1],[pi,0,0]),[0.003]],[position([0.1300,0.1234,0.1],[pi,0,0]),[0.006]],[position([0.142,0.1234,0.1],[pi,0,0]),[0.006]],[position([0.1425,0.1345,0.1],[pi,0,0]),[0.003]],[position([0.2458,0.135,0.1],[pi,0,0]),[0.003]],[position([0.2458,0.1234,0.1],[pi,0,0]),[0.006]],[position([0.2585,0.1234,0.1],[pi,0,0]),[0.003]],[position([0.26,0.0266,0.1],[pi,0,0]),[0.003]],[position([0.2473,0.0266,0.1],[pi,0,0]),[0.006]],[position([0.2483,0.015,0.1],[pi,0,0]),[0.003]],[position([0.144,0.0137,0.1],[pi,0,0]),[0.003]],[position([0.144,0.0261,0.1],[pi,0,0]),[0.006]],[position([0.132,0.0261,0.1],[pi,0,0]),[0.006]],[position([0.132,0.0145,0.1],[pi,0,0]),[0.003]],[position([0.0287,0.015,0.1],[pi,0,0]),[0.003]],[position([0.0287,0.0266,0.1],[pi,0,0]),[0.006]],[position([0.016,0.0266,0.1],[pi,0,0]),[0.003]],[position([0.015,0.0296,0.1],[pi,0,0])],[position([0.015,0.04,0.1],[pi,0,0],[output_action(1,SIG_LOW)])],[position([0.015,0.08,0.1],[pi,0,0])]]home_pose=pose([0,-90,0,-90,-90,0])start_pose=pose([0,-90,90,-90,-90,0])robot.set_pose(home_pose,speed=20)robot.set_pose(start_pose,speed=20)robot.run_positions(rounding_motion(targets),speed=SPEED,motion_type=MT_LINEAR)robot.set_pose(start_pose,speed=20)New function:rounding_motion(targets)Return new_target_list with angle roundingTarget parameters:[position([x, y, z], [r, p, y], [action]), [rounding_radius_in_meters]]Important!A list of points must consist of three or more points.
There should be no rounding radius at the first and last point.
Package: pulseblaster
pulseblasterPython control code for Pulseblaster pulse generation hardware.This code creates an object (PBInd) that relies on theSpinCore spinapi.py wrapperto program individual pulseblaster pins independently.InstallationPrerequisitesSpin Core Driver:http://www.spincore.com/support/spinapi/Python Install> pip install pulseblasterUsageExamplespb_infinite_on_example.pypb_infinite_square_wave_example.py
Package: pulse-cookie
Pulse CookiePulse Cookie is a minimal web GUI that helps you connect to Pulse Connect Secure VPN servers that require Web-based multi-factor authentication (SSO/SAML). This script is intended to be used in conjunction with theOpenConnect VPN CLI clientusing the--protocol=ncoption.You might want to use this script if:your organization uses thePulse Connect Secure VPNwith multi-factor authentication (MFA) that requires you to enter credentials into a web GUIyou want to avoid using the official (proprietary) Pulse Connect Secure VPN client applicationUsageRun the provided script:get-pulse-cookie [-n <cookie-name>] <server-url>.The URL will open in a new Qt WebEngine browser window.Log on using your organization's SSO/SAML procedure. This should store the authentication cookie<cookie-name>(you need to know this name in advance!)When the cookie is stored, the Web UI closes and the value of the cookie is printed tostdout.You can then use the value of the cookie to connect to the server using OpenConnect:sudo openconnect --protocol nc -C <cookie-name>=<cookie-value> <server-url>ExampleIf my organization's Pulse Connect Secure VPN server ishttps://vpn.jh.edu/Linuxand the name of the authentication cookie it stores isDSID, I can runget-pulse-cookie -n DSID "https://vpn.jh.edu/Linux", which will print the cookie tostdout.InstallationExternal dependencyYou will need to installQt WebEngine, which provides the web GUI for the authentication workflow. On Arch Linux, this is provided by theqt6-webenginepackage.This scriptThis is a standard Python package that can be installed usingpip, perhaps directly from this repository aspip install <url-of-this-repo>.
Package: pulsedive
A low-level Python client for Pulsedive that aims provide an easy and idiomatic way to interact with the Pulsedive API.InstallationInstall thepulsedivepackage withpip:pip install pulsediveExample useSimple use-case:import pulsedive
# pud = pulsedive.Pulsedive('<API KEY>')
pud = pulsedive.Pulsedive()

# Getting a specific indicator
ind = pud.indicator(value='pulsedive.com')
pud.indicator.links(ind['iid'])

# Searching for indicators
pud.search('pulsedive', risk=['high', 'critical'], indicator_type=['ip'])

# Pulling from feeds or threats
pud.feed.links(1)
pud.threat.links(1)

# Searching for threats and feeds
pud.search.threat('Zeus', risk=['high', 'critical'])
pud.search.feed('Zeus')

# Exporting a search
pud.search.to_csv(filename="zues.csv", threat=['Zeus'], indicator_type=['ip'])

# Analyzing
# q = pud.analyze.encoded('Z29vZ2xlLmNvbQ==')
q = pud.analyze('google.com')
pud.analyze.results(q['qid'])Full documentation.
Package: pulse-eco
pulse-ecopulse.eco client for Python.Installationpulse-eco is avialiable onPyPI:python -m pip install pulse-ecoRequires Python version 3.8+.DocumentationOfficial pulse.eco REST API documentation can be found onpulse.eco/restapi.API Reference and User Guide for this package is available onGitHub Pages.Requesting data with a larger time rangeThe pulse.eco API limits the maximum time span of data you can get from one request.
For/dataRawit is one week, while for/avgDatait is one year.If the time range is larger than the maximum, the pulse.eco client creates multiple requests to the API and then joins the data together. Be aware of this.DevelopmentInstall Hatchhttps://hatch.pypa.io/latest/install/Create dev environmentActivate a Python 3.8 environment and run:hatch env create devInstall pre-commit hookshatch run dev:setupCreate .env fileSet auth credentials in.envfile:cp .env.example .envBefore committingThis command must pass without errors before committing:hatch run dev:checkDocsTo preview the docs locally, run:hatch run dev:docs-serve
Package: pulse-eco-ha
pulse-eco-haThis project is a customized version based on thePulse Ecoproject byMartin Kozle. The original project is a fantastic initiative, and I want to express my gratitude to Martin and the contributors for their hard work.Adjusted VersionThis repository serves as an adjusted version tailored for use with Home Assistant. Many thanks to the original developers for laying the groundwork. For detailed documentation, credits, and other information about the original Pulse Eco project, please refer to theoriginal repository.Feel free to explore the original project for a comprehensive understanding of its features and functionality.Installationpulse-eco-ha is avialiable onPyPI:python -m pip install pulse-eco-haRequires Python version 3.8+.DevelopmentInstall Hatchhttps://hatch.pypa.io/latest/install/Create dev environmentActivate a Python 3.8 environment and run:hatch env create devInstall pre-commit hookshatch run dev:setupCreate .env fileSet auth credentials in.envfile:cp .env.example .envBefore committingThis command must pass without errors before committing:hatch run dev:check
Package: pulse-executor
Pulse Program ExecutorInstallationRun the following command in a terminal:pip install pulse-executor -i https://pip.rozum.com/simpleUsageThis library must be used to control the execution of programs generated bypulse-program-templateand uploaded to the sandbox in Pulse Controlbox.In order to start/stop program execution (for example, from pulse-program-player),
the following steps must be performed:Connect to the sandbox on the controlboxActivate the virtual environment that is created for the program:source /home/sandbox/player/{{project_name}}/venv/bin/activateDefine address of Robot that will be used to execute Programexport ROBOT_ADDRESS="localhost:8081"Execute:pulse-executor-run {{program_name}}To stop the program and execute theafter_all()step the following command:source /home/sandbox/player/{{project_name}}/venv/bin/activate && pulse-executor-stop && deactivate
Package: pulsefire
PulsefirePulsefire is a modern and flexible Riot Games Python SDK. Built to be simple to use, highly configurable, and extendable. Objects and client responses are fully typed to speed coding efficiency. Support for community resources such as CDragon.This package is a modern rework ofPyot. By comparison, code clarity has greatly improved and speed performance is more than 10x faster.Get Started:DocumentationConsider starring this repository!
Package: pulse-logging
Pulse Logging - PythonInstallationInstalling package via pippipinstallpulse-loggingAlternatively you could install by running the setup script.pythonsetup.pyinstallUsageLog AppenderimportloggingfrompulseimportPulseHandlerfrompulseimportPulseFormatterpulse_handler=PulseHandler("http://host.com:9001/v2/events/app")pulse_handler.setFormatter(PulseFormatter())pulse_handler.setLevel(logging.WARNING)logger=logging.getLogger(__name__)logger.setLevel(logging.WARNING)logger.addHandler(pulse_handler)try:raiseValueErrorexceptValueErrorase:logger.exception("Bad stuff")Logging Configuration File Examplelogging.inifile contents[loggers]
keys=root

[handlers]
keys=pulse_handler

[formatters]
keys=pulse_formatter

[logger_root]
level=WARNING
handlers=pulse_handler

[handler_pulse_handler]
class=handlers.PulseHandler
level=WARNING
formatter=pulse_formatter
args=("http://host.com:9001/v2/events/app")

[formatter_pulse_formatter]
class=pulse.PulseFormattermain.pyfile contentsimportloggingfromlogging.configimportfileConfigfileConfig("logging.ini")logger=logging.getLogger()try:raiseValueErrorexceptValueErrorase:logger.exception("Bad stuff")Writing MetricsfrompulseimportMetricWriterwriter=MetricWriter("http://host.com:9001/v1/metrics","kudu_table_name")writer.gauge("key1","r2",0.952)writer.close()
Package: pulsemeeter
PulsemeeterA frontend to ease the use of pulseaudio's routing capabilities, mimicking voicemeeter's workflowWiki: [Installation] [How to use](This screenshot was taken while using ant dracula gtk theme, it will use your theme)Table of ContentsFeaturesInstallationDependenciesArchPypi installManual/Git installAuto StartDiscord ServerFeaturesCreate virtual inputs and outputsRoute audio from one device to anotherVolume controlEqualizer for hardware and virtual outputsRnnoise noise reduction (same algorithm asnoisetorch) for hardware inputsInstallationDependenciesVisit thedependenciessection in the wiki to get in depth information on how to install these for your specific system.piplibappindicator3gobject-introspection-1.0libpulsePython DependenciesPip will automaticly install these dependenciespygobjectpulsectlsetuptoolsOptional DependenciesThese dependencies are optional and will enable new features in the applicationnoise-suppression-for-voicefor noise reductionswh-pluginsfor equalizers (apt/dnf/pacman packages available)pulse-vumeterfor volume level informationAny distroSingle userWhen installing for a single user (without sudo) you need to add ~/.local/bin to your path,this sectionwill show you how to do itpipinstallpulsemeeterFor all userssudopipinstallpulsemeeterArch (AUR)Two packages are available in the AUR:pulsemeeterandpulsemeeter-git.Build from source:Single userWhen installing for a single user (without sudo) you need to add ~/.local/bin to your path,this sectionwill show you how to do itgitclonehttps://github.com/theRealCarneiro/pulsemeeter.gitcdpulsemeeter
pipinstall.For all usersgitclonehttps://github.com/theRealCarneiro/pulsemeeter.gitcdpulsemeeter
sudopipinstall.UninstallsudopipuninstallpulsemeeterAdd local bin to PATHWhen installing for a single user, you to need to have $HOME/.local/bin in your PATH, to do this, you'll have to add this line to your ~/.profile (or .zprofile if you use zsh as your login shell) fileexportPATH="$HOME/.local/bin:$PATH"Start devices on startupAll connections and devices will be restored with the commandpulsemeeter initDiscord ServerIf you want to get updates about new features, patches or leave some sugestions, join ourdiscord serverSpecial thanks toxiph.org/Mozilla'sexcellentRNNoise.@werman'snoise-suppression-for-voice@swh'sswh-plugins
Package: pulse-pal
Pulse Pal for Python 3Unofficial port of Pulse Pal for Python 3Free software: MIT licenseDocumentation:https://pulse-pal.readthedocs.io.FeaturesPython 3 compatibilityEasy install through pipCommand line interface (In progress)Limited supportInstallationpipinstallpulse_palUsageSee help:pulse_pal--helpSet phase 1 voltage to 5:pulse_pal--doset--portCOM2--param_namephase1Voltage--param_value5Trigger channel 1:pulse_pal--dotrigger--channel1Test your Pulse Pal connectionEasy (from console):pulse_pal--dotestLow-level (from python):deftest_pulse_pal(serialPortName='COM10'):importserial,structOpMenuByte=213serialObject=serial.Serial(serialPortName,115200,timeout=1)handshakeByteString=struct.pack('BB',OpMenuByte,72)serialObject.write(handshakeByteString)Response=serialObject.read(5)print(len(Response))test_pulse_pal('COM10')History0.1.0 (2020-10-08)First release on PyPI.