Saravanan666/pypi-org huggingface dataset:
Package: hat-trie-python
hat-trie-pythonPython wrapper forhttps://github.com/Tessil/hat-trie(MIT License)It's still incomplete, not all functionality is supported. Sets are not implemented yet.
Tested on Linux 2.7+, Windows 3.5+, MacOS 2.7+. It should work on Windows 2.7 also, however it's tricky to compile.Installpip install hattrie(requires Cython and a C++11 compiler)Example usage:from hattrie import HatTrieMap
htm = HatTrieMap()
htm[b"/foo"] = b"1"
htm[b"/foo/bar"] = b"2"
print(list(htm.longest_prefix(b"/foo"))) # returns [(b'/foo', b'1')]
print(list(htm.longest_prefix(b"/foo/baz"))) # returns [(b'/foo', b'1')]
print(list(htm.longest_prefix(b"/foo/bar/baz"))) # returns [(b'/foo/bar', b'2'), (b'/foo', b'1')]
print(list(htm.longest_prefix(b"/foo/bar/"))) # returns [(b'/foo/bar', b'2'), (b'/foo', b'1')]
print(list(htm.longest_prefix(b"/bar"))) # returns []
print(list(htm.longest_prefix(b""))) # returns []Any Python object is supported as value, however only bytes are supported as keys.
Package: hat-util
For more information see:online documentationgit repositoryInstallhat-utilpython library is available asPyPI project:$ pip install hat-utilhat-utilJavaScript library is available asnpm package:$ npm add @hat-open/utilBuildTo install editable installation, together with python development
dependencies, run:$ pip install -e '.[dev]'To install only python development dependencies, run:$ pip install -r requirements.pip.txtBuild tool used forhat-utilispydoit. For listing available doit tasks,
use:$ doit listDefault task:$ doitcreates wheel package and npm package insidebuilddirectory.Hat Openhat-utilis part ofHat Openproject - open-source framework of tools
and libraries for developing applications used for remote monitoring, control
and management of intelligent electronic devices such as IoT devices, PLCs,
industrial automation or home automation systems.Development of Hat Open and associated repositories is sponsored byKončar Digital.LicenseCopyright 2020-2023 Hat Open AUTHORSLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: hatyan
hatyanA Python package for harmonic tidal analysis and prediction, based on the FORTRAN version and developed for Rijkswaterstaat. Hatyan contains the methods to derive water level extremes (high and low waters) and several other water level indicators (Kenmerkende Waarden). Furthermore, hatyan provides easier access to Rijkswaterstaat data via their data distribution layer (DataDistributieLaag, DDL).Informationinstall withpip install hatyan -Uonline documentationwith contributing guide, tutorials/examples, API reference and a convenient search box.docs folderwith background informationBug or feature request? Create aGitHub issue
Package: haufe.monitoring
IntroductionA suite of views for monitoring a set of ZEO clients.Featuresaggregated view of error_logsaggregated view of instances, #threads, load and VM data sizeInstallationaddhaufe.monitoringto theeggsandzcmloptions of your buildout.cfgvisit the @@monitor view (http://your-site:port/@@monitor)Configurationaccess to some views is allowed only to a configurable set up ip addresses or networks. By default
only access from 10.0.0.0/8 is allowed. To configure the whiteliste, you have to set:$ export HAUFE_MONITORING_ALLOWED_NETWORKS=192.168.10.0/24,134.96.0.0/16Viewhaufe.monitoringcurrently provides the following view:the main view/@@monitorshows a list of all available or unavailable ZEO clients with their IP addess,
timestamp of their registration, number of worker threads, the CPU load and the vmdata size.
The buttonError logwill display an aggregated view of the /error_log instances of
all selected hosts. TheRemove hostsbutton will remove the selected host(s) from the persistent
hosts registries.the aggregated error_log view/@@show_error_logwill show the /error_log entries of all (selected) hosts sorted
by time stamp. TheDetailsbutton displays the related traceback without having to visit
the remote machine.WarningThere might be open security issues with this module. Please use it for testing or on internal
servers only. Use it at your own risk.Todotighten securitydeal with ZEO client zombiesadd restart/shutdown codesupport haufe.ztopKnow issuetheDetailsbuttons does seem to work with Firefox 3.5 (related to an incompatiblity with jQueryTools 1.1.x?)AuthorAndreas Jung & others, Haufe MediengruppeChangelog0.2.1 (2009/09/24)too much logging blather0.2.0 (2009/09/21)update jQueryTools to V 1.1.1moved to IP whitelisting0.1.0 (2009/09/15)Initial release
Package: haufe.releaser
haufe.releaserhaufe.releaseris a command extension forsetuptoolsand is intended
as a setuptools frontend for interacting withhaufe.eggserver.InstallationUseeasy_install:easy_install haufe.releaserUsagehaufe.releaserprovides a new commandlocal_uploadto be used together
with setuptools. It works in the same way as the standarduploadcommand however
it uploads your distributions to a local haufe.eggserver instance.Example:python2.4 setup.py sdist bdist_egg local_uploadYou can specify a custom egg server URL using the--eggserver<URL>option:python2.4 setup.py sdist bdist_egg local_upload --eggserver http://somehost:8080/myeggsConfigurationThe eggserver URL can be specified within an optional~/.haufe.releaser.inifile
in your home directory (Unix) containing:[default]
eggserver = http://host:port/your_eggsFurther funcationalityThe newsetuptoolscommandcheck_descriptionallows you to check
restructured text conformance of thelong_descriptionmetadata field before
uploading your files to PyPI. This is in particular useful since PyPI does not
complain about any restructured text format errors (rendering the field as
plain text).CHANGES0.1.5 (02.03.2008)bugfix release0.1.4 (02.03.2008)added ‘check_description’ command for checking the
long_description against restructured-text in order
to avoid PyPI trouble.0.1.3 (02.03.2008)configuration file supportupdated documentationsome better system messages0.1.2 (01.03.2008)fixed detection of package name (reported by Naro)0.1.0 (26.02.2008)initial release
Package: haufe.selenium
haufe.seleniumA wrapper for controlling the Selenium remote server. The Selenium RC server
is a Java-based server for the remote executing of Selenium tests.See also:http://www.openqa.org/selenium-rc/InstallationUse easy_install:easy_install --no-deps haufe.seleniumUsageYou can control the server process usingselsrvctl:selsrvctl start | stop | status | foreground | fgSeleniumTestcasehaufe.selenium also provides a dedicated testcase that should be used as a base
class for all Selenium related unittests.Configuration through environment variables:SELENIUM_HOST- defines the hostname where the Selenium remote server
is runningSELENIUM_PORT- defines the port of the Selenium remote serverSELENIUM_BROWSER-  the browser name to be used for running tests (*iexplore,*firefox, …).
Check the Selenium RC server documentation for detailsSELENIUM_INSTANCE_URL-  the base URL of the webserver to be used to run
the test against. The URL must not contain any path information - only
something like:http://host:portLicenceThis package is released under the LGPL 2.1. See LICENSE.txt.Copyrighthaufe.selenium is (C) Andreas Jung & Haufe Mediengruppe, D-79111 Freiburg, GermanyChanges:0.3.0 (17.02.2010)updated to Selenium RC V 1.0.10.2.1 (05.05.2008)added support for several SELENIUM_INSTANCE_URLxxx’ environment variablesadded environment variable SELENIUM_HTTPS_PORT0.2.0 (23.10.2007)first public releasde0.1.3 (02.10.2007)updated selenium.py (from V 0.9.2)overriding selenium.click() in order to capture Haufe-specific
error messages0.1.2 (26.09.2007)added module level aliases for SeleniumTestcase and
selenium_enabledupdated to official Selenium RC V 0.9.2 server0.1.1 (20.08.2007)testing: explicit check for Selenium serveradded testing.selenium_enabled flagbasic support for starting the Selenium server in foregground
on Windows systems0.1.0 (11.09.2007)initial release
Package: haufe.sortabletable
haufe.sortabletablehaufe.sortabletableimplements JS-side sorting support for tables.InstallationAddhaufe.sortabletableto theeggsandzcmlsections of your
buildout.Changelog0.2.0 (2012/11/12)sort NaN-items in after those with values0.1.0 (2009/09/15)Initial release
Package: haufe.testrunner.ui
haufe.testrunner.uihaufe.testrunner.uiis a Grok-based web-frontend for
accessing the results of haufe.testrunner runsInstallationcheck out the code from SVNrunbuildoutrunbin/zopectl fg|start|stopAuthorhaufe.testrunner.uiwas written by Andreas Jung for Haufe Mediengruppe, Freiburg, Germany
and ZOPYX Ltd. & Co. KG, Tuebingen, Germany.Licensehaufe.testrunner.uiis licensed under the Zope Public License 2.1.See the included ZPL.txt file.ContactZOPYX Ltd. & Co. KGAndreas JungCharlottenstr. 37/1D-72070 Tuebingen, GermanyE-mail: info at zopyx dot comWeb:http://www.zopyx.comCHANGES0.1.5 (02.07.2008)internal view cleanup (removing code redundancy)fixed quoting problem in RSS support0.1.4 (01.07.2008)cleanup of internal SQLAlchemy stuffUI/CSS polishing0.1.3 (29.06.2008)updated SQLAlchemy and zope.sqlalchemy dependencies0.1.2 (26.06.2008)initial release
Package: haul
HaulFind thumbnails and original images from URL or HTML file.DemoHauler on HerokuInstallationon Ubuntu$sudoapt-getinstallbuild-essentialpython-devlibxml2-devlibxslt1-dev$pipinstallhaulon Mac OS X$pipinstallhaulFail to install haul?It is probably caused by lxml.UsageFind images fromimg src,a hrefand evenbackground-image:importhaulurl='http://gibuloto.tumblr.com/post/62525699435/fuck-yeah'result=haul.find_images(url)print(result.image_urls)"""
output:
[
    'http://25.media.tumblr.com/3f5f10d7216f1dd5eacb5eb3e302286a/tumblr_mtpcwdzKBT1qh9n5lo1_500.png',
    ...
    'http://24.media.tumblr.com/avatar_a3a119b674e2_16.png',
    'http://25.media.tumblr.com/avatar_9b04f54875e1_16.png',
    'http://31.media.tumblr.com/avatar_0acf8f9b4380_16.png',
]
"""Find original (or bigger size) images withextend=True:importhaulurl='http://gibuloto.tumblr.com/post/62525699435/fuck-yeah'result=haul.find_images(url,extend=True)print(result.image_urls)"""
output:
[
    'http://25.media.tumblr.com/3f5f10d7216f1dd5eacb5eb3e302286a/tumblr_mtpcwdzKBT1qh9n5lo1_500.png',
    ...
    'http://24.media.tumblr.com/avatar_a3a119b674e2_16.png',
    'http://25.media.tumblr.com/avatar_9b04f54875e1_16.png',
    'http://31.media.tumblr.com/avatar_0acf8f9b4380_16.png',
    # bigger size, extended from above urls
    'http://25.media.tumblr.com/3f5f10d7216f1dd5eacb5eb3e302286a/tumblr_mtpcwdzKBT1qh9n5lo1_1280.png',
    ...
    'http://24.media.tumblr.com/avatar_a3a119b674e2_128.png',
    'http://25.media.tumblr.com/avatar_9b04f54875e1_128.png',
    'http://31.media.tumblr.com/avatar_0acf8f9b4380_128.png',
]
"""Advanced UsageCustom finder / extender pipeline:fromhaulimportHaulfromhaul.compatimportstrdefimg_data_src_finder(pipeline_index,soup,finder_image_urls=[],*args,**kwargs):"""
    Find image URL in <img>'s data-src attribute
    """now_finder_image_urls=[]forimginsoup.find_all('img'):src=img.get('data-src',None)ifsrc:src=str(src)now_finder_image_urls.append(src)output={}output['finder_image_urls']=finder_image_urls+now_finder_image_urlsreturnoutputMY_FINDER_PIPELINE=('haul.finders.pipeline.html.img_src_finder','haul.finders.pipeline.css.background_image_finder',img_data_src_finder,)GOOGLE_SITES_EXTENDER_PIEPLINE=('haul.extenders.pipeline.google.blogspot_s1600_extender','haul.extenders.pipeline.google.ggpht_s1600_extender','haul.extenders.pipeline.google.googleusercontent_s1600_extender',)url='http://fashion-fever.nl/dressing-up/'h=Haul(parser='lxml',finder_pipeline=MY_FINDER_PIPELINE,extender_pipeline=GOOGLE_SITES_EXTENDER_PIEPLINE)result=h.find_images(url,extend=True)Run Tests$cdtests$pythontest.pyHistory1.3.2 (2013-11-05)Bug fixed:#121.3.1 (2013-10-24)Addis_foundattribute forHaulResultAddto_ordered_dict()method forHaulResultA demo site on Heroku1.3.0 (2013-10-16)Use unicode for every stringFix running test.py from another directoryRename modulemodelstocoreRemove in_ignorecase()1.2.0 (2013-10-15)Improve error handling1.1.0 (2013-10-04)Custom finder / extender pipeline support1.0.0 (2013-10-03)Initial release
