Saravanan666/pypi-org huggingface dataset:
Package: hashwd
hashwdIntroduction
hashwd is a command-line application that generates strong, random passwords using a list of words and optional numbers and symbols. The password is generated by randomly selecting words from a dictionary file, capitalizing one of the words, and adding optional numbers and symbols at the beginning or end of the password.Commands
generate: generates a new password using the default or custom parameters
clear: clears the OS clipboard
Arguments
-h, --help: Show the help message and exit
-d, --default: Use default values for number of words, numbers, and symbols
-w, --words: Number of words in the password (must be between 1 and 99)
-n, --numbers: Number of numbers in the password (must be between 0 and 9)
-s, --symbols: Number of symbols in the password (must be between 0 and 9)
-c, --copy: Copy the password to the clipboard
-S, --show: Print the password to the console
-P, --prompt: Prompt for number of words, numbers, and symbolsUsage
To use the script, run the following command in the terminal:
python hashwd.py generate [-h] [-d] [-w W] [-n N] [-s S] [-c] [-S] [-P] [-C]Generate a password with the default number of words, numbers, and symbols:
python hashwd.py generateGenerate a password with 5 words, 2 numbers, and 3 symbols:
python hashwd.py generate -w 5 -n 2 -s 3Generate a password and prompt for the number of words, numbers, and symbols. Additionally, print the password to the terminal and copy it to the clipboard automatically:
python hashwd.py -PScClear the clipboard:
python hashwd.py clearRequirements
Python 3
pyperclip (for copying the password to the clipboard)
requests
argparse
randomLicense
hashwd is released under the GNU General Public License v3.0.Credits
hashwd was developed by Jordan Langland, 2023.
Package: hashwire
HashwireHashWires are extremely efficient to create commitments via hash multichains. In hashwire a digit represent a value from the position in the hash multichain. The hash multichain has a hash chain per digitposition,  each of length 10. For example, an 8 digit number will require a hash multichain with 8 hash chains when transforming digit number with hashwire.
If the same digit appears in the same position across multiple partitions, only one commitment to that digit needs to be generated and can be reused.For example, an 8 digit number will never require more than 80 SHA26 operations!
Think how it would be represented with a classic hash chain.InstallThe source code is currently hosted on GitHub at:https://github.com/Hugloss/hashWireThe latest released version are available at thePython Package Index (PyPI)# PyPIpipinstallhashwireLicenseMITExampleimporthashwireashwh=hw.HashChains(13770)print(h.mdp)>>[13770,13769,13699,12999,9999]print(h.seeds)>>['71e0e4f637bfe1ef668fae90435f2c254beb02471dcea1507b20e43237c7c891','c3d05a2ffe810f20a2f75f140668bae8e934962d984a3e91df94412c9dcaecd4','006ccb9fbf32d766dfc82c5b9ecf09ff670609b2eec5203c34b743bbec687a1f','e25b065d21ea5b0089fba7de484df6ee3fa213054e780473183acc3c3ec92f36','df0358ccf75d97eb690c4900b3af25277b786a6277c183bcc8ce0cf79419e6df']print(h.hash_chains)>>||0|1|2|3|4||---:|:--------------|:--------------|:--------------|:--------------|:--------------||0|b8621c2cf5...|5419420325...|5110c37435...|97a3f53515...|8d67f816fc...||1|04086ee0ff...|c89832a67c...|cbd9c9d55d...|68d14ee5c0...|6d55ebd146...||2|16acb11ba8...|403587d2d8...|328f66c316...|0a5431e4b1...|d7dad3336f...||3|4cca995753...|7d14d3705b...|21c4f0a677...|fd86ade7d5...|601d828c7a...||4|b3095eb322...|f56751f8ce...|ff56251509...|cdd3c69966...|8bfaff3bc0...||5|49a97db1f7...|82b37be23a...|49ed8decaa...|296aadc7c6...|029af6b8c9...||6|caaa4def53...|90461f8376...|cd7ee6056f...|41f740a1b2...|006129d74d...||7|bf83759942...|489acd60ff...|001d3e8d07...|252d0446db...|de9ff13270...||8|3252f34330...|740a730d2c...|b7a8a1e9d3...|fe006a4bc2...|9fe5a28d2f...||9|272cdd532b...|790b25ac7f...|94ac568dae...|99ed55b8b0...|f4372d2062...|print(h.commitments)>>||13770|13769|13699|12999|9999||---:|:--------------|:--------------|:--------------|:--------------|:--------------|||04086ee0ff...|04086ee0ff...|04086ee0ff...|04086ee0ff...|790b25ac7f...|||7d14d3705b...|7d14d3705b...|7d14d3705b...|403587d2d8...|94ac568dae...|||001d3e8d07...|001d3e8d07...|cd7ee6056f...|94ac568dae...|99ed55b8b0...|||252d0446db...|41f740a1b2...|99ed55b8b0...|99ed55b8b0...|f4372d2062...|||8d67f816fc...|f4372d2062...|f4372d2062...|f4372d2062...||Another example is:importhashwirehashwire.hash.mdp(13645)>>[13645,13639,13599,12999,9999]You can find more information in thecode examples.Code examplesExamples how a sequence of digits can be presented with hashwire and how hash multichain is used.Introduction to hashwire and hash chains is found here:Hashwire introductionExample that generate the code above, when seed is known, is found here:Code in this readme fileAnother example when seed is generated:Basic example
Package: hashy
hashyAnother hash library.hashy provides an md5, sha256 or sha512 for string, file, dict, list and set.String and file hashes are conventional and can be compared to other implementations. For example
you can go to an online hash calculator for "a" and get the same hash as hashy generates.Hashes for complex data types like dict, list and set are specific to hashy.cachyhashyalso providescachy, a decorator that can be used to persistently cache the results of a function to
disk. It is similar to@functools.cache, except:Persistent (saved to local disk)Optionally can be saved to a user-specified directory, otherwise it's the usual cache directory for the OSOptional user-specified cache life.Doesn't require arguments be frozen and/or pickle-able. Uses hashy to create a hash of the arguments.Examplefrom hashy import get_string_sha256

