Saravanan666/pypi-org huggingface dataset:
Package: holvirc
# python-holvircDrive [Holvi][holvi] API via Python. Unlike [holviapi] this uses your
username and password for login so you need to to beg Holvi for a
special API-key.[holvi]:https://about.holvi.com/en/[holviapi]:https://github.com/rambo/python-holviapi## NOTE1. This uses combination of reverse-engineered APIs, when something
changes in Holvis end this will probably break.
2. If you use the default login method Holvi knows you are using this
library, this should be a good thing so they can inform you about
upcoming breaking changes.## How to useSince writing documentation is boring I suggest you look at the tests
here and in [holviapi] they should give a decent idea.
Package: holybooks
holybooksAn API Wrapper for extracting info from the Al-Quran API and the Bible api. I will add more functions for certain api in the future! Documentation for this project is not avalaible at the moment. Full function can be seen inclient.pyInstallationFind the modulehere.pipinstallholybooksUsage# First make the client instancefromholybooksimportClientclient=Client(quran_translation="en.asad",bible_translation="kjv")client.fetch_ayah("2:255","en.pickthall")#Retrives a verse from the Quran api. This will get chapter 2, verse 255. The second argument is the translation, if None specified the default translation is your quran_translation in your client instance.client.fetch_verse("Genesis","1:10","kjv")#Retrives verses from the Bible API. This will get Genesis chapter 1, verse 1-10. The second argument is the translation, if None specified the default translation is your bible_translation in your client instance.API's That I UsedQur'anBibleContributingPull requests are welcome! Particularly for supporting other api(s).
Please make sure to update tests as appropriate.LicenseMIT
Package: holy-cli
HolyHoly is a CLI tool that makes it effortless to create, manage and connect to servers in your AWS account.If you need to quickly create EC2 instances for development and testing, this tool is for you. It abstracts away all of the configuration for VPC, IAM, security group, key pair etc into one command (holy server create).Demo video →InstallationPlease make sure you have Python 3.9 or newer (python --version):pipinstallholy-cli
holy--helpProblems?Visit the wiki →Upgradepipinstall--upgradeholy-cliConfigurationWatch our AWS setup guide →To run Holy commands, you will need to have credentials to your AWS account set. Holy will look for credentials the same way as the AWS CLI or SDK does (e.g. inside~/.aws/credentials fileor asenvironment variables).Ensure the IAM user for those credentials has theAdministratorAccesspermission policy attached.UsageCreate a server:# No options, create with a random name using amazon-linux OS on a micro instance (within the free tier):holyservercreate# Create with a specific name, using ubuntu on a large compute optimized instance with 30GB disk space:holyservercreatemy_server--os=ubuntu:22--type=c4.large--disk-size=30# Create with a specific Amazon machine image:holyservercreatemy_server--image-id="ami-00d5053dee71cee04"# Create and open ports 22 and 3000 to the world:holyservercreatemy_server--ports="22,3000"# Create and allow the server to list all S3 buckets:holyservercreatemy_server--actions="s3:ListAllMyBuckets"# Create and run a script once launched:holyservercreatemy_server--script=/path/to/install_software.shSSH into a server:# SSH straight in:holyserversshmy_server# Save SSH config for use later (VS Code, ssh command etc):holyserversshmy_server--save# SSH in with a particular username:holyserversshmy_server--username=rootManage inbound server ports:# Open port 80 to the world:holyserverportmy_server--action=open--port=80# Close port 80 to the world:holyserverportmy_server--action=close--port=80# Open port 80 to a specific IP address:holyserverportmy_server--action=open--port=80--ip=1.2.3.4List all servers:holyserverlist# Filter to just servers runningholyserverlist--runningSpecific server actions:# View info about a serverholyserverinfomy_server# Start a serverholyserverstartmy_server# Stop a serverholyserverstopmy_server# Delete a serverholyserverdeletemy_serverRemove all infrastructure created by holy:holyteardownSupportVisit thewikifor more details and FAQ'sCreate anew discussionfor any questionsCreate anissuefor bug reports and feature requestsDevelopmentClone this repo and pip install:pipinstall-e.[tests]pytest# run unit tests
Package: holy_crypt
Holy-Crypt===========Make sure you place the holykeys.txt inside your projects root directory. I'll move this to a string array soon. You can find it on the githubHere is an example output```pythonMessage: "I'm trying to fight the NSA, work with me on it"Key: 'Git8f7YYQ8roroOtmkhtvap1iRuah.Jhsswti5iOAhhuhYsR~ubYJaSOS5stk8~asav\nrAOe4sW1svGWeetfTeG8neQ|ST7pO~Xoasnhi4Gaa|ua1io..DfttiWu5QsEs|setRw0EetarAiltalR4Ye1h7pndQ|ioGav|EsraGJsnsERihash51e1Pon8|ip|l5Pdh~TEwtiDwt.|w1D|ih|ra8wGRnXtanmJOsoo1a'Encrypted: '\r\r^XW&O?<\x1c\x0f`^\x0c2ZQPY\x11gFRQ4"3\n\x05"6W[\x10kZZ\x1a\x069#\x05T`\x05?d'Decrypted: "I'm trying to fight the NSA, work with me on it"```An example of usage is included within the holy_crypt.py it is well documented and easy to understandIf you have any questions feel free to ask me## Contact info* **Twitter:** [@CodeusaSoftware](https://twitter.com/codeusasoftware)* **Blog:** [andrew.codeusa.net](http://andrew.codeusa.net)* **Youtube:** [Youtube Channel](http://www.youtube.com/codeusasoftware)##Why Did I Make This?This was made in response to Paypals ludicrious claim that you need "goverment approval" to encrpyt your own stuff, that and the fact that even just looking up anything about encrpytion or Linux can have you end up on a watch list. What a time to be alive.##Buy Me a Beer[If you like it that is](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TWHNPSC7HRNR2).
Package: homage-to-the-square
Homage to the squarea command line app for generating four superimposed squares of different colors
after Josef AlbersHomage to the SquarepaintingsRequirementsPython 3InstallationUsing Pip$pipinstallhomage-to-the-squareManual$gitclonehttps://github.com/talnoznisky/homage-to-the-square$cdhomage$pythonsetup.pyinstallUsage$homage-to-the-squareExamplesOriginals:CLI output:More info:https://www.guggenheim.org/artwork/173
Package: homcloud
READMEPersistent homology software.Websitehttp://homcloud.dev/index.en.htmlREQUIREHomCloud supports the following computing environments.Ubuntu (newer than 18.04 LTS)Debian (newer than buster)Linux with anaconda (miniconda3)Intel Mac with homebrewApple Silicon Mac (M1) with miniforge3Windows (64bit)Under any system, Python 3.8 or newer versions are required.INSTALLPlease see the following install tutorial:Japanese:https://homcloud.dev/install-guide/index.htmlEnglish:https://homcloud.dev/install-guide/index.en.htmlNotesIf you don't want to install the software globally, please use virtualenv or venv.Upgrading HomCloudSee the following documents.Japanesehttps://homcloud.dev/install-guide/index.htmlEnglishhttps://homcloud.dev/install-guide/index.en.htmlTutorialsJapanesehttps://homcloud.dev/tutorials.htmlEnglishhttps://homcloud.dev/tutorials.en.htmlAPI referenceEnglish version is only available athttps://homcloud.dev/python-api/.TroubleshootingSeeFAQ.AUTHORSIppei Obayashi and HomCloud development team.ContributorsTomohide WadaTian TunhuaNational Institute of Advanced Industrial Science and Technology (AIST)
Package: homcv
HomCV: Homotopical Computer VisionHomCV is an open source Python library applying homotopy theoretic methods to computer vision.InstallationUse the package managerpipto install HomCV.pipinstallhomcvExamples>>>fromhomcv.betti_numbersimportbetti_numbers>>>betti_numbers(circle_greyscale_image)array([1,0],dtype=int8)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: homealone
Homealone home automation platformOverviewThis project defines a platform and application framework that enables sensing and control of various devices in a home.Any device in the home whose state can be sensed or controlled electronically can be connected to a system that can manage that device and allow remote access. Examples of devices include such things as light fixtures, sprinkler valves, temperature sensors, door sensors, etc.  This project does not define specific hardware for these devices, but rather defines the software that allows any device to be interfaced to the system.At the lowest level, a template is defined that allows a hardware interface to be abstracted to a common API.  The server on which the software is running may physically connect to the device using any hardware interface such as GPIO pins, a serial port, or a network adapter.  An object model is defined that is implemented with an application running on that server that further abstracts the specific functions of the device.  Network protocols are defined that enable the server to advertise itself on the network and allow access to the devices that it is connected to. Other servers may implement human interfaces such as a web server.Design goalsThe design of the project targets the following goals.Distributed - Functions are distributed across devices in the system.Devices are autonomous - Whenever possible, devices can run independently of the system.  There is no requirement for a centralized controller.Devices are dynamically discoverable - Devices can be added or removed from the system without requiring changes to a system configuration.Connected to the local home network - Devices are connected to the system via the local wired or wireless home network.Not dependent on the internet - The system may be accessed remotely via the internet and use cloud servers for certain functions, however internet connectivity is not required for routine functions.Reasonably secure - The system does not explicitly implement any security features.  It relies on the security of the local network.Not dependent on proprietary systems, interfaces, or devices - Proprietary interfaces and devices may be accessed, but there is no requirement for any particular manufacturer's products.Open source - All code is open source.LimitationsDoes not provide applications - Examples are provided, however they must be tailored for specific installations.Does not provide a user interface - An example web based user interface is provided that may be extended.Operating system specific - Currently only runs on Raspberry Pi OS, however there is no inherent reason it could not be made OS independent.DocumentationMore detailed documentation and examples may be found in these files.Object ModelResource naming and attributesRemote resourcesSchedulerApplicationsServicesSpecific hardware support
Package: homeassistant
Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.Check outhome-assistant.iofora
demo,installation instructions,tutorialsanddocumentation.Featured integrationsThe system is built using a modular approach so support for other devices or actions can be implemented easily. See also thesection on architectureand thesection on creating your own
components.If you run into issues while using Home Assistant or during development
of a component, check theHome Assistant help sectionof our website for further help and information.
Package: home-assistant-bluetooth
Home Assistant BluetoothHome Assistant Bluetooth Models and HelpersUsageThis library is for accessing Home Assistant Bluetooth models. Libraries use these models to receive and parse Bluetooth advertisement data.@dataclasses.dataclassclassBluetoothServiceInfo(BaseServiceInfo):"""Prepared info from bluetooth entries."""name:straddress:strrssi:intmanufacturer_data:dict[int,bytes]service_data:dict[str,bytes]service_uuids:list[str]source:strThe data used to populate BluetoothServiceInfo comes frombleak'sBLEDeviceandAdvertisementData, except for thesourcefield, which comes from Home Assistant and represents the source of the data.In the future, Home Assistant may support remote Bluetooth transceivers, which may use the source field to determine which device is closest.InstallationInstall this via pip (or your favourite package manager):pip install home-assistant-bluetoothContributors ✨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: home-assistant-frontend
Home Assistant FrontendThis is the repository for the officialHome Assistantfrontend.View demo of Home AssistantMore information about Home AssistantFrontend development instructionsDevelopmentInitial setup:script/setupDevelopment:InstructionsProduction build:script/build_frontendGallery:cd gallery && script/develop_gallerySupervisor:InstructionsFrontend developmentClassic environmentA complete guide can be found at the followinglink. It describes a short guide for the build of project.LicenseHome Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.We useBrowserStackto test Home Assistant on a large variety of devices.
Package: homeassistant-historical-sensor
Historical sensors for Home AssistantFeed historical data into Home Assistant database.HomeAssistant architecture is built around polling (or pushing) data from devices, or data providers, in "real-time". Some data sources (e.g, energy, water or gas providers) can't be polled in real-time or readings are not accurate. However reading historical data, like last month consumption, it's possible and accurate. This module adds support to this.This module uses therecodercomponent and custom state creation to store states "from the past".Current projects using this module:ideenergy energy monitorTechnical detailsQ. How it's accomplished?.A. It's a relatively easy answer but needs to be broken into some pieces:A new property for sensors:historical_states. This property holds a list ofHistoricalStates which are, basically, astate+datetime(with tzinfo), so… the data we want.A new hook for sensor:async_update_historical_states. This method is responsible to updatehistorical_statesproperty.This is the only function that needs to be implemented.A new method, implemented by HistoricalSensor class:async_write_ha_historical_states. This method handles the details of creating tweaked states in the past and write them into the database using therecordercomponent of Home Assistant core.Q. Something else?A. Historical sensors can't provide the current state, Home Assistant will show "undefined" state forever, it's OK and intentional.External vs. internal statisticsImporting CSV filesLicensesLogo by Danny Allen (Public domain license)https://publicdomainvectors.org/es/vectoriales-gratuitas/Icono-de-configuraci%C3%B3n-del-reloj/88901.html
Package: home-assistant-intents
Home Assistant Intents PackagePackaging forintentsInstallClone the repo and create a virtual environment:gitclone--recursivehttps://github.com/home-assistant/intents-packagecdintents-package
script/setupPackageUpdate the submodule:gitsubmoduleupdate--remoteBump the version inpyproject.tomltoYYYY.M.Dand commit changes.Generate dist:script/packageUpload.tar.gzand.whlindist/to PyPI.
Package: home-assistant-lights
ha_lightsSimple python library to control lights and switches in Home Assistant.Relies on dataclasses and namedtuples to provide auto-completion for interactive environments such as colab.RequirementsInstall the package with pippipinstall'home-assistant-lights'Sample useimporthomeassistant_apiashaimportha_lightsfromcollectionsimportnamedtupleclient=ha.Client(URL,TOKEN)factory=ha_lights.Factory(client)lights,switches=factory.AllLights(),factory.AllSwitches()COLORS={'chill_evening':[255,220,180],'pure_white':[255,255,255],'red':[255,0,0],}Colors=namedtuple('Colors',COLORS)(**COLORS)# Turn on a specific light with optional brightness and color settingslights.living_room_tripod.turn_on(brightness=255,rgb_color=Colors.chill_evening)# Create an entity group and use it to control lights and switches with a single APIliving_room=EntityGroup([lights.living_room_tripod,switches.lr_smart_plug])living_room.toggle()Optionally (if you have an invalid cert)importurllib3urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)client=ha.Client(URL,TOKEN,global_request_kwargs={'verify':False})
Package: homeassistant-magiwand
homeassistant-magiwandThis code can be used to connect MagiQuest IR wands to an instance of HomeAssistant.  This extends a related project of mine, pywand [source] [PyPI]This project ships with a script that will monitor a lirc device, and trigger HomeAssistant Automations via web api call. Currently, the scope is pretty narrow, but I hope to expand it over time to meet my needs.Installation, Setup, and Configtldr:Enable your infrared deviceInstall python3pip install homeassistant-magiwandEnable a Ling-Lived Access Token in HomeAssistantEnable api and add an Automation to run in HomeAssistantEdit/etc/wand_config.iniRunha_wand_service.pyMore Detailspywand: Installation and Pre-Reqspywand: ConfigurationEnable the REST API for HomeAssistant:HomeAssistant: REST APICreate an Automation for our sensor. This is what will be triggered when the wand is waved.HomeAssistant: AutomationCreate a Long-Lived Access Token within your HomeAssistant Instance.Continue configuring the wand configuration file with the HOMEASSISTANT section. Seeexample_wand_config.inifor more information.Execute the service by runningha_wand_service.pyRunning the serviceJust make sure the config file is right, see previous sectionsUsageha_wand_service.py -h 
usage: ha_wand_service.py [-h] [--loglevel LOGLEVEL]