Package: haumea
haumeaFree, fast, lightweight and easy-to-use open-source library for building static websites. Transform your data (JSON, RESTful or GraphQL) into fast static websitesDocumentation :https://haumea.io/Installation$pipinstallhaumeaQuickstartYou can create a skeleton project with the haumea-quickstart command$haumea-quickstartyourprojectnameyourprojectname
├──content# All content for your website will live inside this directory│└──(pages)├──layouts# Stores .html templates files│└──partials
│└──footer.html
│└──header.html
│└──head.html
│└──_base.html
├──public# Your site will be rendered into this dir└──static# Stores all the static content: images, CSS, JavaScript, etc.Build & test your website$cdyourprojectname/# builds your site any time a source file changes ans serves it locally$haumeaserve
or$haumeasOr just build$cdyourprojectname/# performs build of your site to ./public (by default)$haumeabuild
or
$haumeab
Package: hausastemmer
Hausa language stemmer reference implementation by Bimba et al., 2015. Uses Hausa affix-rules
and reference lookup to stem words in Hausa language.Paper: Bimba, A., Idris, N., Khamis, N. and Noor, N.F.M. (2015) ‘Stemming Hausa text: Using affix-stripping rules and
reference look-up’, Language Resources and Evaluation, 50(3), pp. 687–703. doi: 10.1007/s10579-015-9311-x.
URL:https://bit.ly/hausa-stemming-bimba.Based on modifications to the implementation of the Porter’s Stemming Algorithm by Vivake Gupta (2001).Copyright (C) 2013 Bimba Andrew Thomas <andrewbimba@gmail.com>, Department of Artificial Intelligence,
FSKTM Universiti Malaya, Kuala Lumpur, Malaysia.Adapted as a Python module by Linas Valiukas <lvaliukas@cyber.law.harvard.edu>.
Package: hausgemachtspotipy
hausgemachtspotipyis a Python package that access music artists,
albums, and tracks, directly from the Spotify Data Catalogue via Spotify
Web API endpoints.Inspired by theSpotiPyPython
package, thehausgemachtspotipypackage focuses on easily querying
music artists, albums, and tracks from Spotify.InstallationTo installpipinstallhausgemachtspotipyTo upgradepipinstallhausgemachtspotipy--upgradeQuick StartImport Librariesimport hausgemachtspotipy as haussp
import pandas as pd
import datetime
import mathDefine credentialsclient_id = "cd1845f23d914228b14f6bed139ee594"
client_secret = <insert secret key>Details on obtaining Spotify API credentials, head toCreate Spotify API tokensp = haussp.SpotifyAPI(client_id, client_secret)Find Artist’s detailsartists = sp.search(query="Justin Timberlake")
print(artists)
Package: hausmon-client
A thin wrapper for the HausNet monitoring service, a.k.a HausMon, in Python. HausMon
is a simple monitoring service for home automation networks, e.g. a home controlled byHome Assistant.InstallationInstall the package:pip install hausmon_clientConfigurationFirst, create an account atHausNet. Then, define
a device to represent your home automation controller. Also, locate your authentication
token from your account. You'll need the device name and the token to use the library.UseThe library provides access to a device's heartbeat monitor. I.e. it enables your home
control system to, at a fixed interval, let the monitor know it is still alive. The
heartbeat monitor should not be called more often than every 15 minutes.from hausmon_client.client import HausMonClient

