Saravanan666/pypi-org huggingface dataset:
Package: bleachrepo
bleachRemove mold from your repositories :)Bleach is a project dedicated to helping software development teams keep track of their repositories and make sure no pull request is left unattended.
Bleach may query GitHub and BitBucket repositories, and write alerts on pull requests open for too long to Slack.
Bleach may also try to make an educated guess as for whether or not two branches are out of sync. For example, amasterbranch may be expected to contain all commits from astagingbranch, and Bleach will alert if that is not the case.InstallingFor unpriviliged users:pip install --user bleachrepoOr for priviliged users / with sudo:pip install bleachrepoRunning & Commandspython -m bleach <org> <repo> <command> <additional_params_for_command>Viable commands are:pr- check the status of open pull requests of given<repo>in<org>.branch- compare two branches, checking if commits are present in one branch, but not another.Pull requestspris used to check the status of pull requests in a given repo, and helps find pull requests that are open for too long.
for example,python -m bleach shesekino bleach prwill write tostdouta summary of pull requests open for over 2 days.Branch syncbranchis used to check for commits appearing in one branch, but not another.
This feature can be useful for repositories with amasterbranch that is expected to eventually contain all recent commits from astagingbranch.python -m bleach shesekino bleach branch test-branch-discrepancy-1 test-branch-discrepancy-2will check if there are commits in branchtest-branch-discrepancy-2that do not appear intest-branch-discrepancy-1.This feature somewhat relies on guesswork and assumptions.Private & public repositoriesPublic repositories require no special treatment.
For private repositories, obtain a GitHub access token withrepopermissions, then set it as an environment variable:export BLEACH_GITHUB_ACCESS_TOKEN=<access token>and run normally.Writing to SlackSet a webhook URL to slack:export BLEACH_SLACK_WEBHOOK=<webhook url>then run:python -m bleach --outputMethod slack <org> <repo> <command>
Package: bleak
Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient.Free software: MIT licenseDocumentation:https://bleak.readthedocs.io.Bleak is a GATT client software, capable of connecting to BLE devices
acting as GATT servers. It is designed to provide a asynchronous,
cross-platform Python API to connect and communicate with e.g. sensors.Installation$pipinstallbleakFeaturesSupports Windows 10, version 16299 (Fall Creators Update) or greaterSupports Linux distributions with BlueZ >= 5.43OS X/macOS support via Core Bluetooth API, from at least OS X version 10.11Android backend compatible with python-for-androidBleak supports reading, writing and getting notifications from
GATT servers, as well as a function for discovering BLE devices.UsageTo discover Bluetooth devices that can be connected to:importasynciofrombleakimportBleakScannerasyncdefmain():devices=awaitBleakScanner.discover()fordindevices:print(d)asyncio.run(main())Connect to a Bluetooth device and read its model number:importasynciofrombleakimportBleakClientaddress="24:71:89:cc:09:05"MODEL_NBR_UUID="2A24"asyncdefmain(address):asyncwithBleakClient(address)asclient:model_number=awaitclient.read_gatt_char(MODEL_NBR_UUID)print("Model Number:{0}".format("".join(map(chr,model_number))))asyncio.run(main(address))DO NOT NAME YOUR SCRIPTbleak.py! It will cause a circular import error.See examples folder for more code, for instance example code for connecting to aTI SensorTag CC2650
Package: bleak-esphome
bleak-esphomeDocumentation:https://bleak-esphome.readthedocs.ioSource Code:https://github.com/bluetooth-devices/bleak-esphomeBleak backend of ESPHomeInstallationInstall this via pip (or your favourite package manager):pip install bleak-esphomeContributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: bleak-retry-connector
Bleak Retry ConnectorA connector for Bleak Clients that handles transient connection failuresInstallationInstall this via pip (or your favourite package manager):pip install bleak-retry-connectorContributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCookiecutterand thebrowniebroke/cookiecutter-pypackageproject template.
Package: bleak-sigspec
bleak_sigspecBleak SIG Bluetooth Characteristic Specification FormatterThis package enables characteristic metadata parsing and automatic formatting (bytes unpacking) into the proper characteristic values.To installpip install bleak_sigspecor to get the latest versionpip install https://github.com/Carglglz/bleak_sigspec.gitCompatibility with +200 GATT characteristics followingGATT SpecificationsUsage exampleservice_explorer.pyin bleak examples:char --> Temperature Characteristicfrombleak_sigspec.utilsimportget_char_value[...]37bytes_value=bytes(awaitclient.read_gatt_char(char.uuid))formatted_value=get_char_value(bytes_value,char)[...]43log.info("Characteristic Name:{0}, Bytes Value:{1}, FormattedValue:{2}".format(char.description, bytes_value, formatted_value))$python3service_explorer.py[...]CharacteristicName:Temperature,BytesValue:b'Z\x16',FormattedValue:{'Temperature':{'Quantity':'thermodynamic temperature','Unit':'degree celsius','Symbol':'°C','Value':57.22}}See characteristic metadataPython3.7.6(v3.7.6:43364a7ae0,Dec182019,14:18:50)[Clang6.0(clang-600.0.57)]ondarwinType"help","copyright","credits"or"license"formoreinformation.>>>frombleak_sigspec.utilsimportget_xml_char>>>temp=get_xml_char('Temperature')>>>tempCharacteristicMetadata:━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━-NAME:Temperature-UUID:2A6E-ABSTRACT:None-SUMMARY:None-FIELDS:-Temperature:-InformativeText:UnitisindegreesCelsiuswitharesolutionof0.01degreesCelsius-Requirement:Mandatory-Format:sint16-Ctype:h-Unit_id:org.bluetooth.unit.thermodynamic_temperature.degree_celsius-Quantity:thermodynamictemperature-Unit:degreecelsius-Symbol:°C-DecimalExponent:-2-TYPE:org.bluetooth.characteristic.temperature-INFOTEXT:UnitisindegreesCelsiuswitharesolutionof0.01degreesCelsius-DESCRIPTION:None-NOTE:None━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━>>>DocumentationSee the documentation athttps://bleak-sigspec.readthedocs.io
Package: blec
blec: alpha blending calculatorThis is a tool to calculate a resulting color of the alpha blending process.
A gamma correction is enabled and the default transfer function is the one defined in sRGB.UsageJust enumerate colors from the bottom to the top. Let's blend 75% black on pure whiteblec white black:0.75
blec fff 000000bf
blec ffffffff [0,0,0,191]
blec ffffff:1 [0,0,0]:0.75Every call above does the same thingInstallationpip3 install blec
Package: bledom
Python library for controlling BLEDOM devicesThis library is still in development. Functionality hasn't fully been tested yet. If you find bugs or "stub" messages, pleasecreate an issue.Demo ProgramThis library comes with a demo program.python-mbledomAPIRun APIYou can let the library do the Bluetooth set up for you by creating a main function which the library will call after having set up the Bluetooth device.fromtimeimportsleepfrombledomimportBleLedDevice,run_syncasyncdefmain(device:BleLedDevice):whileTrue:sleep(2)awaitdevice.set_color(randint(0,255),randint(0,255),randint(0,255))run_sync(main)Device APICreating a device from with a BleakClientReading theBleak documentationis recommended for connecting to a device manually.A device connection can be created with a Bleak client. Seemain.pyfor an example.device = BleLedDevice.new(client)The device will be powered on and have it's time synced on when it gets connected.Modesdevice.power_on(self)Powers on the devicedevice.set_color(128, 64, 255)Sets a static colourdevice.set_brightness(64)Sets a static brightness (0-100)device.set_effect(Effects.CROSSFADE_RED_GREEN_BLUE)Sets an effectdevice.set_effect_speed(64)Sets the effect speedTime and Scheduledevice.sync_time()Syncs the device to the system time. Gets called on connection.device.set_custom_time(datetime.now())Syncs the device to the givendatetime.device.set_schedule_on(Days.TUESDAY | Days.THURSDAY, 7, 30, True)Schedules LED to turn on on Tuesday and Thursday at 7:30 AM. Set last argument toFalseto disable.device.set_schedule_off(Days.ALL, 0, 0, True)Schedules LED to turn off everyday at midnight (12:00 AM). Set last argument toFalseto disable.TheDaysenum has the daysMONDAYthroughSUNDAYas well asWEEK_DAY(Monday through Friday),WEEKEND_DAYS(Saturday and Sunday) andALLfor all days.EffectsFordevice.set_effect(...), the following effects are available:Effects.JUMP_RED_GREEN_BLUEEffects.JUMP_RED_GREEN_BLUE_YELLOW_CYAN_MAGENTA_WHITEEffects.CROSSFADE_REDEffects.CROSSFADE_GREENEffects.CROSSFADE_BLUEEffects.CROSSFADE_YELLOWEffects.CROSSFADE_CYANEffects.CROSSFADE_MAGENTAEffects.CROSSFADE_WHITEEffects.CROSSFADE_RED_GREENEffects.CROSSFADE_RED_BLUEEffects.CROSSFADE_GREEN_BLUEEffects.CROSSFADE_RED_GREEN_BLUEEffects.CROSSFADE_RED_GREEN_BLUE_YELLOW_CYAN_MAGENTA_WHITEEffects.BLINK_REDEffects.BLINK_GREENEffects.BLINK_BLUEEffects.BLINK_YELLOWEffects.BLINK_CYANEffects.BLINK_MAGENTAEffects.BLINK_WHITEEffects.BLINK_RED_GREEN_BLUE_YELLOW_CYAN_MAGENTA_WHITEAcknowledgementsThis library is a port ofa Rust library written by TheSylex.Salutations toJoel.
Package: blee
ContentsSupportDocumentationInstallationSee AlsoUnISOS Sub-LayerBISOSBISOS Functional AreasBLEE (ByStar Libre-Halaal Emacs Environment) Namespace: A name base for
a collection of libraries and command modules.SupportFor support, ideas, suggestions, criticism, comments and questions;
please contact the author/maintainerMohsen Bananat:http://mohsen.1.banan.byname.net/contactDocumentationPart of ByStar Digital Ecosystemhttp://www.by-star.net.This module’s primary documentation is inhttp://www.by-star.net/PLPC/180047Installationpip install bleeSee AlsoUnISOS Sub-Layerunisos unisos.ucf unisos.icm unisos.commonBISOSbisos bisos.common bisos.basesBISOS Functional AreasMARME – Multi-Account Resident Mail ExchangerGOSSON – Generalized Open-Source SON (Self Organizing Networks)
Package: blee2
ContentsSupportDocumentationInstallationSee AlsoUnISOS Sub-LayerBISOSBISOS Functional AreasBLEE (ByStar Libre-Halaal Emacs Environment) Namespace: A name base for
a collection of libraries and command modules.SupportFor support, ideas, suggestions, criticism, comments and questions;
please contact the author/maintainerMohsen Bananat:http://mohsen.1.banan.byname.net/contactDocumentationPart of ByStar Digital Ecosystemhttp://www.by-star.net.This module’s primary documentation is inhttp://www.by-star.net/PLPC/180047Installationpip install bleeSee AlsoUnISOS Sub-Layerunisos unisos.ucf unisos.icm unisos.commonBISOSbisos bisos.common bisos.basesBISOS Functional AreasMARME – Multi-Account Resident Mail ExchangerGOSSON – Generalized Open-Source SON (Self Organizing Networks)
Package: blee2.elispDist
ContentsOverviewSupportDocumentationInstallationUsageOverviewBlee-ElispDist: A wrapper for packaging of BLEE elisp files for
insertion into BISOS.SupportFor support, criticism, comments and questions; please contact the
author/maintainerMohsen Bananat:http://mohsen.1.banan.byname.net/contactDocumentationPart of ByStar Digital Ecosystemhttp://www.by-star.net.This module’s primary documentation is inhttp://www.by-star.net/PLPC/180047Installationsudo pip install blee.elispDistUsage/usr/local/bin/bx-bases-blee.py
Package: blee2.icmPlayer
ContentsOverviewSupportDocumentationInstallationUsageOverviewBlee-ICM-Plaer: A Blee (ByStar Libre-Halaal Emacs Environmen) ICM
(Interactive Command Modules) Player. Takes an ICM as input and allows
for its command-line execution through a rich interactive emacs
inteface. Emacs dynamic interactions are implemented based on org-mode
dynamic blocks.SupportFor support, criticism, comments and questions; please contact the
author/maintainerMohsen Bananat:http://mohsen.1.banan.byname.net/contactDocumentationPart of ByStar Digital Ecosystemhttp://www.by-star.net.This module’s primary documentation is inhttp://www.by-star.net/PLPC/180047Installationsudo pip install blee.icmPlayerUsage/usr/local/bin/bleeIcmPlayer.py
Package: blee.elispDist
ContentsOverviewSupportDocumentationInstallationUsageOverviewBlee-ElispDist: A wrapper for packaging of BLEE elisp files for
insertion into BISOS.SupportFor support, criticism, comments and questions; please contact the
author/maintainerMohsen Bananat:http://mohsen.1.banan.byname.net/contactDocumentationPart of ByStar Digital Ecosystemhttp://www.by-star.net.This module’s primary documentation is inhttp://www.by-star.net/PLPC/180047Installationsudo pip install blee.elispDistUsage/usr/local/bin/bx-bases-blee.py
Package: blee.icmPlayer
ContentsOverviewSupportDocumentationInstallationUsageOverviewBlee-ICM-Plaer: A Blee (ByStar Libre-Halaal Emacs Environmen) ICM
(Interactive Command Modules) Player. Takes an ICM as input and allows
for its command-line execution through a rich interactive emacs
inteface. Emacs dynamic interactions are implemented based on org-mode
dynamic blocks.SupportFor support, criticism, comments and questions; please contact the
author/maintainerMohsen Bananat:http://mohsen.1.banan.byname.net/contactDocumentationPart of ByStar Digital Ecosystemhttp://www.by-star.net.This module’s primary documentation is inhttp://www.by-star.net/PLPC/180047Installationsudo pip install blee.icmPlayerUsage/usr/local/bin/bleeIcmPlayer.py
Package: bleep
bleepA BLE abstraction layer for Python inspired bybleat. Currently only supports Linux, with experimental support for Mac OS X.Current SupportDiscovering devicesReading advertising dataConnecting to devicesDiscovering services, characteristics and descriptorsRead from characteristicsInstallationLinuxFirst, install my fork of pygattlib and its dependencies:sudoapt-getinstalllibboost-python-devlibboost-thread-devlibbluetooth-devlibglib2.0-devpython-devYou should also make sure that your version of libbluetooth is at least 4.101:apt-cachepolicylibbluetooth-dev|grepInstalledThen, clone the repository, and install the python package.gitclonehttps://github.com/matthewelse/pygattlib.gitcdpygattlib
sudopythonsetup.pyinstallThis will build the dynamic library, and install the python package.You can then install bleep easily:sudopipinstallbleepIf you want to develop bleep, instead of the last line, run:sudo python setup.py developThis will cause any changes you make to bleep to be reflected when you import the library.NOTE: You may need to run all BLE code withsudo, even when using the Python interactive shell.Mac OS XInstallation on Mac OS X is very simple:brewinstallboost-python