optional arguments:
  -h, --help           show this help message and exit
  --loglevel LOGLEVEL  Loglevel: CRITICAL, ERROR, WARNING (default), INFO,
                       DEBUG
Package: homeassistant-mqtt-binding
Homeassistant MQTT Binding for pythonThis package enables you to implement arbitrary devices in python supported in homeassistant. The communication with
homeassistant is handled by MQTT. For example you could write an simple program running on a raspberry pi controlling an
LED. By exposing this configuration to homeassistant you can easily control the LED via HA.The base class handles the following things automatically:registering devices in homeassistant through the mqtt discovery protocolsetting the device as available once fully setupsetting the device unavailable when quitting the applicationInstallationpython3 -m pip install homeassistant-mqtt-bindingthe dependencies should be installed automaticallyUsagecreate an paho mqtt Client instance connected to your mqtt serverinstantiate your desired device and pass the Client instance to the constructorwhen your program closes make sure to call theclose()function of each device for cleanupExamplesThe following examples require an already running stack of homeassistant and an MQTT server.See theexamplesfolder for all demo scripts.switch.py:
simple switch device that can be toggled by homeassistantExpanding the applicationSince I don't use all devices I haven't implemented them yet. You can easily implement any missing device:create an empty class subclassing any of the devices (normally you would subclassMQTTDeviceorMQTTSensor).implement thepre_discovery()if necessary:It gets called before sending out the discovery payload to the broker. This is the right place to place custom config
options for the config
dictionary viaadd_config_option()implement thepost_discovery()if necessary:It gets called right after sending out the discovery payload to the broker. Use it to send initial values to HA, if
it is necessary that
HA knows about the device beforehand.Implement any callbacks that might be necessary for all devices that can receive data. (commands for switches for
example).If your device needs more topics than state, configuration and set, feel free to implement them additionally.
Package: homeassistant-satellite
Home Assistant SatellitePython-based satellite forAssistthat streams audio to Home Assistant from a microphone.You must have theopenWakeWord add-oninstalled.RequirementsPython 3.9 or higherffmpeglibportaudio2 (forsounddevice)InstallationInstall Python and the required system dependencies:apt-getinstallpython3python3-pippython3-venv\ffmpeglibportaudio2Clone the repository and run the setup script:gitclonehttps://github.com/synesthesiam/homeassistant-satellite.gitcdhomeassistant-satellite
script/setupThis will create a virtual environment and install the package.Long-Lived Access TokenYou must create a long-lived access token in Home Assistant for the satellite to access the websocket API.Go to your profile page in Home AssistantScroll down to "Long-lived access tokens"Click "Create token"Enter a name and click "OK"Copy theentire tokenusing the copy button providedSave the token somewhere you can paste from laterRunningscript/run--host<IP>--token<TOKEN>where<IP>is the IP address of your Home Assistant server and<TOKEN>is the long-lived access token.This will stream audio from the default microphone to your preferred pipeline in Home Assistant.See--helpfor more optionsFeedback SoundsUse--awake-sound <WAV>and--done-sound <WAV>to play sounds when the wake word is detected and when a voice command is finished.For example:script/run...--awake-soundsounds/awake.wav--done.wavsounds/done.wavChange Microphone/SpeakerUse--mic-device <NUMBER>and--snd-device <NUMBER>to change the microphone and speaker. Get a list of devices with:python3-msounddeviceVoice Activity DetectionUse--vad webrtcvadto only stream audio when speech is detected.Make use ofsilero VADwith:.venv/bin/pip3install-rrequirements_extra.txtandscript/run...--vadsileroAudio EnhancementsUse--noise-suppression <NS>suppress background noise, such as fans (0-4 with 4 being max suppression, default: 0).Use--auto-gain <AG>to automatically increase the microphone volume (0-31 with 31 being the loudest, default: 0).Use--volume-multiplier <VM>to multiply volume by<VM>so 2.0 would be twice as loud (default: 1.0).TroubleshootingAdd--debugto get more information about the messages being exchanged with Home Assistant.Add--debug-recording-dir <DIR>to save recorded audio to a directory<DIR>.
Package: homeassistant-stubs
PEP 484 stubs for Home Assistant CoreThis is unofficial stub-only package generated fromHome Assistant Coresources.
You can use it to enable type checks against Home Assistant code in your custom component or AppDaemon app.How to useAdd it to dev dependencies of your project.
I recommend to usePoetryfor managing dependencies:poetryadd--groupdevhomeassistant-stubsPlease note that only stubs from strictly typed modules are added in this package.
This includes all core modules and some components.
Generic components likesensor,lightormedia_playerare already typed.If your project imports not yet typed components,mypywill be unable to find that module.
The best thing you can do to fix this is to submit PR to HA Core which adds type hints for these components.
After that stubs for these components will become available in this package.MotivationHome Assistant maintainers don't want to distribute typing information withhomeassistantpackage
([1],[2]).
The reason is thatPEP 561says thatpy.typedmarker is applied recursively and the whole package must support type checking.
But many of the Home Assistant components are currently not type checked.How it worksupdate_stubs.pyscript extracts list of strictly typed modules from Home Assistant configs.Then it runsstubgenwhich is shipped withmypyto generate typing stubs.New versions are generated and published automatically every 12 hours.