print(get_string_sha256("a"))

# prints
# ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb
Package: hasiicommon
Host common UI artifacts for various projects I am developingWritten byHumberto A. Sanchez II(C) 2023NoteFor all kind of problems, requests, enhancements, bug reports, etc.,
please drop me an e-mail.Developer NotesThis project usesbuildlackeyfor day to day development buildsI am concerned about GitHub's Copilot projectI urge you to read about theGive up GitHubcampaign fromthe Software Freedom Conservancy.While I do not advocate for all the issues listed there I do not like that
a company like Microsoft may profit from open source projects.I continue to use GitHub because it offers the services I need for free.  But, I continue
to monitor their terms of service.Any use of this project's code by GitHub Copilot, past or present, is done
without my permission.  I do not consent to GitHub's use of this project's
code in Copilot.A repository owner may opt out of Copilot by changing Settings --> GitHub Copilot.I have done so.
Package: hasiihelper
Host common artifacts for various projects I am developing.  This is package does not include any wxPython dependencyWritten byHumberto A. Sanchez II(C) 2023NoteFor all kind of problems, requests, enhancements, bug reports, etc.,
please drop me an e-mail.Developer NotesThis project usesbuildlackeyfor day to day development buildsI am concerned about GitHub's Copilot projectI urge you to read about theGive up GitHubcampaign fromthe Software Freedom Conservancy.While I do not advocate for all the issues listed there I do not like that
a company like Microsoft may profit from open source projects.I continue to use GitHub because it offers the services I need for free.  But, I continue
to monitor their terms of service.Any use of this project's code by GitHub Copilot, past or present, is done
without my permission.  I do not consent to GitHub's use of this project's
code in Copilot.A repository owner may opt out of Copilot by changing Settings --> GitHub Copilot.I have done so.
Package: hask
haskHaskell in PythonWARNING: This repo is in development. It was automatically generated withmkpylib. If you're reading this message, it means that I use this repo for my own purposes right now. It might not do anything at all; the default functionality isprint('TODO').If you really want to try it out, feel free. I recommend reading through thetestsand commit history to see if it does what you need, orask mefor status updates.Stay tuned!Installpip3 install -U haskOr develop locally:git clone https://github.com/shawwn/hask ~/hask
cd ~/hask
python3 setup.py developUsageimporthaskprint('TODO')LicenseMIT. SeeLICENSEfile.ContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: haslda-log
This package provides a simple logging functionality.
In the current version it allows you topost log messages that are added in a local file (log.txt)completely clear the log fileThe package provides two functions:Posting a log messagelog("message")
optional params aresource: i.e. thefilevariablelevel: i.e. "ERR", default is "INF"Clearing the log fileclear()
no params
Package: haso-api-client
Haso API ClientHaso API Client is a Python package for making HTTP requests to web APIs. It provides a simple interface for sending GET, POST, PUT, and DELETE requests, handling query parameters and request bodies, and parsing JSON responses. API Client is designed to be easy to use and to integrate with any Python project.InstallationHaso API Client can be installed using pip:pip install haso-api-clientUsageHere's an example of how to use Haso API Client to make a GET request:importhaso_api_clientbase_url="https://jsonplaceholder.typicode.com"client=haso_api_client.APIClient(base_url=base_url)response,status_code,headers=client.get("/posts/1")API Client also supports POST, PUT, and DELETE requests:# POST requestdata={"userId":1,"id":101,"title":"test title","body":"test body"}response,status_code,headers=client.post(path="/posts",data=data)# PUT requestdata={"userId":1,"id":1,"title":"test title","body":"test body"}response,status_code,headers=client.put(path="/posts/1",data=data)# DELETE requestresponse,status_code,_=client.delete("/posts/1")ContributingBug reports and pull requests are welcome on GitHub athttps://github.com/Haseb-ali/api_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.LicenseAPI Client is released under theMIT License.
Package: hasoffers
This package provides a Python low-level client for theHasOffersAPI.Installationpip install hasoffersUsage ExamplesInstantiate a client with your network token and network id:from hasoffers import BrandClient