gitclonehttps://github.com/matthewelse/bleep.gitcdbleep
sudopythonsetup.pyinstallLikewise, if you would like to develop bleep, run this instead of the last line:sudopythonsetup.pydevelopExamplestree.pyYou can run tree.py to see all of the services, characteristics and descriptors attached to a device with a specific mac address. In order to find the device's mac address, you could usehcitool lescan, or useBLEDevice.discoverDevices().usage: tree.py [-h] macUsageInclude bleep>>>frombleepimportBLEDeviceScan for devices>>>devices=BLEDevice.discoverDevices()>>>devices[DeviceName:(5A:79:8E:91:83:1C),DeviceName:(C1:20:68:1B:00:26),DeviceName:BLEKeyboard(C9:E8:56:3B:4D:B1),DeviceName:(4C:25:F5:C2:E6:61),DeviceName:(60:03:08:B2:47:F1),DeviceName:(C1:62:3A:1D:00:14)]This will return a list of Device objects, however you won't be connected to any of them, so pick one you like, and connect to it:>>>device=devices[2]>>>device.connect()You can then access the device's services:>>>device.services[GenericAccess,GenericAttribute,DeviceInformation,BatteryService,HumanInterfaceDevice]each service's characteristics>>>service=device.services[4]>>>serviceHumanInterfaceDevice>>>service.characteristics[HIDInformation,ReportMap,ProtocolMode,HIDControlPoint,Report,Report]and each characteristic's descriptors>>>char=service.characteristics[4]>>>charReport>>>char.descriptors[ClientCharacteristicConfiguration,ReportReference]Useful FunctionalityBLEDevice.discoverDevicessupports parameters which allow you to specify which BLE device to connect to (ignored on OSes other than Linux), how long to sample for, as well as a function which returns a boolean value, allowing you to cherry-pick your devices.defdiscoverDevices(device='hci0',timeout=5,filter=lambdax:True)
Package: bleep-it
Bleep-itText filtering tool:clipboard:  Table Of ContentInstallationQuickstartDocumentationBleep-it ToolsLicenseInstallationpip install bleep-it

