Saravanan666/pypi-org huggingface dataset:
Package: hoottit
Copyright (c) 2017 Robert BadeaPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.Description:...    *    .   _  .*  .  *     .   * (_)   *.      |*  ..   *   ...  * \|  *  ___  . . **   \/   |/ \/{o,o}     ._\_\   |  / /)  )* _/_ *\ \| /,--"-"---  .._-----`  |(,__,__/__/_ .\ ||      ..||| .            *||||||, -=-~' .-^- _Hoottit is a command line tool that can stream Reddit data (submissionsand comments) to a MongoDB database of choice. All it needs is two Reddit appkeys (in praw.ini) and a MongoDB URI set in the HOOT_MONGODBURI env variable.If the database URI is not set, it automatically tries to connectto localhost:27017. Since this application is best used as a long runningscript, an optional HOOT_SENTRYDSN env variable can be set to capture anywarnings and errors that might appear (usually caused by problems with theconnection, but not only). The keepalive script can be used to keep theapplication alive after it crashes. For more information about using theapplication, type hoottit --help.Platform: UNKNOWNClassifier: Development Status :: 2 - Pre-AlphaEnvironment :: ConsoleClassifier: Intended Audience :: DevelopersClassifier: License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6Classifier: Topic :: Internet :: WWW/HTTP
Package: hoox
hooxHoox is git hooks managerInitializationFor initialization you shuld run init command in project roothoox initOptional arguments:--directoryor--d- directory to store hook scripts. Default is.hooxin project root.You can use separate directory to store typical hooks for specific language.In case of already initialized repository you will be prompted to rewrite hoox directory.Show informationTo show current hoox status, hoox directory and enabled hooks, you can run following commandhoox infoCommand will show info:Hoox dir: ./hoox
Enabled hooks:
  pre-commit
  pre-pushList of supported hooksHoox support folowing hooks in current version:pre-commitpre-pushcommit-msgprepare-commit-msgRun hookYou can run hook for test purpose viahoox run-hook <hook-name> [hook-arguments ...]Enabling hooksBy default all hooks are disabled. To enable hook runhoox enable <hook-name>Enable hooks realized via adding .sh script that runshoox run-hook <hook-name> [hook-arguments].Disabling hookxTo disable hook runhoox disable <hook-name>Disable hooks realized via deleting .sh script from previous paragraph.
Do not edit those scripts, cause you can lost all changes when hook is disabled.
Package: hopak
Formerly project wasformgear.Main idea behindhopakallow iteratively create data models in easy
readable form and use them as part of your websites. At this moment only
MongoDB is allowed.Imagine what happends when you plan to create new site (for yourself or
client). You doing several steps and one important is make raw draft of what
content you will publish and relation between different types of content.
Usually it implies you bootstrap your framework, step over several stages of
creating scaffold and only then write models code. In the worst case you write
SQL.But we are living in 21 century, have decoded DNA, pushing frontier into
space, digging into core of the atoms and listening dubstep! Why we must to
write all that crap? Why computers cann’t just do all this stuff?So that is why we inventhopak. Because we want computers to do that they
supposed to do.hopakis only part of this effort, but there are already some results. So,
example how to make simple model. We useYAMLbecause it is very human
readable. Minimal file:# user.yaml
title: User
description: >
  This is user model.

fields:
  - name: name
  - name: email
  - name: site
  - name: aboutThis file is enough to use it as model in your python code:# models.py
from hopak.models import Model
class User(Model):
    __yaml__ = 'user.yaml'hopakis only a library for bigger framework, if you decide to use the whole
stack then you will get site with admin section including list, edit, add,
search, delete sections for each models.Changes0.5.1:setup.py dependency changed to setuptools form distutils0.5:Python 3 support0.4.2:urgent fix for non saving model instances0.4.1:fix release, addedhopak.dsto package0.4:renamed fromformgeartohopak0.3.5:added independed data sources, but atm still have only mongodb datasource0.3.4:Started this log.MoreLinks:hopakpage on PyPI:http://pypi.python.org/pypi/hopak/Github page:https://github.com/xen/hopakMore documentation is approaching.
Package: hopara
PyhoparaPyhopara is the Hopara Python SDK. It's main purpose is to ingest data from Python/Pandas.InstallpipinstallhoparaBefore using Pyhopara you should setup your environment. This is achieved by installing the Hopara CLI and sign-in or sign-up:npminstall-ghopara
hoparasignupBasic usage:importhoparaashphopara=hp.Hopara()table=hp.Table('table_name')table.add_column('column1',hp.ColumnType.INTEGER)table.add_column('column2',hp.ColumnType.STRING)hopara.create_table(table)rows=[{'column1':1,'column2':'a'},{'column1':2,'column2':'b'},{'column1':3,'column2':'c'}]hopara.insert_rows(table,rows)With pandas DataFrame:importhoparaashpimporthopara.from_pandasashpdimportpandasaspdhopara=hp.Hopara()df=pd.DataFrame({'column1':[1,2,3],'column2':['a','b','c']})table=hpd.get_table('table_name',df)hopara.create_table(table)hopara.insert_rows(table,hpd.get_rows(df))Please check theHoparaandTablesections for additional options.
Package: hopcroftkarp
hopcroftkarp is a library based on Hopcroft Karp’s Algorithm. It takes as input a bipartite graph and produces a maximum cardinality matching as output.Since a bipartite graph might have more than one maximum matching, it is worth noting that the algorithm may output any one of all possible maximum matchings.Pseudo code gotten fromhttps://en.wikipedia.org/wiki/Hopcroft%E2%80%93Karp_algorithmExample>>> from hopcroftkarp import HopcroftKarp
>>> graph = {'a': {1}, 'b': {1, 2}, 'c': {1, 2}, 'd': {2, 3, 4}, 'e': {3, 4}, 'f': {4, 5, 6}, 'g': {5, 6, 7}, 'h': {8}}
>>> HopcroftKarp(graph).maximum_matching()
        {1: 'a', 2: 'b', 3: 'e', 4: 'd', 5: 'g', 6: 'f', 8: 'h', 'a': 1, 'd': 4, 'e': 3, 'h': 8, 'b': 2, 'f': 6, 'g': 5}Keys OnlyBy default,.maximum_matching()returns a dictionary in which every edge (match) is represented twice:{left: right,
 right: left}To return a dictionary with each edge represented only once, pass inkeys_only=True.>>> graph = {'a': {1}, 'b': {1, 2}, 'c': {1, 2}, 'd': {2, 3, 4}, 'e': {3, 4}, 'f': {4, 5, 6}, 'g': {5, 6, 7}, 'h': {8}}
>>> HopcroftKarp(graph).maximum_matching(keys_only=True)
    {'a': 1, 'd': 4, 'e': 3, 'h': 8, 'b': 2, 'f': 6, 'g': 5}InstallationSimply executepip install hopcroftkarpor from this source distribution, runpython setup.py installThis project was completed while the author was studying at the African Institute for Mathematical Sciences, Ghana. Thanks to AIMS-Ghana for the funding. Also, thanks to Prof Nancy Neudauer and Frantisek Hajnovic for the supervision.Thanks to Adam Wood (github.com/adammichaelwood) for suggesting the keys only option.
Package: hopeit.apps-client
hopeit.engine apps-client pluginThis library is part of hopeit.engine:check:https://github.com/hopeit-git/hopeit.engineInstall using hopeit.engine extras [apps-client]:pip install hopeit.engine[apps-client]Config app_connection section in your app to use this client implementation:Configre a connection inapp_connectionssection and specify which events to invoke
insideevent.connectionssection:...
    "app_connections": {
        "target-app-conn": {
            "name": "target-app",
            "version": "1.0",
            "client": "hopeit.apps_client.AppsClient"
        }
    },
    ...

    "events": {
        "my-event": {
            ...
            "connections": [
                {
                    "app_connection": "target-app-conn",
                    "event": "target-event",
                    "type": "GET"
                }
            ],
            ...
        }
    }To configureapps-clientadd a settings section like this to app config file:...

    "settings": {
        "simple_example_conn": {
            "connection_str": "http://host1,http://host2"
        }
    }The only required setting isconnection_strbut many other values can be configured:...

    "settings": {
        "simple_example_conn": {
            "connection_str": "${HOPEIT_SIMPLE_EXAMPLE_HOSTS}",
            "circuit_breaker_open_failures": 10,
            "circuit_breaker_failure_reset_seconds": 90.0,
            "circuit_breaker_open_seconds": 60.0,
            "retries": 2,
            "retry_backoff_ms": 10,
            "ssl": true,
            "max_connections": 100,
            "max_connections_per_host": 0,
            "dns_cache_ttl": 10,
            "routes_override": {
                "__list-somethings": "simple-example/${HOPEIT_APPS_ROUTE_VERSION}/list-somethings"
            }
        }
    }UsageInvoking target-app target-event from your application code:from hopeit.app.client import app_call

    ...

    def my_event(payload: ..., context: EventContext) -> ...:
        response = await app_call(
            "target-app-conn", event="target-event",
            datatype=ResposeDataType, payload=..., context=context
        )
    ...
Package: hopeit.apps-visualizer
hopeit.engine apps-visualizer pluginThis library is part of hopeit.engine:check:https://github.com/hopeit-git/hopeit.engineInstall using hopeit.engine extras [apps-visualizer]:pip install hopeit.engine[apps-visualizer]Include config-manager plugin config file when runninghopeit_serverin addition to your existing config files for each process/server that needs to be monitored.hopeit_server --port=8020 --config-files=server-config.json,plugins/ops/config-manager/config/plugin-config.json,my-app-config.jsonExport list of hosts to connect to, and run a new hopeit_server instance with apps-visualizer pluginexport HOPEIT_APPS_VISUALIZER_HOSTS="http://host:8020,in-process"

hopeit_server --port=8098 --config-files=server-config.json,plugins/ops/apps-visualizer/config/plugin-config.json --api-file=plugins/ops/apps-visualizer/api/openapi.jsonThe first host in the list, specifies to monitor apps running inhttp://host:8020by connecting in intervals to the server through config-manager plugin endpoints.Usingin-processas host name local process running apps-visualizer can be monitored also without network load.Instead of using an environment variable, list of hosts can be directly added to a customized version of plugin-config.jsonVisualize App events diagram using url:http://host:8098/ops/apps-visualizerTo enable Live! events activity visualization, configure and start an instance oflog-streamer:Copyconfig/plugin-config.jsonand customize parameters to match your runtime environment.Run ahopeit_serverinstance with log_streamer, in each node where you run your applications:hopeit_server --port=8099 --start-streams --config-files=server-config.json,customized-plugin-config.jsonNow when you can switch fromStatictoLiveview clicking on the label at the top right of the Apps Visualizer pageIf you want also to monitor log-streamer app, you can set:export HOPEIT_APPS_VISUALIZER_HOSTS=$HOPEIT_APPS_VISUALIZER_HOSTS,http://host:8099and re-run apps-visualizer usinghopeit_servercommand above.
Package: hopeit.config-manager
hopeit.engine config-manager pluginThis library is part of hopeit.engine:check:https://github.com/hopeit-git/hopeit.engineInstall using hopeit.engine extras [config-manager]:pip install hopeit.engine[config-manager]Include plugin configuration file when runninghopeit_serverin addition to your existing config files.hopeit_server ... --config-files=...,plugins/ops/config-manager/config/plugin-config.json,...Remember also to include the plugin config file, when usinghopeit_openapicommand line tool to create or update Open API spec file for your serverCheck added endpoints under Config Manager session:http://host:port/api/docs
Package: hopeit.engine
hopeit.engineDocs:https://hopeitengine.readthedocs.io/en/latest/Engine development READMEInstall locally for apps or plugins development:Install Python, versions from 3.8 to 3.12 are currently supportedCreate and activate a virtual environment (recommended)Run from hopeit.engine project rootmake dev-deps && make installNow hopeit.engine package should be installed into your virtual/conda env linked to the source code in ./srcThen you can create your apps or plugins and run the serverInstall from Python Package IndexInstall Python, versions from 3.8 to 3.12 are currently supportedCreate and activate a virtual environment (recommended)Install hopeit.engineInstall core hopeit.engine lib:pip install "hopeit.engine"Install extras needed to run as a server and command line tools:pip install "hopeit.engine[web,cli]"ConfigureCreate server configuration json fileSeeconfiguration examplesCreate apps configuration and python filesSeeapps examplesOptionally you can develop plugins, similar to apps but can be sharedSee availablepluginsStart http serverExample starting a single app/microservicepython -m hopeit.server.web --config-files=server-config.json,app-folder/config/app-config.jsonAdditional options:--config-files: comma-separated file of config files to load, starting with server config, then plugins, then apps
    --api-file: path to openapi complaint json specification
    --host: server host address or name, default is --host=0.0.0.0
    --port: indicates to listen on another port number, default is --port=8020
    --path: indicates to listen in a unix socket path, default is disabled    
    --start-streams: indicates to auomatically start events of type STREAM when starting serverExample starting a single app that depends on plugins:python engine/server/web.py --config-files=server-config.json,plugin-foler/config/plugin-config.json,app-folder/config/app-config.jsonTools for Engine DevelopmentTo install development dependencies, from engine folder run:make devTo run testsmake testTo run static code checks (types, style)make checkTo create distribution library (hopeit.engine)make distTo install engine in local python environmentmake installExamples: to install plugin or app in virtual environmentto use existing app and plugins, you will need to obtain also a configuration file for each app and plugin. install-app will only install source code.make PLUGINFOLDER=plugins/auth/basic-auth install-plugin
    make APPFOLDER=apps/examples/simple-example install-app
Package: hopeit.log-streamer
hopeit.engine log-streamer pluginThis library is part of hopeit.engine:check:https://github.com/hopeit-git/hopeit.engineInstall using hopeit.engine extras [log-streamer]:pip install hopeit.engine[log-streamer]Copyconfig/plugin-config.jsonand customize parameters to match your runtime environment.Run ahopeit_serverinstance, in each node where you run your appplications:hopeit_server --port=8099 --start-streams --config-files=server-config.json,customized-plugin-config.jsonThis way log_streamer plugin process will run separately from your main application, read logs locally on each node and publish data to a stream.
Package: hopfenmatrix
HopfenmatrixThis project tries to simplify the excellentmatrix-niolibrary.InstallationThis project is available via the pypi package manager. It depends on the E2E version ofmatrix-nio,matrix-nio[e2e].
Because of this, the installation depends on thelibolm3library.DebianDebian 10 and belowThelibolm3library is not available in Debian 10 and below.
It has to be installed from thebuster-backportsrepository.echo "deb http://ftp.debian.org/debian buster-backports main contrib" >> /etc/apt/sources.list
apt update
apt install python3 python3-pip
apt install -t buster-backports libolm-dev
python3 -m pip install -U hopfenmatrixDebian Bullseyeapt update
apt install python3 python3-pip libolm-dev
python3 -m pip install -U hopfenmatrixArchpacman -S libolm python python-pip gcc
python -m pip install -U hopfenmatrixFedora 30 and abovednf install python3-pip python3-devel libolm libolm-devel gcc
python3 -m pip install -U hopfenmatrix
Package: hopfield4py
Hopfield4pyWith this package it is possible to run the Hopfield model.For more information about the model see:The Hopfield NetworkorWikipediaHopfield_DilutedInstallpip install hopfield4pyRunimporttensorflowastffromhopfield4pyimportHopfielddata=tf.convert_to_tensor([[1,1,1,1,1,1],[1,-1,-1,1,1,1]])model=Hopfield(6)model.load(data)corrupted=tf.convert_to_tensor([1,-1,-1,1,1,1],dtype=tf.double)reconstructed=model.reconstruct(corrupted)DocumentationThe documentation is available athttps://hopfield4py.readthedocs.ioLICENSESeeLICENSE
Package: hop-file-browser
Hop!Hop is a terminal based file explorer designed to be fast, simple and user friendly. Hop runs on any operating system.UseOnce Hop installed, it can be ran at any point in the terminal by typinghop. This will bring you into the file explorer.Anything you type will filter the files, and pressing enter will navigate into a selected folder.Typing+at the end of your input, and pressing enter will add a selected item into your "inventory".You can delete, copy or move the files into your current folder by typing!delete,!copyor!moveand pressing enter. Deleting will move to the recycle bin.Empty your inventory (i.e. clear your selection) with!emptyor!e, and quit with!qor!quit.Otherwise, run any normal shell commands (i.e. vim, mkdir, rm etc) by using the ! prefix, such as!mkdir cool-filesInstallationThe only requirement for running Hop is python. It can be installed with pip, with optional dependencies for unix (apple/linux):pip install hop-file-browser
pip install 'hop-file-browser[unix]'Consider using pipx to install into an isolated environment.
Package: hopic
In order to simplify the CI configuration we are switching away from thegeneric jenkins shared pipelinewhich is completely written in Groovy.
Instead we are switching to the Hopic project which only has a minimalCI drivercomponent written in Groovy with the rest written in Python.
With Hopic local debugging is made significantly easier.As of now the commit stage can be adapted to use Hopic’s functionality.
With this most of the required configuration will live in the hopic-ci-config.yaml file replacing the groovy snippets from the commit stage in jenkins file.
This can be locally tested with the command -“hopic”Using Hopic locallyInstall the hopiccommand with below packagepip3 install --user 'git+https://github.com/tomtom-international/hopic.git@release/1#egg=hopic[interactive]'Enable TAB completion- include the below line in your .bashrc (BashComplete)eval "$(_HOPIC_COMPLETE=source hopic)"For the command line help on hopic usagehopic --help
Package: hoplite2
hoplite2a sparsity analysis tool for neural networksInstallationpip install hoplite2UsageThere are 2 main classes that are useful in Hoplite2: Spartan and Hoplite.The Hoplite Class is the main way to use Hoplite2.fromhoplite2importHoplitefromtensorflow.keras.applications.vgg16importVGG16fromtensorflow.keras.preprocessingimportimagefromtensorflow.keras.applications.vgg16importpreprocess_inputimportnumpyasnp# keras model to analyzemodel=VGG16(include_top=True,weights="imagenet",input_tensor=None,input_shape=None,pooling=None,classes=1000,classifier_activation="softmax",)# preprocess functiondefvgg16_preprocess(path):img=image.load_img(path,target_size=(224,224))returnpreprocess_input(np.expand_dims(image.img_to_array(img),axis=0))hop=Hoplite(model,vgg16_preprocess,layers=["block1_conv2","block2_conv2","block3_conv3","block4_conv3","block5_conv3"])hop.analyze_file("test.png")# analyzes test.pnghop.output("output.csv")# saves output to fileSpartan implements several useful functions to analyze sparsity of arrays.
These functions include:- compute_average_sparsity(output,equals_zero=lambda x: x == 0)
 - consec_1d(arr, hist, equals_zero=lambda x: x == 0)
 - consec_row(output, equals_zero=lambda x: x == 0)
 - consec_col(output, equals_zero=lambda x: x == 0)
 - consec_chan(output, equals_zero=lambda x: x == 0)
 - vec_1d(arr, vec_size, hist, equals_zero=lambda x: x == 0):
 - vec_3d_row(output, vec_size, equals_zero=lambda x: x == 0):
 - vec_3d_col(output, vec_size, equals_zero=lambda x: x == 0):
 - vec_3d_chan(output, vec_size, equals_zero=lambda x: x == 0):equals_zero is a function that takes in a number and returns True if the number is considered zero. This is useful if you wish to look for values that are also close to zero and allows for additional customizablity.