client = BrandClient("networktoken", "networkid")Or for the Affiliate API:from hasoffers import AffiliateClient

client = AffiliateClient("api_key", "network_id")The general usage to call an API method isclient.request(target, method, **params).For example, to retrieve all offer categories:response = client.request("Application", "findAllOfferCategories",
                          filters={
                              "status": {"NOT_EQUAL": "deleted"}
                          })

if response.success:
    # do something with
    response.dataOr to retrieve all conversions for an advertiser:response = client.request("Conversion", "findAll",
                          page=1,
                          limit=100,
                          filters={
                              "advertiser_id": 444,
                          })

if response.success:
    # do something with
    response.dataTo use a combination of OR and AND in filters:# Find all conversions where (advertiser_id == 444 OR advertiser_id == 555 OR revenue >= 100) AND user_agent contains "AppleWebKit"
response = client.request("Conversion", "findAll",
                          page=1,
                          limit=100,
                          filters={
                              "OR": {
                                  "advertiser_id": [444, 555],
                                  "revenue": {
                                      "GREATER_THAN_OR_EQUAL_TO": 100
                                  }
                              },
                              "user_agent": {
                                  "LIKE": "%AppleWebKit%"
                              }
                          })Note that a special keyword argument calledresponse_classcan be passed to substitute the default response wrapper. For example:from hasoffers import Response


class CustomResponse(Response):

    def next_page(self):
        return int(self.data.get('page')) + 1

    def has_more(self):
        return int(self.data.get('page')) < int(self.data.get('pageCount'))


response = client.request("Conversion", "findAll",
                          limit=100,
                          page=1,
                          response_class=CustomResponse)Running TeststoxContributionsAll contributions and comments are welcome.Change Logv0.2.1Add ability to specify HTTP methods (verbs) when making a request. Thanksjeffkayserv0.2.0Add support for Affiliate API. Thanksjarradhv0.1.1Switch to Semantic VersioningFix issue with parse_requirements for newer versions of pip (>=6.0.0)v0.1Initial
Package: hasp
HASPThis repository contains the wrapper script that creates Hubble
Advanced Spectral Products.The script will create coadded spectral products for each target
in each visit.  In the future, it will be able to create products
for each target in each program.Installing the package will instll the wrapper script: swrapper.To run:swrapper -i . -o products -t threshold-i --input_directory

        The name of the directory containing the individual exposures to
        be coadded

    -o --output_directory

        The name of the directory containing the coadded spectral products

    -t --threshold

        Threshold for flux-based filtering.  Optional, default value is -50