:: for Latest (unstable)
pip install git+https://github.com/Marseel-E/bleep-itQuickstartimportasyncioimportbleepasyncdefmain():whileTrue:text=input("text: ")filtered_text=awaitbleep.filter(text=text,strickness=2)print("filtered_text:",filtered_text)if__name__=='__main__':asyncio.run(main())Documentationasyncfilterawaitfilter(text,strickness=2,action=Censor())This function is acoroutine.Filters the text given and returns the filtered test.Parameterstext (str) - The text to be filtered.strickness (int) - The level of strickness of the filtering.action (Censor|Remove) - The action to take when filtering a word.ReturnsThe filtered text.Return typestrclassCensorSensors the filtered word.Methodsasyncgenerateawait generate(word)This function is acoroutine.Generates the censorship to replace the word with.Parametersword (str) - The word to be censored.ReturnsThe censored replacement for the word.Return typestrclassRemoveRemoves the filtered word from the text.Bleep-it ToolsBleep-it Toolsis an extension for Bleep-it that allows you toCreate custom words.Generate other languages.soon:scroll:License
Package: bleetube-nip05er
nip05erHigh five users by adding them tonostr.jsonwhich is used to validate their nip05 address if it matchesuser@your.domain. The term "nip05er" is an abbreviation of "nip05 user."This works withou any necessary web-interface or separate database. The user is never required to fill out a separate form. All they do is set up their nip-05 the way they want to, in the app of their choice. The script will record which users registered a name and ensure the user keeps that name. All of the concerns about the UX remain in the nostr client and there is no additional fees for shorter names. It's a first come first serve basis.The script operates on an nostr.json file in-place, and maintains all of your manual modifications. However, you should make regular backups and periodically review the resulting nostr.json, just in-case there are any unforseen issues with this lightly tested script that you got for free. 🙃reportsHelper script to show all NIP-1984 reports on local users by local users.installationpipinstall--upgradepip
pipinstallbleetube-nip05erconfigure secretsWe automatically read database connection parameters from an environment file named.envby default:DB_HOST=/var/run/postgresqlDB_PORT=5432DB_NAME=nostreamDB_USER=nostreamDB_PASSWORD='hunter2'RELAY_DOMAIN=bitcoiner.socialNIP05ER_JSON=/var/www/html/.well-known/nostr.jsonNIP05ER_DATA=/var/cache/nip05erNIP05ER_LOG_PATH=/var/log/nip05er.logThe last couple variables are unique to this script. The rest overlap with what you would already have configured in a docker-compose environment file.runningnip05erupdatetroubleshootingYou can have the script dump all the environment variables:nip05erupdate--showvarsDevelopmentClone the repo and install dependencies into a local virtual environment:gitclonegit@github.com/bleetube/nip05ercdnip05er
python-mvenv.venvsource.venv/bin/activate
pipinstall--upgradepip
pipinstall--editable.
nip05erupdate
reportsshowtodo:Remove names if they no longer appear in the user's profile.We should also check external relays because the client isn't guaranteed to have broadcast the profile to our local relay.When checking external relays, we should use only the most recent event
Package: bleico
BleicoBluetooth Low Energy System Tray UtilityBleico is a system tray application/tool to scan, connect, explore and debug
Bluetooth low energy devices which are compliant withBluetooth SIG GATT Characteristics.Lincense: GPL-3.0Documentation:https://bleico.readthedocs.io.It is based onbleak,bleak-sigspecandPyQt5FeaturesBluetooth Low Energy ScannerSystem Tray Menuwith:Icon according to Appearance characteristic (if present)Device NameDevice UUIDServices and Characteristics menu treeCharacteristic Metadata viewDevice information (if present)Readable and writeable Characteristics organised in sections by servicesRead periodically from CharacteristicsWrite to Characteristics (from menu or dialog box)Enable desktop notifications on notifiable CharacteristicsConfigurable tool tipLast update, Connection status and RSSIDesktop Notification on Connection status changes (can be disabled).Automatic Reconnection on disconnect, in 30 seconds cycles until reconnected.InstallationCommand Line ToolInstallbleicoby running:$pipinstallbleicoOr get latest development version:$pipinstallhttps://github.com/Carglglz/bleico/tree/develop.zipStandalone ApplicationDownload fromReleases
Package: blekko
This module provides simple bindings to theBlekkoAPI. To use the API,contact Blekko for an API key.This module currently only supportssearch queriesandpage statistics.
The API also provides tools for manipulating slashtags, but this library doesn’t
support that yet.The library is internally rate-limited to one query per second in accordance
with Blekko’s guidelines.SearchingTo use the API, first create aBlekkoobject using your “source” or “auth”
API key:import blekko
api = blekko.Blekko(source='my_api_key')Then, to perform searches, use thequerymethod. Its arguments are the
search terms (as a string) and, optionally, the page number:results = api.query('peach cobbler')The returned object is a sequence containingResultobjects, which
themselves have a number of useful fields:for result in results:
    print result.url_title
    print result.url
    print result.snippetErrors in communicating with the server are raised asBlekkoErrorexceptions, so you’ll want to handle these exceptions when making calls to the
API.An ExamplePutting it all together, here’s a short script that gets a single link for
search terms on the command line:import blekko
import sys

_api = blekko.Blekko(source='my_api_key')

def get_link(terms):
    try:
        res = _api.query(terms + ' /ps=1')
    except blekko.BlekkoError as exc:
        print >>sys.stderr, str(exc)
        return None
    if len(res):
        return res[0].url

if __name__ == '__main__':
    link = get_link(' '.join(sys.argv[1:]))
    if link:
        print(link)
    else:
        sys.exit(1)Page StatisticsBlekko provides an API for getting SEO-related statistics for a URL. Use thepagestatsmethod, which takes a URL as its only parameter, to get a
dictionary containing information about a page:>>> api.pagestats('http://python.org/')
{u'cached': True, u'ip': u'82.94.164.162', u'host_rank': 3835.107267,
u'host_inlinks': 467267, u'adsense': None, u'dup': True,
u'rss': u'http://www.python.org/channews.rdf'}CreditsThese bindings were written byAdrian Sampsonand modeled after thePerl
bindingsby Greg Lindahl. The source is made available under theMIT
license.