Saravanan666/pypi-org huggingface dataset:
Package: broad-babel
Broad_BabelMinimal name translator ofJUMPconsortium.Installationpipinstallbroad-babelBroad sample to standardYou can fetch a single valuefrombroad_sample.queryimportsample_to_standardbroad_to_standard("BRD-K18895904-001-16-1")# -> 'KVWDHTXUZHCGIO-UHFFFAOYSA-N'If you provide multiple strings it will return dictionary.broad_to_standard(("BRD-K36461289-001-05-8","ccsbBroad304_16164"))# {'BRD-K36461289-001-05-8': 'SCIMP', 'ccsbBroad304_16164': 'PIMZUZSSNYHVCU-KBLUICEQSA-N'}Export database as csvfrombroad_sample.queryimportexport_csvexport_csv("./output.csv")Custom queryingThe available fields are:perturbation: Dataset of origin for a given entryJCP2022: Identifier from the JUMP datasetstandard_key: Gene Entrez id for gene-related perturbations, and InChIKey for compound perturbationsbroad_sample: Internal Broad IDpert_type: Type of perturbation, options are trt (treatment), control, negcon (Negative Control), poscon_cp (Positive Control, Compound Probe), poscon_diverse, poscon_orf, and poscon (Positive Control).NCBI_Gene_ID: NCBI identifier, only applicable to ORF and CRISPRYou can fetch any field using another (note that the output is a list of tuples)run_query(query="JCP2022_915119",input_column="JCP2022",output_column="broad_sample")# [('ccsbBroad304_16164',)]Note that there are some duplicates that arise from both between orf and crispr perturbations, but also within orf standard_keys.run_query("ccsbBroad304_00900",input_column="broad_sample",output_column="*")# [('crispr', 'JCP2022_803621', 'KCNN1', 'ccsbBroad304_00900', 'trt', None),#  ('orf', 'JCP2022_900842', 'KCNN1', 'ccsbBroad304_00900', 'trt', None),#  ('Target1_orf', None, 'KCNN1', 'ccsbBroad304_00900', 'trt', None)]It is also possible to use fuzzy querying by changing the operator argument and adding "%" to out key.run_query("BRD-K21728777%",input_column="broad_sample",output_column="*",operator="LIKE",)# [('compound',#   'JCP2022_037716',#   'IVUGFMLRJOCGAS-UHFFFAOYSA-N',#   'BRD-K21728777-001-02-3',#   'control',#   'poscon_cp'),#  ('Target2_compound',#   None,#   'IVUGFMLRJOCGAS-UHFFFAOYSA-N',#   'BRD-K21728777-001-02-3',#   'control',#   'poscon_cp')]Additional documentationMetadata sources and additional documentation is availablehere.
Package: broadbean
Broadbean aka QCoDeS Pulse BuilderA library for making pulses that can be leveraged with QCoDeS (in
particular with Tektronix 5000/7000 series AWG drivers),
but also works as standalone.Usage examples can be found in broadbean's documentationhere.Short description: The broadbean module lets the user compose and
manipulate pulse sequences. The aim of the module is to reduce pulse
building to the logical minimum of specifications so that building and
manipulation become as easy as saying "Gimme a square wave, then a
ramp, then a sine, and then wait for 10 ms" and, in particular, "Do
the same thing again, but now with the sine having twice the frequency
it had before".The little extra module calledripassoperforms frequency filtering
and frequency filter  compensation. It could be useful in a general
setting and is therefore factored out to its own module.The name: The broad bean is one of my favourite pulses.Formal requirementsThe broadbean package only works with python 3.9+InstallationIn general, refer tobroadbeans documentationfor installation instructions.
Package: broadcaster
BroadcasterBroadcaster helps you develop realtime streaming functionality in by providing
a simple broadcast API onto a number of different backend services.It currently supportsRedis PUB/SUB,Apache Kafka, andPostgres LISTEN/NOTIFY, plus a simple in-memory backend, that you can use for local development or during testing.Here's a complete example of the backend code for a simple websocket chat app:app.py# Requires: `starlette`, `uvicorn`, `jinja2`# Run with `uvicorn example:app`frombroadcasterimportBroadcastfromstarlette.applicationsimportStarlettefromstarlette.concurrencyimportrun_until_first_completefromstarlette.routingimportRoute,WebSocketRoutefromstarlette.templatingimportJinja2Templatesbroadcast=Broadcast("redis://localhost:6379")templates=Jinja2Templates("templates")asyncdefhomepage(request):template="index.html"context={"request":request}returntemplates.TemplateResponse(template,context)asyncdefchatroom_ws(websocket):awaitwebsocket.accept()awaitrun_until_first_complete((chatroom_ws_receiver,{"websocket":websocket}),(chatroom_ws_sender,{"websocket":websocket}),)asyncdefchatroom_ws_receiver(websocket):asyncformessageinwebsocket.iter_text():awaitbroadcast.publish(channel="chatroom",message=message)asyncdefchatroom_ws_sender(websocket):asyncwithbroadcast.subscribe(channel="chatroom")assubscriber:asyncforeventinsubscriber:awaitwebsocket.send_text(event.message)routes=[Route("/",homepage),WebSocketRoute("/",chatroom_ws,name='chatroom_ws'),]app=Starlette(routes=routes,on_startup=[broadcast.connect],on_shutdown=[broadcast.disconnect],)The HTML template for the front endis available here, and is adapted fromPieter Noordhuis's PUB/SUB demo.Installationpip install broadcasterpip install broadcaster[redis]pip install broadcaster[postgres]pip install broadcaster[kafka]Available backendsBroadcast('memory://')Broadcast("redis://localhost:6379")Broadcast("postgres://localhost:5432/hostedapi")Broadcast("kafka://localhost:9092")Where next?At the momentbroadcasteris in Alpha, and should be considered a working design document.The API should be considered subject to change. If youdowant to use Broadcaster in its current
state, make sure to strictly pin your requirements tobroadcaster==0.2.0.To be more capable we'd really want to add some additional backends, provide API support for reading recent event history from persistent stores, and provide a serialization/deserialization API...Serialization / deserialization to support broadcasting structured data.Backends for Redis Streams, Apache Kafka, and RabbitMQ.Add support forsubscribe('chatroom', history=100)for backends which provide persistence. (Redis Streams, Apache Kafka) This will allow applications to subscribe to channel updates, while also being given an initial window onto the most recent events. Wemightalso want to support some basic paging operations, to allow applications to scan back in the event history.Support for pattern subscribes in backends that support it.
Package: broadcaster-noteable
BroadcasterForked from originalbroadcasterto get patch fixes available for re-useBroadcaster helps you develop realtime streaming functionality by providing
a simple broadcast API onto a number of different backend services.It currently supportsRedis PUB/SUB,Apache Kafka, andPostgres LISTEN/NOTIFY, plus a simple in-memory backend, that you can use for local development or during testing.Here's a complete example of the backend code for a simple websocket chat app:app.py# Requires: `starlette`, `uvicorn`, `jinja2`# Run with `uvicorn example:app`frombroadcasterimportBroadcastfromstarlette.applicationsimportStarlettefromstarlette.concurrencyimportrun_until_first_completefromstarlette.routingimportRoute,WebSocketRoutefromstarlette.templatingimportJinja2Templatesbroadcast=Broadcast("redis://localhost:6379")templates=Jinja2Templates("templates")asyncdefhomepage(request):template="index.html"context={"request":request}returntemplates.TemplateResponse(template,context)asyncdefchatroom_ws(websocket):awaitwebsocket.accept()awaitrun_until_first_complete((chatroom_ws_receiver,{"websocket":websocket}),(chatroom_ws_sender,{"websocket":websocket}),)asyncdefchatroom_ws_receiver(websocket):asyncformessageinwebsocket.iter_text():awaitbroadcast.publish(channel="chatroom",message=message)asyncdefchatroom_ws_sender(websocket):asyncwithbroadcast.subscribe(channel="chatroom")assubscriber:asyncforeventinsubscriber:awaitwebsocket.send_text(event.message)routes=[Route("/",homepage),WebSocketRoute("/",chatroom_ws,name='chatroom_ws'),]app=Starlette(routes=routes,on_startup=[broadcast.connect],on_shutdown=[broadcast.disconnect],)The HTML template for the front endis available here, and is adapted fromPieter Noordhuis's PUB/SUB demo.RequirementsPython 3.7+Installationpip install broadcasterpip install broadcaster[redis]pip install broadcaster[postgres]pip install broadcaster[kafka]Available backendsBroadcast('memory://')Broadcast("redis://localhost:6379")Broadcast("postgres://localhost:5432/broadcaster")Broadcast("kafka://localhost:9092")Where next?At the momentbroadcasteris in Alpha, and should be considered a working design document.The API should be considered subject to change. If youdowant to use Broadcaster in its current
state, make sure to strictly pin your requirements tobroadcaster==0.2.0.To be more capable we'd really want to add some additional backends, provide API support for reading recent event history from persistent stores, and provide a serialization/deserialization API...Serialization / deserialization to support broadcasting structured data.Backends for Redis Streams, Apache Kafka, and RabbitMQ.Add support forsubscribe('chatroom', history=100)for backends which provide persistence. (Redis Streams, Apache Kafka) This will allow applications to subscribe to channel updates, while also being given an initial window onto the most recent events. Wemightalso want to support some basic paging operations, to allow applications to scan back in the event history.Support for pattern subscribes in backends that support it.
Package: broadcastify-archtk
The Broadcastify Archive Tool Kit (broadcastify-archtk)The Broadcastify Archive Tool Kit (broadcastify-archtk) for python automates downloading audio archives fromBroadcastify, "the world's largest source of Public Safety, Airline, Rail, and Marine live audio streams".broadcastify-archtk was initially developed as part of a group project during the summer 2019General Assembly Data Science Immersive program, in response to a client's need to visualize where first responders were being dispatched during emergencies. We sought out a large repository of emergency radio dispatches to train our audio-to-text-to-geolocation algorithm. Although Broadcastify was the clear winner in terms of breadth and depth, the lack of an API for downloading archived audio meant that the process for acquiring the data was highly manual and time-consuming.broadcastify-archtk solves that problem.ResourcesView the package atpyPI.orgCheck outthe docsView the repo athttps://github.com/ljhopkins2/broadcastify-archtk/
Package: broadcast-service
broadcast-serviceA powerful python broadcast library. You can easily construct a Broadcast pattern/Publish subscriber pattern through this library.FeaturesA publishing subscriber pattern can be built with a very simple syntaxSupport different application scenarios, such as asynchronous and synchronousProvide different syntax writing modes for lambda, callback functions, decorators, etcA callback function listens on multiple subscriptionsProvide publisher dispatch callback manageQuick Startdocument github-pagesdocument gitee-pageshttps://pypi.org/project/broadcast-service/Setuppipinstallbroadcast-serviceUsageThere is an easy demo to show how to use broadcast-service.frombroadcast_serviceimportbroadcast_service# callback of decorator@broadcast_service.on_listen('my_topic')defhandle_decorator_msg(params):print(f"handle_decorator_msg receive params:{params}")if__name__=='__main__':info='This is very important msg'# publish broadcastbroadcast_service.publish('my_topic',info)You can usepublish, emit, broadcastto send your topic msg and uselisten, on, subscribeto listen your topic msg.You can also add more arguments or no argument when you publish thr broadcast.frombroadcast_serviceimportbroadcast_service# subscribe topic@broadcast_service.on_listen(['my_topic'])defhandle_msg(info,info2):print(info)print(info2)if__name__=='__main__':info='This is very important msg'info2='This is also a very important msg.'# publish broadcastbroadcast_service.publish('my_topic',info,info2)frombroadcast_serviceimportbroadcast_service# subscribe topic@broadcast_service.on_listen(['my_topic'])defhandle_msg():print('handle_msg callback')if__name__=='__main__':# publish broadcastbroadcast_service.publish('Test')You can useconfigto make publisher callback If you want.frombroadcast_serviceimportbroadcast_service@broadcast_service.on_listen("topic")defhandle_subscriber_callback():print("handle_subscriber_callback")defhandle_publisher_callback(*args):print("handle_publisher_callback")if__name__=='__main__':broadcast_service.config(num_of_executions=5,callback=handle_publisher_callback,enable_final_return=True,interval=0.1).publish("topic")Moreover, you can see more example indocument.TODOoptimize documents and show more examples.optimize the syntax expression of broadcast-serviceprovide more test casesprovide the ability to subscribe the topic and callback oncesupport for fuzzy subscriptionsthe publisher of the topic can provide a return valueoptimize usage in class ('self' params problem)build observer modeprovide publisher callback when all subscriber have completed callbackContributionIf you want to contribute to this project, you can submit pr or issue. I am glad to see more people involved and optimize it.
Package: broadlink-auto-login
broadlink-auto-login====================A Python module to login to broadlink hotspot automatically.If you have ever found it boring to enter the username and password for broadlink hotspot login page then **broadlink-auto-login** app can helpyou. Just specify your username and password in a config file and type `broadlink` anywhere from your terminal to login to the broadlink hotspot pageautomatically. This app also supports multiple username and password. If you use multiple accounts to login to broadlink hotspot page, then you canspecify all of those usernames and passwords in a single file and this script will try to login each account from top, once the login is successfull,it stops automatically and you can browse internet.Installation------------- `broadlink-auto-login` can be installed using pip- You will need `python3` and `pip3`.::$ sudo pip3 install broadlink_auto_loginUsage------ To start initial setup::$ broadlink --setup- To add your account username and passsword to config file. The username and passwords are stored in `broadlink_accounts.json` file in your home folder.::$ broadlink --add- To get your current login status.::$ broadlink --status- To logout.::$ broadlink --logout- To supply custom username and password from commandline without storing it in config file.::$ broadlink --username YOUR_USERNAME --password YOUR_PASSWORDAdvanced Usage-------------usage: broadlink [-h] [-sp | -a | -s | -lt] [-u USERNAME] [-p PASSWORD]Broadlink hotspot auto login command line tool.optional arguments:-h, --help            show this help message and exit-sp, --setup          Initial setup-a, --add             Add account-s, --status          Show log in status-lt, --logout         Logout user-u USERNAME, --username USERNAMELogin using custom username-p PASSWORD, --password PASSWORDLogin using custom passwordContribution------------Feel free to create a Github issue. Also, you are more than welcome to submita pull request for a bug fix or additional feature.
Package: broadlinkhacktools
Broadlink HacktoolsBroadlink Hacktools is a Python module for decrypting, filtering and analyzing packets captured from Broadlink devices to better integrate them with home automation platforms.This is not an official Broadlink application.For now, only universal remote devices have are supported.InstalationUse the package managerpipto install broadlinkhacktools.pipinstallbroadlinkhacktoolsUsagefrombroadlinkhacktoolsimportPacketDecryptor,PacketPrinter,PersistenceHandlerfrombroadlinkhacktools.protocol.constimportDEFAULT_IV,DEFAULT_KEY# Load packets from binary files.src_folder='some_folder'packets=PersistenceHandler.load_packets(src_folder)# Decrypt packets using default key.decryptor=PacketDecryptor(DEFAULT_KEY,DEFAULT_IV)decryptor.decrypt(packets)# Print packets to a file.printer=PacketPrinter()withopen('packets.txt','w+')asfile:forpacketinpackets:printer.print(packet,file=file)For more examples, seeexamplesfolder.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: broadlink-listener
Broadlink ListenerBroadlink IR codes listener and SmartIR json generator.This project will install abroadlink-listenercommand line tool that can be used to generate a climateSmartIRcompatible json, starting from an initial structure that defines climate behavior, putting Broadlink IR remote to
listening state, until all IR code combination will being scan.Documentation:https://gpongelli.github.io/broadlink-listenerGitHub:https://github.com/gpongelli/broadlink-listenerPyPI:https://pypi.org/project/broadlink-listener/Free software: MITFeaturesDiscover Broadlink IR remoteStarting from SmartIR json structure like{"supportedController":"Broadlink","minTemperature":16,"maxTemperature":31,"precision":1,"operationModes":["op_a","op_b"],"fanModes":["fan_a","fan_b"],"swingModes":["swing_a","swing_b"]}it helps you listen all the defined IR codes to create a json like{"supportedController":"Broadlink","minTemperature":16,"maxTemperature":31,"precision":1,"operationModes":["op_a","op_b"],"fanModes":["fan_a","fan_b"],"swingModes":["swing_a","swing_b"],"commands":{"off":"...","op_a":{"fan_a":{"swing_a":{"16":"....","31":"...."},"swing_b":{"16":"....","31":"...."}},"fan_b":{"swing_a":{"16":"....","31":"...."},"swing_b":{"16":"....","31":"...."}}},"op_b":{"fan_a":{"swing_a":{"16":"....","31":"...."},"swing_b":{"16":"....","31":"...."}},"fan_b":{"swing_a":{"16":"....","31":"...."},"swing_b":{"16":"....","31":"...."}}}}}Mandatory fields into starting jsonsupportedController,minTemperature,maxTemperature,precisionOptional fields (at least one must be present or nothing will be listened):operationModes,fanModes,swingModesGenerated file can be used into SmartIR HomeAssistant componentIt's possible to interrupt with CTRL-C at any moment, a temporary file will be savedTemporary files are also saved at the end of each temperature rangeIn case of existing temporary file, the already learnt combination will be skippedExampleExample of cli command:$broadlink-listenergenerate-smart-ir./real_data/1124.json<DEVICE_TYPE><IP><MAC_ADDR>-ndry-nfan_only-seco_coolreal_data/1124.jsonfile isthis one from SmartIR GitHub repoin which I've added the missing "swingModes" array, supported by climate but not present on json:"swingModes":["auto","high","mid_high","middle","mid_low","low","swing"],<DEVICE_TYPE>,<IP>,<MAC_ADDR>parameter can be obtained running:$broadlink-listenerdiscover_irCreditsThis package was created withCookiecutterand thegpongelli/cookiecutter-pypackageproject template.
Package: broadsteel-datascience
==================BroadSteel_DataScience==================.. image:: https://img.shields.io/pypi/v/broadsteel_datascience.svg:target: https://pypi.python.org/pypi/broadsteel_datascience.. image:: https://img.shields.io/travis/jirvingphd/broadsteel_datascience.svg:target: https://travis-ci.org/jirvingphd/broadsteel_datascience.. image:: https://readthedocs.org/projects/broadsteel-datascience/badge/?version=latest:target: https://broadsteel-datascience.readthedocs.io/en/latest/?badge=latest:alt: Documentation StatusBroadSteel_DataScience* Free software: MIT license* Documentation: https://broadsteel-datascience.readthedocs.io.Features--------* TODOCredits-------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage=======History=======0.1.0 (2019-05-01)------------------* First release on PyPI.
Package: broadwick
Broadwick is a simple python stack designed for business applications
and business process management. Almost all of Broadwick is built upon
the Twisted framework.Comprises:broadwick.messaging : Messaging abstraction. Currently contains
twisted STOMP implementation.broadwick.web : A CherryPy?-like web framework built upon
twisted.webexamples : messaging examples (including a simple STOMP broker) and web
examplesMost of broadwick is platform-independent EXCEPT the appserver
module. The appserver module uses supervisor (http://supervisord.org)
which only runs on Unix, to manage processes. If anyone knows of a
similar Windows-based process manager, an adaptor could be
written. We’re not looking into this though.
Package: broadworks-ocip
Broadworks OCI-P Interfacebroadworks_ocipinterfaces to the OCI-P provisioning interface of a Broadworks softswitchFree software: BSD licenseDocumentation:https://nigelm.github.io/broadworks_ocip/Featurespython objects to match all Broadworks schema objectsAPI framework to talk to a Broadworks serveradditional magic to handle authentication and sessionsBased on Broadworks schema R24Current VersionVersion:2.1.2InstallationWithpip:python3-mpipinstallbroadworks-ocipUsageMore details is given within the usage section of the documentation, but the
minimal summary is:-frombroadworks_ocipimportBroadworksAPI# configure the API, connect and authenticate to the serverapi=BroadworksAPI(host=args.host,port=args.port,username=args.username,password=args.password,)# get the platform software levelresponse=api.command("SystemSoftwareVersionGetRequest")print(response.version)Version 2Despite the bump in version number there are no known major incompatibilities
from previous versions. However the underlying class base has been changed
to a vanilla python slots based system - the thinking behind this is in the
API internals documentation. This will change the underlying requirements.Additionally at the same time I have converted to Broadworks R24 API schema
files as the basis for generating these classes. This will change the set of
available commands and classes.CreditsThe class used to be built using Michael DeHaan's [ClassForge]
(https://classforge.io/) object system, however from version 2.0.0 it has
been based on vanilla python slotted objects.Development on the python version was done byNigel Metheringham<nigelm@cpan.org>Karol Skibiński has been using the package, and has a talent for both finding
bugs within it and providing a good bug report that allows a test case and fix
to be made. The package has been immensely improved by this work.