API_URL = "[Hausmon API URL]"
API_TOKEN = "[token from HausMon user account]"
DEVICE_NAME = "[device name at HausMon]"

client = HausMonClient(API_URL, API_TOKEN)
heartbeat = self._client.get_heartbeat(DEVICE_NAME)
client.send_heartbeat(heartbeat['id'])
Package: hausnet-heartbeat-client
A thin wrapper for the HausNet Heartbeat service, in Python. Heartbeat is a monitoring
service for home automation networks, e.g. a home controlled byHome Assistant.If you are running Home Assistant, follow the instructions for setting up theHausnet Heartbeatcomponent.
The package for this module is included as a dependency of the component.InstallationOn Home Assistant, this package will be automatically installed as a dependency of the Hausnet Heartbeat
component.For use elsewhere, install the package on your client:pip install hausnet_heartbeat_clientConfigurationOn Home Assistant, follow the instructions for setting up the Hausnet Heartbeat component.Elsewhere, sign up atHausNet, and copy the app authentication token
from your profile page on the app site. Then, define a device on the app site to represent your
home automation system. You'll need the device name and authentication token from the service to
connect this client.UseThe library provides access to a device's heartbeat monitor. I.e. it enables your home
control system to, at a 15-minute interval, let the monitor know it is still alive.The system should send a heartbeat (i.e. call the send_heartbeat function) every 15 minutes. If the service
does not receive the next heartbeat signal in that time frame, it will alert you via email that your
home automation system is not responding. It will also let you know when it starts responding again.The heartbeat monitor should not be called more often than every 15 minutes, as that will result
in service suspension.from heartbeat_client.client import HeartbeatClient