Package: hasr
hasrDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-nhasr--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallhasrnbdev# activate conda environment$condaactivatehasr# make sure the hasr package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the hasr package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/hasr.gitor fromconda$condainstall-cdsm-72hasror frompypi$pipinstallhasrDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: hassapi
Home AssistantWeb API Client for PythonExamplesfromhassapiimportHasshass=Hass(hassurl="http://IP_ADDRESS:8123/",token="YOUR_HASS_TOKEN")hass.turn_on("light.bedroom_light")hass.run_script("good_morning")# If you want to bypass certificate verification. Default set to Truehass=Hass(hassurl="http://IP_ADDRESS:8123/",token="YOUR_HASS_TOKEN",verify=False)Installationpip install hassapi
Package: hass-apps
This is a collection of useful apps and snippets to empower Home Assistant
and AppDaemon even more.DocumentationRead thedetailled documentationhosted at readthedocs.DonationsNoteI work on this project in my spare time, as many free software
developers do. And of course, I enjoy this work a lot. There is no
and will never be a need to pay anything for using this software.However, if you want to honor the hundreds of hours continuously spent
with writing code and documentation, testing and providing support by
donating me a cup of coffee, a beer in the evening, my monthly hosting
fees or anything else embellishing my day a little more, that would be
awesome. If you decide doing so, I want to thank you very much! Please
be assured that I’m not presuming anybody to donate, it’s entirely
your choice.Ensure ongoing development and support with a monthly
donation, no matter how small.Or make an one-time donation.ETH: 0xCE6B204B6AB5B93156f4FCD373482e148753beAbZEC: t1RKFyt4qqtqdYfprf8HZoDHRNLNzhe35EDMonthly SupportersThese awesome supporters show their appreciation with a monthly donation
and help keeping hass-apps alive. If you want to be listed here, please
let me know!None yet.
Package: hass-auth-synology
Authentication provider using Synology DSM users for Home AssistantThe Synology authentication provider lets you authenticate using the users in your Synology DSM. Anyone with a user account on your Synology NAS will be able to login.The provider supports 2-factor authentication, according to what is configured in DSM.
When logging in, there will be a field to enter the 2FA code. The field is optional, but it should be used if your account in DSM requires 2FA. Otherwise, it can be left empty.The use of 2FA within this provider is independent of the 2FA configuration in Home Assistant. If you enable 2FA in Home Assistant, and it is also enabled in Synology, you will have to enter 2 2FA codes.The provider requires DSM 7.0 or newer.InstallationHome Assistant ContainerUse this package's container instead of the Home Assistant one.ghcr.io/sdebruyn/hass-auth-synology:latestHome Assistant CoreThe installation will have to be redone everytime you update Home Assistant.Make sure the Home Assistant virtualenv is activated:source bin/activateInstall this package:pip3 install hass-auth-synologyRun the installation command:hass-auth-synology installHome Assistant SupervisedThe installation will have to be redone everytime you update Home Assistant.Search for the “SSH & Web Terminal” add-on in the add-on store and install it.Configure the username and password/authorized_keys options.Start the “SSH & Web Terminal” add-onRun the following code through the web terminal:pip3installhass-auth-synology
hass-auth-synologyinstallYou can now disable and remove the “SSH & Web Terminal” add-on again.ConfigurationAdd the following to your Home Assistant configuration:homeassistant:auth_providers:-type:synologyhost:nas.localport:443secure:trueverify_cert:truehost: IP address or hostname of your NAS.port: Port on which DSM is available. Make sure to use one corresponding to HTTP or HTTPS as configured withsecure.secure(optional): Enable this to use HTTPS instead of HTTP. (default: false)verify_cert(optional): Enable this to verify the certificate when using HTTPS (default: false).
Make sure to disable this when using self-signed certificates or an IP address instead of a hostname.
The setting is ignored whensecureis false.TroubleshootingIf any errors occur, make sure to check your Home Assistant logs. If the connection succeeds, but authentication fails, Synology DSM will output an error code.
The meaning of the error code can be foundin the Synology DSM Login API documentation.Feel free to open an issue on GitHub if you encounter any issues.License & attributionApache v2.0Test utilities undertestsare coming fromHome Assistant Core.
Package: hass-deps
hass-depsAn un-opinionated command line dependency manager for Home AssistantInstallingpipinstallhass-depsUsagehass-depscan be invoked directly from the root of your Home Assistant configuration directory, however the config
directory can be specified via the--config-dirswitch.Add a dependencyhass-depsadd<dependencysource>e.g.:hass-depsaddhttps://github.com/nickw444/deebot-t8-hass.gitInstall/sync all dependenciesEnsures the local dependencies are in-sync with those defined in the lock file.hass-depsinstallTo force reinstallation of dependencies even where installed version matches the lock file version, use the--forceswitch:hass-depsinstall--forceUpgrade a dependencyUpgrading a single dependency to the latest version:hass-depsupgrade<dependencysource>Upgrading all dependencies to the latest version:hass-depsupgradeWhy notHACS?HACSis a great plugin for Home Assistant, particularly for less tech-savvy users who might not be familiar connecting to a remote machine via SSH or Samba to install a new dependency.From my limited time using HACS I was disapointed there was no way to "check in" the set of installed dependencies, other than taking a snapshot of the Home Assistant configuration.Due to this, my config validation pipeline in CI failed (as it had no way to know which dependencies were installed).Furthermore, the recent security advisory for HACS came to light, which further made me consider whether I wanted such a fully functional addon part of my Home Assistant environment.Usinghass-deps, references to your dependencies can be checked in to version control, and reinstalled in a reproducible (due to the lockfile functionality inhass-heps)
Package: hass-desktop-sensor
HASS Desktop SensorDesktop activity sensor for Home AssistantFeaturesTracks idleness thanks toxidlehookReports system resources usageBy default you'll be considered idle if you don't use the mouse and keyboard for 5 minutes.
Note that if you're playing some audio, you won't be considered idle. This is to prevent
false positives while watching videos.The Desktop Sensor will report status to Home Assistant every 5 seconds by default.RequirementsInstall xidlehookEnable theAPI integrationof Home Assistant (just addapi:to yourconfiguration.yaml).Create a long-lived access token (go to your profile in Home Assistant, scroll to the bottom, and click "Create Token")InstallationAs simple as :$pipinstall--userhass-desktop-sensorTo make sure it's working, try to run the script manually like so :$HASS_ACCESS_TOKEN=[YOURACCESSTOKENHERE]hass_desktop_sensor--hass-url'http://homeassistant.local:8123'--hass-device-name'My Laptop'To test your automations, you can pass--idle-delay 1and--report-interval 1to the command line.
You will be considered idle after 1 second, and your idleness status will be reported every second.
This is useful for debug purposes but I don't recommend doing that in real world scenarios.Note: You can increase log verbosity by settingLOGLEVEL=DEBUGat the beginning of your command line.Automatic startupChances are you are using systemd, if you're not, you're on your own. But I'm pretty sure if you're not
using systemd you'll figure out by yourself how to automatically start this script :)So... For systemd users, create~/.config/systemd/user/hass-desktop-sensor.servicewith the following content :[Unit]Description=Home Assistant Desktop SensorAfter=network-online.target pulseaudio.service[Service]Type=simpleEnvironment=DISPLAY=:0Environment=HASS_ACCESS_TOKEN=[YOUR ACCESS TOKEN HERE]ExecStart=%h/.local/bin/hass_desktop_sensor --hass-url 'http://homeassistant.local:8123' --hass-device-name 'My Laptop'[Install]WantedBy=default.targetThen runsystemctl --user start hass-desktop-sensorto make sure the service starts properly.If it does, enable the service usingsystemctl --user enable hass-desktop-sensor.Improved resilienceIf for whatever reason the desktop sensor is not able to report idleness (power failure, network issues, etc.)
some of your automations might not trigger. This is why additionnaly to this desktop sensor, I suggest you
setup theping integrationof Home Assistant to turn off
what is usually turned on by your automations based on the Desktop Sensor.
Package: hassdevice
A library for building MQTT devices for HomeAssistantFree software: Apache Software License 2.0Installationpip install hassdeviceDocumentationhttps://python-hassdevice.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.2 (2017-07-17)Drop Python 2.7 supportAddhassdevice.hosts.SimpleMQTTHost0.0.1 (2017-07-10)First release on PyPI.