Saravanan666/pypi-org huggingface dataset:
Package: hrtem-filter
HR(S)TEM filterIntroductionhrtem_filterprovides a set of python functions to denoise HR(S)TEM images. A Wiener filter and an average background subtraction filter were designed based onR. Kilaas J. Microscopy, 1998, 190, 45-51. Some steps are adopted from D. R. G. Mitchell's script for GMS. A nonlinear filter was adopted by the "non-linear filter plugin from GMS", originally developed by Dr. Hongchu Du. Refer to the original paper:Hongchu Du, A nonlinear filtering algorithm for denoising HR(S)TEM micrographs, Ultramicroscopy 2015, 151, 62-67InstallationUse pip:pip install hrtem_filterUsageThe package contains three main filter functions:wiener_filter(img, delta=5, lowpass=True, lowpass_cutoff=0.3, lowpass_order=2)abs_filter(img, delta=5, lowpass=True, lowpass_cutoff=0.3, lowpass_order=2)These are for Wiener filter or average background subtraction filter. It takesimg, an image array as an input, and returns the filtered image array and a difference image array. Parameters are the following:delta: a threashold for background averaging. Smaller number results in more iterations in refining the averaged background and hense longer time.lowpass: also apply a lowpass filter after filtering to remove the residual high frequency noise.lowpass_cutoff: a cutoff ratio in frequency domain for the lowpass. 1 means no filtering and vice versa.lowpass_order: order for the Butterworth filter; smaller int retults more tapered cutoffnlfilter(img, N=50, delta=10, lowpass_cutoff=0.3, lowpass = True, lowpass_order=2)This function carries out the nonlinear filter, a combination of Gaussian lowpass and Wiener filters. It takesimg, an image array as an input, and returns the filtered image array and a difference image array. Parameters are the following:N: number of iterations for the lowpass + wiener filtering. More iterations give better noise reduction and takes more time.lowpass: if True, also applys a Butterworth lowpass filter after the Wiener filtering in every iteration. This prevents from adding back high frequency noise.All other parameters are the same as in thewiener_filter.In addition,hrtem_filteralso provides two lowpass filters: Butterworth filter and Gaussian filter.bw_lowpass(img, order, cutoff_ratio)gaussian_lowpass(img, cutoff_ratio)ContactSend your questions and suggestions to Dr. Tao Ma atmatao1984@gmail.com
Package: hruid
HRUIDHuman Readable Unique Identifier for PythonUsageInstall???Useimporthruidgenerator=hruid.Generator()phrase=generator.random()print(phrase)OverviewThis Python package implements human readable ID generation based on theAsanablog post by Greg
Slovacek.In it, he describes how a unique phrase can be generated in lieu of a confusing and complex
alphanumeric ID.Imagine representing 32 bits of information (numbers up to 4 billion) as a sentence instead of a jumble of digits. Each sentence can have the same predictable structure, and the number will be used to choose words from a dictionary to fill in that structure—like Mad Libs.One possible sentence structure can be: count + adjective + plural noun + verb + adverb, e.g. “6 sad squid snuggle softly.” We can divide the bit-space of the number like so:5 bits for the count (2-33, so it is always plural)7 bits for the adjective (one of 128 possibilities)7 bits for the plural noun (one of 128 possibilities, which we made all animals just for fun)7 bits for the verb (one of 128 possibilities)6 bits for the adverb (one of 64 possibilities)Now, given a dictionary containing words categorized in this way, we can generate 4 billion unique (and sometimes very memorable) sentences. In Asana, the ID used to generate the error phrase is random, so the same sentence is unlikely to occur twice.DevelopInstall dependenciespoetry installRunexample.pywhich does some basic things with the packagepoetry run python example.pyRun the package in CLI modepoetry run python -m hruidTo run testspoetry run testsLicenseGNU GPLv3
Package: hrv
Pythonic package for Heart Rate Variability Analysisversion number: 0.2.10author: Rhenan BartelsOverviewhrvis a simple Python module that brings the most widely used
techniques to extract information about cardiac autonomic functions through RRi series and Heart Rate Variability (HRV) analyses without losing thePowerandFlexibilityof a native Python object.In other words, thehrvmodule eases the manipulation, inspection, pre-processing, visualization, and analyses of HRV-related information. Additionally, it is written with idiomatic code and tries to implement the API of a built-in object, which might make it intuitive for Python users.For a more in-depth explanation of how hrv works, pleaseRead the documentation
Package: hs2client
This project aims to be an up to date Python client to interact with Hive Server 2
using the Thrift protocol.The project is heavily inspired byPyHiveup to the point that part of the code
has been snatched from there. SeeDifferencesfor more.InstallationInstall it withpip install hs2clientor directly from sourcepythonsetup.pyinstallUsageUsing it from Python is simple:fromhs2client.hs2clientimportHS2Clientclient=HS2Client(host='127.0.0.1',username='user',port=10000,auth='NONE')withclientasconnection,connection.cursor()ascursor:cursor.arraysize=10cursor.execute('select * from table')forrowincursor:print(row)Regenerate the Python thrift libraryThehs2client.pyis just a thin wrapper around the generated Python code to
interact with Hive Server 2 through the Thrift protocol.To regenerate the code using a newer version of the.thriftfiles, you can
usegenerate.py(note: you need to havethriftinstalled, seehere)pythongenerate.py--helpUsage:generate.py[OPTIONS]Options:--hive_server2_urlTEXTTheURLwheretheTCLIService.thriftfilecanbedownloaded--packageTEXTThepackagewheretheclientshouldbeplaced--subpackageTEXTThesubpackagewheretheclientshouldbeplaced--helpShowthismessageandexit.Otherwise the defaults will be used.Differences with PyHiveThis pakcage lacks the sqlalchemy and the presto part;The main class,HS2Clientinherits fromTCLIService.Client, making certain things
handier;In cases where authentication isNONE, theusernameis set tomr.whoto avoid issues
with the latest Hive Server 2 versions;Thrift 0.11 has been used to generate the Python files;Thegenerate.pyfile allows to easily update the files generated from the thrift specs.
Package: hs3sh
The HS3 Shell (hs3sh) is a command processor created to interact with Amazon
S3 and compatible storage services.It’s main intention is to test S3 compatible storage services against Amazon S3
without having to deal with the hard-to-remember parameters required by tools
likeawscliors3curl.pl.FeaturesConnect to Amazon S3 as well as compatible storage servicesUses profiles for easy switching between S3 providersCreate, discover and delete bucketsDiscover, write, read and copy objectsMultipart uploadDeal with metadata and versionsWork with ACLs (yet incomplete)Generate pre-signed URLsDependenciesYou need to have at least Python 3.5 installed to runhs3sh.It depends on theboto3for
communication with Amazon S3 and compatible stores.DocumentationTo be found atreadthedocs.orgInstallationInstallhs3shby running:$ pip install hs3sh-or-get the source fromgitlab.com,
unzip and run:$ python setup.py install-or-Fork atgitlab.comContributeSource Code:https://gitlab.com/simont3/hs3shIssue tracker:https://gitlab.com/simont3/hs3sh/issuesSupportIf you’ve found any bugs, please let me know via the Issue Tracker;
if you have comments or suggestions, send an email tomailto:sw@snomis.euLicenseThe MIT License (MIT)Copyright (c) 2016-2021 Thorsten Simons (sw@snomis.eu)Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, 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 THE
SOFTWARE.
Package: hsaudiotag3k
This is a Python 3 package. The Python 2 package is athttp://pypi.python.org/pypi/hsaudiotag.hsaudiotagis a pure Python library that lets you read metadata (bitrate, sample rate, duration
and tags) from mp3, mp4, wma, ogg, flac and aiff files. It can only read tags, not write to them,
but unlike more complete libraries (likeMutagen), it is BSD licensed, making it
suitable for most projects. It is also backed by a nifty test suite.The documentation has to be built with Sphinx. You can get Sphinx athttp://sphinx.pocoo.org/Once you installed it, you can build the documentation with:sphinx-build docs docs_htmlThe documentation is also available online athttp://pythonhosted.org/hsaudiotag3k/ChangesVersion 1.1.3 – 2012/08/10Fixed a bug preventing some OGG track fields from being read.Version 1.1.2 – 2011/09/29Fixed a bug preventing some OGG metadata from being read.Version 1.1.1 – 2011/01/31Fixed crash on reading tag-less AIFF files.Fixed crash on mp4 files containing invalid utf-8 data.Version 1.1.0 – 2010/12/29Added a wrapper class to automatically detect a file type.Invalid AIFF files now set their attributes nonetheless.Version 1.0.5 – 2010/12/20Got rid of thehsutildependency.Version 1.0.4 – 2010/11/19Fixed a crash when reading mp4 files with malformed attribute atoms.Version 1.0.3 – 2010/11/11Fixed a crash when reading mp4 files with out of range genre indexes.Version 1.0.2 – 2010/09/25Fixed a crash when reading Id3v2 text frames with invalid string encoding flag.Version 1.0.1 – 2010/08/24Fixed squeeze.squeeze_mpeg under py3k.Fixed the decoding of mpeg files with Xing headers under py3k.Version 1.0.0 – 2010/07/11Initial Release
Package: hsbmaulana-pycollection
PYCollectionPYCollection provides convenient helper for working with data structures and algorithms.Getting StartedInstallation :$ pip install hsbmaulana-pycollectionHow to use :fromPycollection.Lists.ArrayListimportArrayListfromPycollection.Lists.LinkedListimportLinkedListlist=ArrayList()list.add("A")list.add("B")list.add("C")list.add("D")list.add("E")assert(list.count()==5)AuthorHasby Maulana (@hsbmaulana)
Package: hsc
Hackerrank-Solution-CrawlerCrawls solutions of hackerrank and stores as local files.How to use itPip install the packagepip install hscRun the commandhscLogin with your Hackerrank CredentialsEnter the limit of successful solutions you want to be crawledA new folder with nameHackerrankwould be created with all your solutions in itOptions to use while running scriptScripthscsupports following optionshelp:     -h or --helpusername: -u or --username -> username of hackerrank profilepassword: -p or --password -> password of hackerrank profilelimit:    -l or --limit    -> no. of solutions to be downloadedoffset:   -o or --offset   -> crawl solutions starting from this numberconfig:   -c or --config   -> path of config fileUsage:
We can use above script helpers ashsc-l34-ptestpassword-utestuserWe can also use config file to download solutions
Let config file be /etc/user.yamlusername:testuserhsc-c/etc/user.yaml-l34-ptestpassword
Package: hsccorpdamnitstupiddogman
The HackersToolkit module is used for EDUCATIONAL PURPOSES ONLY. WE DON’T ENCOURAGE USING THIS TO HARM.
USE AT YOUR OWN RISK, WE ARE NOT RESPONSIBLE FOR ANYTHING YOU CHOOSE TO DO.
2 functions at the moment, a web crawler(scans for hidden urls using a list of keywords to look for)
and a pinger that tests to see if the website is online.Change Log0.0.1 (6/21/21)First ReleaseComes with just 2 functions at the moment, we are working on adding moreWeb crawler and Web pinger to test if the site is up.
Package: hschacktoolkit
The HackersToolkit module is used for EDUCATIONAL PURPOSES ONLY. WE DON’T ENCOURAGE USING THIS TO HARM.
USE AT YOUR OWN RISK, WE ARE NOT RESPONSIBLE FOR ANYTHING YOU CHOOSE TO DO.
2 functions at the moment, a web crawler(scans for hidden urls using a list of keywords to look for)
and a pinger that tests to see if the website is online.Change Log0.0.1 (6/21/21)First ReleaseComes with just 2 functions at the moment, we are working on adding moreWeb crawler and Web pinger to test if the site is up.
Package: hscp
HSCPDescription:HSCPis aHyScoresClient, written in
Python. Its designed to be a simple and efficient library to use in your games.Usage:fromhscpimportHyScoresClientclient=HyScoresClient(# replace this with url of actually running instance of HyScoresurl="http://example.com",# and this with name of your applicationapp="hyscores",)# If you arent registered on this instance yetclient.register("your_login","your_password")client.login("your_login","your_password")# This will get list of scores already uploaded to serverprint(client.get_scores())License:MIT
Package: hscquery
hscqueryis a Python 2/3 module for querying theHyper Suprime-Cam Subaru Strategic Programdatabase.HSC-SSPBased on the python script developed by michitaro, NAOJ / HSC
Collaboration.SourceDependencieshscquerydepends onastropyandfuturepackages.Installationhscquerycan be easily installed usingpip:pip install hscqueryExampleA simple example of usinghscquery:from hscquery import HSC
from astropy import units as u
from astropy.coordinates import SkyCoord

coords = SkyCoord(34.0, -5.0, unit='deg')
radius = 5.0 * u.arcsec

h = HSC(survey='wide')
data = h.query_region(coords, radius)
print data
Package: hsd
Utilities to read and write files in the Human-friendly Structured Data (HSD)
format.The HSD-format is very similar to both JSON and YAML, but tries to minimize the
effort forhumansto read and write it. It ommits special characters as much
as possible (in contrast to JSON) and is not indentation dependent (in contrast
to YAML). It was developed originally as the input format for the scientific
simulation tool (DFTB+), but is
of general purpose. Data stored in HSD can be easily mapped to a subset of JSON
or XML and vica versa.Detaileddocumentationcan be found onRead the Docs.InstallationThe package can be installed via conda-forge:conda install --channel "conda-forge" hsd-pythonAlternatively, the package can be downloaded and installed via pip into the
active Python interpreter (preferably using a virtual python environment) bypip install hsdor into the user space issueingpip install --user hsdQuick tutorialA typical, self-explaining input written in HSD looks likedriver {
  conjugate_gradients {
    moved_atoms = 1 2 "7:19"
    max_steps = 100
  }
}

hamiltonian {
  dftb {
    scc = yes
    scc_tolerance = 1e-10
    mixer {
      broyden {}
    }
    filling {
      fermi {
        # This is comment which will be ignored
        # Note the attribute (unit) of the field below
        temperature [kelvin] = 100
      }
    }
    k_points_and_weights {
      supercell_folding {
        2   0   0
        0   2   0
        0   0   2
        0.5 0.5 0.5
      }
    }
  }
}The above input can be parsed into a Python dictionary with:import hsd
hsdinput = hsd.load("test.hsd")The dictionaryhsdinputwill then look as:{
    "driver": {
        "conjugate_gradients" {
            "moved_atoms": [1, 2, "7:19"],
            "max_steps": 100
        }
    },
    "hamiltonian": {
        "dftb": {
            "scc": True,
            "scc_tolerance": 1e-10,
            "mixer": {
                "broyden": {}
            },
            "filling": {
                "fermi": {
                    "temperature": 100,
                    "temperature.attrib": "kelvin"
                }
            }
            "k_points_and_weights": {
                "supercell_folding": [
                    [2, 0, 0],
                    [0, 2, 0],
                    [0, 0, 2],
                    [0.5, 0.5, 0.5]
                ]
            }
        }
    }
}Being a simple Python dictionary, it can be easily queried and manipulated in
Pythonhsdinput["driver"]["conjugate_gradients"]["max_steps"] = 200and then stored again in HSD formathsd.dump(hsdinput, "test2.hsd")LicenseThe hsd-python package is licensed under theBSD 2-clause license.
Package: hsdata
用数据玩炉石快速收集和分析炉石传说的卡牌及卡组数据运行环境hsdata 使用 Python 3 编写，引用了 requests 和 scrapy
两个模块，理论上可以在所有支持这两个模块的系统环境中运行。如何安装推荐使用 pip 安装pip3 install -U hsdata快速上手importhsdata# 获取卡组数据decks=hsdata.HSBoxDecks()# 若未找到本地数据，会自动从网络获取print('从炉石盒子获取到',len(decks),'个卡组数据！')# 更新卡组数据# decks.update()# 搜索卡组found=decks.search(career='萨满',mode=hsdata.MODE_STANDARD,min_games=10000,win_rate_top_n=5)print('其中5个胜率最高的萨满卡组:')fordeckinfound:print('{}:{}场,{:.2%}胜'.format(deck.name,deck.games,deck.win_rate))# 查看卡组中的卡牌print('其中第一个卡组用了这些卡牌')print(found[0].cards)运行结果类似这样从炉石盒子获取到 1574 个卡组数据！其中5个胜率最高的萨满卡组:【黄金赛冠军】OmegaZero中速萨: 124830 场, 63.47% 胜【欧服登顶】Janos 中速萨: 172444 场, 63.02% 胜【EULC冠军】Pavel中速萨: 61187 场, 62.73% 胜【欧服前50】Toymachine中速萨: 41754 场, 60.95% 胜【外服登顶】Ownerism 中速萨: 152966 场, 60.94% 胜其中第一个卡组用了这些卡牌Counter({<Card: 坑道穴居人 (LOE_018)>: 2,<Card: 大漩涡传送门 (KAR_073)>: 2,<Card: 碧蓝幼龙 (EX1_284)>: 2,<Card: 幽灵之爪 (KAR_063)>: 2,<Card: 火元素 (CS2_042)>: 2,<Card: 巴内斯 (KAR_114)>: 1,<Card: 银色侍从 (EX1_008)>: 1,<Card: 血法师萨尔诺斯 (EX1_012)>: 1,<Card: 野性狼魂 (EX1_248)>: 2,<Card: 法力之潮图腾 (EX1_575)>: 2,<Card: 深渊魔物 (OG_028)>: 2,<Card: 闪电箭 (EX1_238)>: 2,<Card: 雷霆崖勇士 (AT_049)>: 2,<Card: 火舌图腾 (EX1_565)>: 2,<Card: 图腾魔像 (AT_052)>: 2,<Card: 闪电风暴 (EX1_259)>: 1,<Card: 妖术 (EX1_246)>: 2})以上只是个帮助入门的例子，发挥想象力，用它来探索更多吧！数据来源目前 hsdata 采用了以下数据来源，这些数据的版权为各数据源所有。卡牌数据HearthstoneJSON卡组数据网易炉石盒子HearthStats许可协议: Apache License, Version 2.0
Package: hs-dbus-signature
This package contains a Hypothesis strategy for generating DBus signatures.
An informal specification of DBus signatures is available at:https://dbus.freedesktop.org/doc/dbus-specification.html.The strategy is intended to be both sound and complete. That is, it should
never generate an invalid DBus signature and it should be capable, modulo
size constraints, of generating any valid DBus signature.UsageImport the function and obtain a strategy with the default parameters.>>> from hs_dbus_signature import dbus_signatures
>>> strategy = dbus_signatures()Obtain a few examples of valid signatures, e.g.,>>> strategy.example()
''
>>> strategy.example()
'a{ng}'
>>> strategy.example()
'a{xas}a{gah}a{nau}'Make use of the strategy in your tests, e.g.from hypothesis import given

@given(dbus_signatures())
def test(signature):
    ...Use the parameters to omit dicts>>> strategy = dbus_signatures(exclude_dicts=True)
>>> strategy.example()
'(gnggg)(n)(gn)(nnnnn)(nn)'or to ensure that no example signature is the empty string>>> strategy = dbus_signatures(min_complete_types=1)
>>> strategy.example()
'a{sv}'The strategy will raise an InvalidArgument exception immediately if it is given
arguments which allow no examples to be drawn.>>> strategy = dbus_signatures(blacklist=string.ascii_lowercase)
Traceback (most recent call last):
...RemarksDocumentation for the Hypothesis testing library can be found athttp://hypothesis.readthedocs.io.This strategy makes use of the Hypothesis higher-order strategy, recursive(),
which is discussed here:http://hypothesis.works/articles/recursive-data/.It is only supported for Python 3 as it uses Python 3 only syntax.Downstream packagers, if incorporating testing into their packaging, are
encouraged to use only the tests in the test_deterministic.py module, to
avoid testing failures that may arise due to the non-deterministic behavior
of Hypothesis tests.
Package: hs-dl
InspirationThere are a lot of anime on H.S. for which there is no batch-download
available. Purpose of this package is to implement that.Introductionhs_dl (written in python3) takes in an anime_link that corresponds to the show
page on horrible subs for which you want to download torrents for.PyPI packagehttps://pypi.org/project/hs-dl/Installationpython-mpipinstallhs_dlDocumentationOnline Documentation can be found here:https://hs-dl.readthedocs.ioYou can also view the documentation in thedocs/directory.Build it by runningcddocsmakehtmlThen opendocs/_build/html/index.htmlfor web page.Source Codehttps://github.com/samyakahuja/hs_dlTodoImplement selective torrent downloadingAutomate torrent adding to clients like qbittorent
Package: hsds
HSDS is a web service that implements a REST-based web service for HDF5 data stores.
Data can be stored in either a POSIX files system, or using object-based storage such as
AWS S3, Azure Blob Storage, or [MinIO](https://min.io).
HSDS can be run a single machine or on a cluster using Kubernetes (or AKS on Microsoft Azure).In addition, HSDS can b  e run in serverless mode with AWS Lambda or h5pyd local mode.
Package: hsds-data-tool
hsds-data-toolData validator and transformer for Human Services Data Standard.InstallationInstall this tool usingpip:$ pip install hsds-data-toolUsageUsage instructions go here.DevelopmentTo contribute to this tool, first checkout the code. Then create a new virtual environment:cd hsds-data-tool
python -m venv venv
source venv/bin/activateOr if you are usingpipenv:pipenv shellNow install the dependencies and test dependencies:pip install -e '.[test]'To run the tests:pytest
Package: hsdustconverter
hsDustConverterHelps to convert duplicate cards into dust in HearthstoneFree software: MIT licenseDocumentation:https://hsdustconverter.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-10-15)First release on PyPI.
Package: hse2
HSE Python BindingsHeterogeneous-Memory Storage Enginebindings for Python.Virtual EnvironmentTo buildhse-python, it may be advantageous to use a Python virtual
environment. Use the following commands to set one up:python3-mvenvvenvsourcevenv/bin/activate
python3-mpipinstall-rrequirements.txtBuildinghse-pythonis built using theMeson build system.
In the event HSE is not visible to thehse-pythonbuild system, HSE will be
fetched and built alongsidehse-python.mesonsetupbuild
mesoncompile-CbuildCheck the output ofmeson configure buildormeson_options.txtfor various build options.InstallationFrom PyPIpython3-mpipinstallhse2From BuildThe default install directory is/opt/hse. This can be overridden by
configuring the build with either-Dprefix=$prefixor--prefix=$prefix.mesoninstall-CbuildAdditional ReferencesInformation on running test suites and contributing tohse-pythonis located
in theCONTRIBUTING.mdfile.
Package: hse-ruz
Python wrapper for HSE RUZ API.Versions under 2.1.0 are depreciated due to HSE RUZ API schema changes.What’s new?RequirementsPython >= 3.5 or latest PyPy3Installationpipinstall-Uhse_ruzUsageimportruzschedule=ruz.person_lessons("mymail@edu.hse.ru")Module configuration performs throw setting environment variables:HSE_RUZ_ENABLE_VERBOSE_LOGGING- to enable verbose logging (@log)HSE_RUZ_API_URL- url to RUZ API, possible values (not all endpoints supported for 2, 3):http://92.242.58.221/ruzservice.svc- defaulthttp://92.242.58.221/ruzservice.svc/v2https://www.hse.ru/apiCHECK_EMAIL_ONLINE- to enable online email verification (throw API call)Contributinggitclonehttps://github.com/hell03end/hse_ruz.gitcdhse_ruzpytest-v# check requests schema is valid and etc.