API_URL = "https://app.hausnet.io/heartbeat/api"
API_TOKEN = "[token from HausNet user account]"
DEVICE_NAME = "[device name at HausNet]"

client = HeartbeatClient(API_URL, API_TOKEN)
heartbeat = self._client.get_heartbeat(DEVICE_NAME)
client.send_heartbeat(heartbeat['id'])
Package: hausnet-server
hausnet-serverServer-side HausNet protocol implementation.ArchitectureA HausNet system consists of an integration with a management system
(e.g.Home Assistant), this server software, and a network of devices
running the protocol.ProtocolModule / Device ConfigurationEach module, or device, can have a set of one or more configuration items. Each configuration value consists of a name,
and an implementation-dependent value. The value may have an internal structure, which is module / device dependent.Node devices typically contain modules, each of which has its own configuration with multiple items. This can be
modeled as nested dictionaries. Each device implementation takes care of managing the configuration structure.Devices embedded in nodes typically don't have complex configuration values, just one or more key/value pairs. It is
possible to have devices with a more complex config, though.The point is that the config item value is up to the module or device, while modules and devices themselves fit into
a formal higher-level structure not up to them.An example of a structure containing configuration (in YAML) :hausnode/48A8F0:
      config:
        network:                        # Multi-valued item
          wifi_ap: "My access point"
          wifi_pw: "mypassword"
        flash_files:                   # Module that has no config items
        heartbeat:                     # Module that has one item
          period: 60
      devices:
        switch:                        # No configuration
        thermo:                        # Multiple config items 
          units: "F"
          period: 600Development notesBuilding & uploading PyPi packageFirst, editsetup.pyand update the version number.Remove the old distribution, build the distribution, and push it to PyPi:rm dist/*
python setup.py sdist bdist_wheel
twine upload dist/*Check in the final changes, and tag the release with "v1.2.3"
Package: hausschrat
hausschrat clisetupUse pip to install.pip3 install hausschrat --userNo magic here. That's all.usageThe configuration file ofhausschratcli is located in~/.config/hausschrat.yml.At least a profile nameddefaultmust be configured.default:
  server: http://localhost:8080
  scm_url: https://git.osuv.de
  api_token: 123abc
  user: ma
  key: markus@dell
  expire: +5h
  cert_file: ~/.ssh/test-cert.pub

gitlab:
  scm_url: https://gitlab.com
  api_token: ...
  user: ec2-user
  key: rsa@aws
  expire: +1h

my_company:
  server: https://hausschrat.mycompany.tld
  scm_url: https://gitlab.mycompany.tld
  api_token: ...
  user: some_userAll parameters which are not set in addition profiles will be taken from thedefaultprofile.In the uppermy_companyprofile example, the values ofexpireandcert_fileare taken from thedefaultprofile.
Package: hausschrat-nextcloud-s3
hausschrat-nextcloud-s3 vendorhausschratsnextcloud s3 vendorprivate key: s3 bucketpassword: nextcloud passwords appinstallpip3 install hausschrat_nextcloud_s3credentialsTherefor you must provide Nextcloud credentialsNEXTCLOUD_HOSTNEXTCLOUD_USERNEXTCLOUD_TOKENCredentials for S3 (boto3) are taken from ECSTaskRole, InstanceRole or from your default aws config.settingsInhausschrattable setvendortohausschrat_nextcloud_s3vendor_key_objto{'bucket': 'your-bucket', 'obj': 'path/so/hausschrat.pem'}.vendor_password_objtohausschrat(name of your password in passwords app).
Package: hausse
HausseHausse is a python plugin-based static site generator. It works with plugins that can be chained to process files and produce the wanted result.https://img.shields.io/github/issues/andrenasturas/hausse/bughttps://img.shields.io/github/license/andrenasturas/hausseInstallationpipinstallhausseHow it worksFirst, create a Hausse project.project=Hausse()Then, use thepluginsyou need. For example, if you want to parse markdown files, there is theMarkdownplugin.project.use(Markdown())You can use multiple plugins for more precise processing.# If your markdown files have rich metadata values, you can process them tooproject.use(MetadataMarkdown("rich_metadata"))# you may also render your pages with html page layoutsproject.use(Handlebars())Finally, build your project.project.build()When your pipeline is done, you can save it to ahausse.jsonfile.project.save()This file allows you to build your project directly from command line.python-mhaussepath/of/your/projectThat's it !ExamplesHere are a few examples to illustrate the possibilities offered by Hausse and to inspire your future projectsPortfolio, a single-page website featuring a résumé, skills overviews and projects showcases.Notes extraction, a presentation of a CSV file of a Notes app data extraction.What if I need a new plugin ?Nothing more simple ! Writing a new plugin for Hausse is very easy. A Plugin is nothing more than a python object with a specific__call__method.Whenbuild()is called on a Hausse project, all Plugins are successivelycalledas functions with theHausseproject object itself as an argument. Its attributes contains everything needed by the plugins:elementsis aElementlist. AElementrepresents a file, with its own metadata accessible as object attributes, and content stored in._contentsattribute.metadatais a dictionary of global metadata.settingsis a dictionary of technical objects, deposited by some Plugins to be easily usable by others plugins.You may also implement the__init__method as you wish to store Plugin parameters that will be needed during the build.Finally, if you feel like it should be added to hausse plugins, you can create aplugin request.
Package: hautomation-restclient
hautomation-restclient==================REST client for sending home automation commands to django-hautomation REST APIThis project belongs to the Home Automation Python Project, the url is:http://blog.digitalhigh.es/home-automation-python-project/Further documentation about this module is found at:http://blog.digitalhigh.es/home-automation-python-project/hautomation_restclient/TESTING THE CODE----------------Please start a django_hautomation server at any reachable place.Edit constants in hautomation_restclient/tests.py to configure the url and credentialsfor the previously started django_hautomation server.Then start the command: python hautomation_restclient/tests.py