Saravanan666/pypi-org huggingface dataset:
Package: blinker-alt
[![PyPI](https://img.shields.io/pypi/d/v/blinker-alt.svg)](https://pypi.python.org/pypi/blinker-alt)
[![PyPI](https://img.shields.io/pypi/d/l/blinker-alt.svg)](https://pypi.python.org/pypi/blinker-alt)
[![PyPI](https://img.shields.io/pypi/d/pyversions/blinker-alt.svg)](https://pypi.python.org/pypi/blinker-alt)Note: This is a fork of [jek/blinker](https://github.com/jek/blinker)!There didn’t seem to be any activity anymore on the original repo, and the latest changes on
master weren’t officially released. So I forked the repo, merged a couple of important pull
requests, and released a new version to PyPI under the name
[blinker-alt](https://pypi.python.org/pypi/blinker-alt).# BlinkerBlinker provides a fast dispatching system that allows any number of
interested parties to subscribe to events, or “signals”.Signal receivers can subscribe to specific senders or receive signals
sent by any sender.>>> from blinker import signal
>>> started = signal('round-started')
>>> def each(round):
...     print "Round %s!" % round
...
>>> started.connect(each)>>> def round_two(round):
...     print "This is round two."
...
>>> started.connect(round_two, sender=2)>>> for round in range(1, 4):
...     started.send(round)
...
Round 1!
Round 2!
This is round two.
Round 3!See the [Blinker documentation](https://pythonhosted.org/blinker/) for more information.## RequirementsBlinker requires Python 2.4 or higher, Python 3.0 or higher, or Jython 2.5 or higher.## Changelog Summary1.5 (October 15, 2017)Lower baseline cost of no-op signal send() & optional -O speedup.Verified Python 3.6 support (no changes needed).Verified Python 3.5 support (no changes needed).1.4 (July 23, 2015)Verified Python 3.4 support (no changes needed)Additional bookkeeping cleanup for non-ANY connections at disconnect
time.Added Signal._cleanup_bookeeping() to prune stale bookkeeping on
demand1.3 (July 3, 2013)The global signal stash behind blinker.signal() is now backed by a
regular name-to-Signal dictionary. Previously, weak references were
held in the mapping and ephemeral usage in code likesignal('foo').connect(...)could have surprising program behavior
depending on import order of modules.blinker.Namespace is now built on a regular dict. Use
blinker.WeakNamespace for the older, weak-referencing behavior.Signal.connect(‘text-sender’) uses an alternate hashing strategy to
avoid sharp edges in text identity.1.2 (October 26, 2011)Added Signal.receiver_connected and Signal.receiver_disconnected
per-Signal signals.Deprecated the global ‘receiver_connected’ signal.Verified Python 3.2 support (no changes needed!)1.1 (July 21, 2010)Added@signal.connect_via(sender)decoratorAddedsignal.connected_toshorthand name for thetemporarily_connected_tocontext manager.1.0 (March 28, 2010)Python 3.x compatibility0.9 (February 26, 2010)Sphinx docs, project websiteAddedwith a_signal.temporarily_connected_to(receiver): ...support
Package: blinker-async
[![Build Status](https://travis-ci.org/jek/blinker.svg?branch=master)](https://travis-ci.org/jek/blinker)# BlinkerBlinker provides a fast dispatching system that allows any number of
interested parties to subscribe to events, or “signals”.Signal receivers can subscribe to specific senders or receive signals
sent by any sender.>>> from blinker import signal
>>> started = signal('round-started')
>>> def each(round):
...     print "Round %s!" % round
...
>>> started.connect(each)>>> def round_two(round):
...     print "This is round two."
...
>>> started.connect(round_two, sender=2)>>> for round in range(1, 4):
...     started.send(round)
...
Round 1!
Round 2!
This is round two.
Round 3!See the [Blinker documentation](https://pythonhosted.org/blinker/) for more information.## RequirementsBlinker requires Python 2.4 or higher, Python 3.0 or higher, or Jython 2.5 or higher.## Changelog Summary1.3 (July 3, 2013)The global signal stash behind blinker.signal() is now backed by a
regular name-to-Signal dictionary. Previously, weak references were
held in the mapping and ephemeral usage in code likesignal('foo').connect(...)could have surprising program behavior
depending on import order of modules.blinker.Namespace is now built on a regular dict. Use
blinker.WeakNamespace for the older, weak-referencing behavior.Signal.connect(‘text-sender’) uses an alternate hashing strategy to
avoid sharp edges in text identity.1.2 (October 26, 2011)Added Signal.receiver_connected and Signal.receiver_disconnected
per-Signal signals.Deprecated the global ‘receiver_connected’ signal.Verified Python 3.2 support (no changes needed!)1.1 (July 21, 2010)Added@signal.connect_via(sender)decoratorAddedsignal.connected_toshorthand name for thetemporarily_connected_tocontext manager.1.0 (March 28, 2010)Python 3.x compatibility0.9 (February 26, 2010)Sphinx docs, project websiteAddedwith a_signal.temporarily_connected_to(receiver): ...support
Package: blinkistconfig
blinkist-config-pythonThe package simplifies accessing different configuration stores. The current supported stores are:
ENV - read from the application's environment variable
SSM - read from the AWS SSM Parameter StoreUsageENVimportblinkistconfig.Config# Setup the Config to use the ENV as config storeconfig=blinkistconfig.Config(env="development",app_name="my_nice_app",adapter_type="ENV")my_config_value=config.get("some/folder/config")# This is being translated to ENV["SOME_FOLDER_CONFIG"]SSMFor SSM this tool simulates namespace/directory functionality with each application
having its own. By default requesting a parameter myparam1 within the application
called my_nice_app will query the SSM parameter store for /application/my_nice_app/myparam1.This harmonizes nicely with the ability of the SSM param store to do a prefix search.
The /application/my_nice_app prefix is the default "private" scope.importblinkistconfig.Config# setup the Config to use the SSM as config storeconfig=blinkistconfig.Config(env="development",adapter_type="SSM",app_name="my_nice_app")my_config_value=config.get("some/folder/config")# This will try to get a parameter from SSM at "/application/my_nice_app/some/folder/config"It is also possible to also have other scopes, possibly shared between the applications.
For examplemy_config_value = config.get("another/config", scope="global")

# This will replace `my_nice_app` with `global` and try to resolve "/application/global/another/config"DevelopmentTo install development requirementspipinstall-rrequirements/dev.txt
pipinstall-e.To run testsAWS_DEFAULT_REGION="us-east-1"pytest--specContributingBug reports and pull requests are welcome on GitHub athttps://github.com/blinkist/blinkist-config-python.LicenseThe package is available as open source under the terms of theMIT License.
Package: blinkparse
BlinkParseA python library for parsing command line argumentsInstallationpip install blinkparseUsageParser(args=[], commands=[], description='', commandRequired=False, noOperands=False)Returns ablinkparse.Argumentsobjectargsis a list ofblinkparse.Argumentobjectscommandsis a list ofblinkparse.Commandobjectsdescriptionis a description to show at the top of the help pagecommandRequiredis whether the program requires a command to be passed innoOperandsis whether the program is allowed to take operandsparse(inputArgs=None)Returns ablinkparse.ArgumentsobjectinputArgsis a list of the arguments to parse. This defaults tosys.argv[1:]Argument(name, shortName=None, takesValue=False, required=False, description=None)nameis the argument name used in the long syntax (--myArg,--myArg=myValue)shortNameis the argument name used in the long syntax (-a,-a myValue)takesValueis whether the argument takes a input (see above)requiredmakes the blinkparse raise an error if the argument isn't passed indescriptionis a description to show in the help pageCommand(name, args=[], aliases=[])UsageCommand('hello', [CommandArgument('person'), CommandArgument('gender', required=False, options=['male', 'female', 'other])], 'h')$ python3 example.py hello jered$ python3 example.py hello joe malenameis the name of the commandargsis a list ofblinkparse.CommandArgumentobjects that the command takesCommandArgument(name, options=None, required=True)nameis the name of the command argumentoptionsis a list of allowed options for the argument (defaults to everything)requiredmakes blinkparse raise an error if the command argument isn't passed inaliasesis a list of other names for the commandFull examplefromblinkparseimport*args=Parser(args=[Argument('save','s',description='Save the program output'),],commands=[Command('hello',[CommandArgument('person'),CommandArgument('gender',required=False,options=['male','female','other'])]),Command('bye',[CommandArgument('person')])],description='''hello.pyA simple demo of blinkparse''',commandRequired=True).parse()ifargs.command=='hello':output='Hello '+args.commandArgs['person']if'gender'inargs.commandArgs:output+=', you are '+args.commandArgs['gender']else:output='Bye '+args.commandArgs['person']if'save'inargs.args:withopen('hello.txt','w')asoutputFile:outputFile.write(output)else:print(output)
Package: blinkpdf
BlinkPDF is yet another webpage-to-pdf converterIt uses PyQt6 and QtWebEngine (with Blink engine) to do so.Pass an URL and an output filename, the page will be retrieved and converted
to PDF. Additionally, it can be given custom cookies and headers and also
some javascript code to execute (if needing to perform custom tweaks to
the page).Usageblinkpdf [--cookie NAME=VALUE] [--header NAME=VALUE] [--run-script JS_SNIPPET] https://pypi.org/project/blinkpdf/ output.pdfInstallpip install blinkpdf
Package: blinkt
https://shop.pimoroni.com/products/blinktEight super-bright RGB LED indicators, ideal for adding visual
notifications to your Raspberry Pi on their own or on a pHAT stacking
header.InstallingFull install (recommended):We’ve created an easy installation script that will install all
pre-requisites and get your Blinkt! up and running with minimal efforts.
To run it, fire up Terminal which you’ll find in Menu -> Accessories ->
Terminal on your Raspberry Pi desktop, as illustrated below:In the new terminal window type the command exactly as it appears below
(check for typos) and follow the on-screen instructions:curlhttps://get.pimoroni.com/blinkt|bashAlternatively, on Raspbian, you can download thepimoroni-dashboardand install your product by browsing to the relevant entry:sudoapt-getinstallpimoroni(you will find the Dashboard under ‘Accessories’ too, in the Pi menu -
or just runpimoroni-dashboardat the command line)If you choose to download examples you’ll find them in/home/pi/Pimoroni/blinkt/.Manual install:Library install for Python 3:on Raspbian:sudoapt-getinstallpython3-blinktother environments:sudopip3installblinktLibrary install for Python 2:on Raspbian:sudoapt-getinstallpython-blinktother environments:sudopip2installblinktDevelopment:If you want to contribute, or like living on the edge of your seat by
having the latest code, you should clone this repository,cdto the
library directory, and run:sudopython3setup.pyinstall(orsudo python setup.py installwhichever your primary Python
environment may be)Documentation & SupportGuides and tutorials -https://learn.pimoroni.com/blinktFunction reference -http://docs.pimoroni.com/blinkt/GPIO Pinout -https://pinout.xyz/pinout/blinktGet help -http://forums.pimoroni.com/c/supportUnofficial / Third-party librariesGolang library & examples byAlex
Ellis-https://github.com/alexellis/blinkt_go_examplesJava library by Jim Darby -https://github.com/hackerjimbo/PiJava0.1.2BugFix: Added sleep to data output, see:https://github.com/pimoroni/blinkt/issues/620.1.1New: Addedget_pixelto return colour and brightness of a single pixel0.1.0Removed try/except from RPi.GPIO import, output was misleading at bestReverted default behaviour of clear on exit0.0.9Added set_all method to set all pixelsChanged default behaviour of clear on exit to reduce module side-effectsMove GPIO initialisation to show() to reduce module side-effects0.0.8Tweaked some methods to show intent as implementation detail onlyAdded docstrings detailing public methods0.0.7Fixed bug with APA102 pixels that have a small, black die (vs the larger, paler one)0.0.6set_clear_on_exit now method0.0.5Range clamping and coercion to integers0.0.4Various bug fixes0.0.3Switch to Python0.0.2Bug fixes for C Library0.0.1Original C Library
Package: blinkter
READMEBlinkter makes using thePimoroni Blinkt!even  easier by making the library object oriented and
adding several convenience methods. The intuitive objects that Blinkter layers on top of theBlinkt!python library greatly improve ease of use and reduce development times.InstallationEasy Waypip install blinkterHarder wayIf you want to play around with the Blinkter code, the following steps will guide you through getting the repository
and installing the library from your code.Make sure thatsetuptoolsis installed.pip install setuptoolsNext, clone this repository withgit clone https://github.com/speratus/Blinkter.gitOnce the repository is downloaded, install it using this command:python setup.py installThat's all there is to it. You should be ready to go in no time at all.Installing into a virtual environment.Installing Blinkter into a virtual environment is not much harder than a regular installation of Blinkter.
Follow steps 1 and 2 as you normally would, but before executing step 3, make sure that your virtual environment is activated.LinuxIn linux (and Raspbian), the command is,source <ENVIRONMENT_NAME>/bin/activateWindowsOn windows this is achieved using the command:NOTE:Blinkter will not run on Windows. It works exclusively on the Raspberry pi.<ENVIRONMENT_NAME>\Scripts\activateDoing this will ensure that Blinkter is installed into the appropriate environment.Usageimportblinkterboard=blinkter.BlinktBoard()pixel=board.get_pixel(0)#Or whatever pixel you want to manipulatepixel.red()#Or pixel.blue(), or whatever else you want.LinksPimoroni Blinkt! product pageBlinkt libraryDocumentation
Package: blinkt-sim
SimulatesPimoroni’s Blinkt!allowing Blinkt! code to developed and tested on any computer.Usagetry:
    import blinkt
except ImportError:
    import blinkt_sim as blinktExample Applicationimport time
import sys

try:
    import blinkt
    print("Blinkt! detected")
except ImportError:
    from blinkt_sim import blinkt_sim as blinkt
    print("Using Blinkt! simulator")

print("Press Ctrl+C to exit")

try:
    while True:
        for i in range(8):
            blinkt.clear()
            blinkt.set_pixel(i, 255, 0, 0, 0.75)
            blinkt.show()
            time.sleep(0.1)

except KeyboardInterrupt:  # Handle Ctrl+C gracefully
    sys.exit()CreditsThanks toJannis Hermannsfor creating theunicorn-hat-simwhich was the inspiration for this project.
Package: blinky
Blinky provides uptime for Vumi workers & Junebug Channelsdocker run --rm -it \
  -e SUPERUSER_PASSWORD='password' \
  -e BROKER_URL='amqp://username:password@host/vhost' \
  -e DATABASE_URL='sqlite:////full/path/to/your/database/file.sqlite' \
  -p 8000:8000 \
  sdehaan/blinky
Package: blinkytools
Blinky ToolsThis package contains a number of tools to work with Blinkies, small sound-to-light conversion sensors.Installpip install blinkytoolsUse the GUIThe GUI can be used to record Blinky signals on live data by
providing the identifier of the video streampython -m blinkytools -v <video_stream>or from a file by providing a file namepython -m blinkytools -v <video_filename>When called without argument, the default video stream is used.The GUI can also be used with aShodensha  DN3V-130BUindustrial camera, but this requires to install the driver and python bindings
for the driver fromhere.python -m blinkytools -iPreview the content of a fileThe package can also be used to preview the content
of a file recorded using the GUI.python -m blinkytools.file_preview <filename>Open file from within PythonThe file format isMessagePackand can thus be read by
any appropriate software package.
The content is as follows:Software versionFile creation dateFramerate of the signalA dictionary of extra metadataThe Blinky signals stored as a binary data arrayThis is an example of script that opens a Blinky file.from blinkytools import BlinkyFile

# open the file and load the content
filename = "myfile.blinky"
content = BlinkyFile.load(filename)

print("Software version used:", content.version)
print("Framerate:", content.fps)
print("File created on:", content.creation)
print("Dictionary of extra metadata:", content.metadata)

# The Blinky signal are in the data attribute
print("The data shape and type:", content.data.shape, content.data.dtype)The dimension of thecontent.dataarray is as follows.Formonochromecameras, the array has 4 dimensions, withshape == (n_time, n_blinkies, h_patch, w_patch), wheren_timeandn_blinkiesare
the number of frames and Blinky sensors, respectively. The data is exctraced
in small patches ofh_patch x w_patcharound the Blinky locations.Forcolorcameras, the array has 5 dimensions, withshape == (n_time, n_blinkies, h_patch, w_patch, n_colors), wheren_colorsis the number of
color channels.Note on storage of Numpy arrays in MessagePackWhen using theBlinkyFileclass, the signals are automatically transformed intonumpy.ndarray.
The arrays are stored in MessagePack format as the following dictionary:{
  "__nd__": True,  # indicates this is a numpy ndarray
  "shape": obj.shape,  # shape of the array
  "dtype": obj.dtype.str,  # numeric type of the data
  "data": obj.tobytes(),  # the data as a byte array
}Note that this information is only needed if dealing with the content of the file directly.l
When usingblinkytools, the conversion is transparent.
Package: blip
blipB(itf)lip Strings for Red Teaming/Bug Bounty HuntingInstallpip install blipORgit clone https://github.com/zmallen/blip && cd blip && python setup.py installSummary of tool/bitflippingBitflipping is a natural phenomena where bits in a packet sometimes 'flip' from 0 to 1, or 1 to 0. Typically, machines that interpret packets use checksums in order to validate the integrity of the datagram as it reads it from a socket. Other times, machines assume the original packet with the bitflip error is what was intended by the computer!Bitsquatting is an attack thats been around for close to a decade. The concept here is that someone can change bits in a string and then register a domain in order to take advantage of this error, and perhaps direct a victim to a maliciously owned bitsquatted domain. In 2021, ablog postby Remy Hax detailed an attack on the 'Windows' string by bitsquatting domains that weren't owned by Microsoft. This led to some hilarious results as machines from all over the world resolved their infrastructure and tried to communicate it.I wanted to write a tool to aid researchers and red teamers in generating these strings. Since bitsquatting is specifically related to bitflipped domains, I wanted to focus on the strings that are bitflipped for multiple uses, not just domain registrations. Also, I liked the word 'blip' which is short for bitflip. Bquat didnt sound as good ;)Usageblip -s microsoftGenerate all bitflipped strings for Microsoftblip -s microsoft --asciiGenerate ASCII-only bitflipped stringsblip -s microsoft --no-capsLowercase all candidate strings and remove uppercase charactersUse CasesGenerate bitflipped strings to make some bitsquat domain candidatesInstallidnpackage (on Ubuntu,apt install idn)⚡  blip -s paypal --no-cap | grep -v '[^a-zA-Z\d\s]' | idn
paypad
paypcl
paypql
paqpal
xn--paypl-0qa
paypil
paypal
xn--papal-2ua
pqypal
peypal
piypal
payral
payqal
taypal
xn--paypa-xsa
raypal
xn--aypal-hta
paypah
pcypal
payxal
xn--payal-kta
paypan
paxpal
paypam
qaypal
paipal
paytal
xn--pypal-xqa
paypel
xaypal
Package: blip-alpha
BLIP: Bayesian LISA PipelineThis is a bayesian pipeline for detecting stochastic backgrounds with LISA. BLIP stands for Bayesian LIsa Pipeline fully written in pythonIt is easier to maintain and run python code in virtual environments. Make a new virtualenv by doingpython3 -m venv lisaenvSource it on linux or Mac by doingsource lisaenv/bin/activateFor Windows, source it byactivatewhile in\lisawork\ScriptsWe need numpy, scipy for running this and matplotlib and chainconsumer are required for plotting. Install them all by doingpip install numpy scipy matplotlib chainconsumerWe also need the healpy, the skymap packagepip install healpyThe samplerdynestyis used for nested sampling. We get both the posteriors and bayesian evidence from it. The latter is the detection statistic. Install dynesty by doingpip install dynestySome functionality also needs cythonpip install cythonYou can change the parameters and the signal model in params.iniTo run dopython run_blip.py params.iniPosterior plots are automatically made in the output directory specified in params.iniIf you want to generate local documentation pages you also need sphinxpip install sphinxNote: The code is setup to work with python 3 and might not work with python2
More documentation athttps://blip.readthedocs.io/en/latest/
Package: blip-caption
blip-captionA CLI tool for generating captions for images usingSalesforce BLIP.InstallationInstall this tool usingpiporpipx:pipxinstallblip-captionThe first time you use the tool it will download the model from the Hugging Face model hub.The small model is 945MB. The large model is 1.8GB. The models will be downloaded and stored in~/.cache/huggingface/hub/the first time you use them.UsageTo generate captions for an image using the small model, run:blip-captionIMG_5825.jpegExample output:a lizard is sitting on a branch in the woodsTo use the larger model, add--large:blip-captionIMG_5825.jpeg--largeExample output:there is a chamelon sitting on a branch in the woodsHere'sthe image I used:If you pass multiple files the path to each file will be output before its caption:blip-caption/tmp/photos/*.jpeg
/tmp/photos/IMG_2146.jpeg
amanholdingabowlofsaladandlaughing
/tmp/photos/IMG_0151.jpeg
acatlayingonaredblanketJSON outputThe--jsonflag changes the output to look like this:blip-caption /tmp/photos/*.* --json[{"path":"/tmp/photos/IMG_2146.jpeg","caption":"a man holding a bowl of salad and laughing"},,{"path":"/tmp/photos/IMG_0151.jpeg","caption":"a cat laying on a red blanket"},{"path":"/tmp/photos/IMG_3099.MOV","error":"cannot identify image file '/tmp/photos/IMG_3099.MOV'"}]Any errors are returned as a{"path": "...", "error": "error message"}object.DevelopmentTo set up this plugin locally, first checkout the code. Then create a new virtual environment:cdblip-caption
python3-mvenvvenvsourcevenv/bin/activateNow install the dependencies and test dependencies:pipinstall-e'.[test]'To run the tests:pytest
Package: blip-gw
BLIP: Bayesian LISA PipelineThis is a bayesian pipeline for detecting stochastic backgrounds with LISA. BLIP stands for Bayesian LIsa Pipeline fully written in pythonIt is easier to maintain and run python code in virtual environments. Make a new virtualenv by doingpython3 -m venv lisaenvSource it on linux or Mac by doingsource lisaenv/bin/activateFor Windows, source it byactivatewhile in\lisawork\ScriptsWe need numpy, scipy for running this and matplotlib and chainconsumer are required for plotting. Install them all by doingpip install numpy scipy matplotlib chainconsumerWe also need the healpy, the skymap packagepip install healpyThe samplerdynestyis used for nested sampling. We get both the posteriors and bayesian evidence from it. The latter is the detection statistic. Install dynesty by doingpip install dynestySome functionality also needs cythonpip install cythonYou can change the parameters and the signal model in params.iniTo run dopython run_blip.py params.iniPosterior plots are automatically made in the output directory specified in params.iniIf you want to generate local documentation pages you also need sphinxpip install sphinxNote: The code is setup to work with python 3 and might not work with python2
More documentation athttps://blip.readthedocs.io/en/latest/