Saravanan666/pypi-org huggingface dataset:
Package: htmx-flask
htmx-Flaskhtmx-Flask is an extension for Flask that adds support forhtmxto
your application.  It simplifies using htmx with Flask by enhancing the globalrequestobject and providing a newmake_responsefunction.InstallIt's justpip install htmx-flaskand you're all set. It's a pure Python package that
only needsflask(for obvious reasons!).UsageHtmx RequestBefore using the enhancedrequest, you need to initialize the extension with:fromflaskimportFlaskfromhtmx_flaskimportHtmxhtmx=Htmx()app=Flask(__name__)htmx.init_app(app)After that, you can usehtmx_flask.request.htmxto easily accesshtmx request headers. For example,
instead of:fromflaskimportrequestfrommy_appimportapp@app.route("/")defhello_workd():ifrequest.headers.get("HX-Request")=="true":is_boosted="Yes!"ifrequest.headers.get("HX-Boosted")=="true"else"No!"current_url=request.headers.get("HX-Current-URL")return("<p>Hello World triggered from a htmx request.</p>"f"<p>Boosted:{is_boosted}</p>"f"<p>The current url is{current_url}.")else:return"<p>Hello World triggered from a regular request.</p>"You can do:fromhtmx_flaskimportrequestfrommy_appimportapp@app.route("/")defhello_workd():ifrequest.htmx:is_boosted="Yes!"ifrequest.htmx.boostedelse"No!"current_url=request.htmx.current_urlreturn("<p>Hello World triggered from a htmx request.</p>"f"<p>Boosted:{is_boosted}</p>"f"<p>The current url is{current_url}.")else:return"<p>Hello World triggered from a regular request.</p>"Htmx responseYou might be interested on addinghtmx response headersto your response.
Usehtmx_flask.make_responsefor that. For example, instead of:importjsonfromflaskimportmake_responsefrommy_appimportapp@app.route("/hola-mundo")defhola_mundo():body="Hola Mundo!"response=make_response(body)response.headers["HX-Push-URL"]="false"trigger_string=json.dumps({"event1":"A message","event2":"Another message"})response.headers["HX-Trigger"]=trigger_stringreturnresponseYou can do:fromhtmx_flaskimportmake_responsefrommy_appimportapp@app.route("/hola-mundo")defhola_mundo():body="Hola Mundo!"returnmake_response(body,push_url=False,trigger={"event1":"A message","event2":"Another message"},)IntelliSenseBy using htmx-Flask you will also get the benefits of code completion, parameter info
and quick info on your IDE. Check out these screenshots from PyCharm:How to contributeThis project uses pre-commit hooks to run black, isort, pyupgrade and flake8 on each commit. To have that running
automatically on your environment, install the project with:pipinstall-e.[dev]And then run once:pre-commitinstallFrom now one, every time you commit your files on this project, they will be automatically processed by the tools listed
above.How to run testsYou can install pytest and other required dependencies with:pipinstall-e.[tests]And then run the test suite with:pytest
Package: h-tool-library
h-tool-library常用的方法和函数安装方式pipinstallh-tool-library使用方法fromh_tool_library.tools.hashimportpassword_encrypassword=password_encry("123")print(password)APIh_tool_library.tools.hash 密码，加密相关
h_tool_library.tools.base 基础工具函数
Package: htpasswd
# htpasswd [![Build Status](https://secure.travis-ci.org/thesharp/htpasswd.png)](http://travis-ci.org/thesharp/htpasswd)## Descriptionhtpasswdis a library for working with htpasswd user (only basic authorization) and group files. It supports CRYPT and MD5 encryption methods. To actually use MD5 encryption method youMUSThave anopensslbinary installed into system$PATH.## Dependencies
- Python 2.7 or 3.3 or 3.4
- [orderedmultidict](http://pypi.python.org/pypi/orderedmultidict/0.7) >= 0.7
- [future](https://pypi.python.org/pypi/future)
- [nose](http://pypi.python.org/pypi/nose/) >= 1.1.2 (for tests)## Sample usageimport htpasswdwith htpasswd.Basic(“/path/to/user.db”) as userdb:try:userdb.add(“bob”, “password”)except htpasswd.basic.UserExists, e:print etry:userdb.change_password(“alice”, “newpassword”)except htpasswd.basic.UserNotExists, e:print ewith htpasswd.Group(“/path/to/group.db”) as groupdb:try:groupdb.add_user(“bob”, “admins”)except htpasswd.group.UserAlreadyInAGroup, e:print etry:groupdb.delete_user(“alice”, “managers”)except htpasswd.group.UserNotInAGroup, e:print eTo use MD5 encryotion, addmode="md5"to the constructor:with htpasswd.Basic(“/path/to/user.db”, mode=”md5”) as userdb## Provided methods### Basic
-__contains__(user)-users-add(user, password)-pop(user)-change_password(user, password)-_encrypt_password(password)### Group
-__contains__(group)-groups-is_user_in(user, group)-add_user(user, group)-delete_user(user,  group)## Exceptions### UserExists
Raised byBasic.addif user already exists.### UserNotExists
Raised byBasic.deleteandBasic.change_passwordif there is no such user.### GroupNotExists
Raised byGroup.delete_userif there is no such group.### UserAlreadyInAGroup
Raised byGroup.add_userif user is already in a group.### UserNotInAGroup
Raised byGroup.delete_userif user isn’t in a group.### UnknownEncryptionMode
Raised by _encrypt_password if mode is not ‘crypt’ or ‘md5’.
Package: htpbs
HtpbsHtpbs is a Python library that creates horizontal progress bars to keep
track of the progress of threaded jobs. Bars in htpbs are completely customizable.InstallationUse the package managerpipto install htpbs.pipinstallhtpbsUsageThe following are examples about how to use this library for threaded and non threaded barsThreaded horizontal barsfromhtpbsimportProgressBars,Workimporttime# required for demonstration purposes only# Note: users can create any configuration or function to be passed to the Work object below.defwork(progressbars,bar_index,work_value,work_name):""":param progressbars: the progressbar obkect:param bar_index: a integer representing the index of the bae:param work_value: a value for time.sleep() to simulate different progress bars rates:param work_name: the name of the work:return: VOID"""progressbars.set_bar_prefix(bar_index=bar_index,prefix=work_name)foriinrange(101):# your work here. we use the time.sleep() as example# Real work could be downloading a file and show progresstime.sleep(work_value)progressbars.update(bar_index=bar_index,value=i)progressbars.finish()# start with 3 barsprogressbars=ProgressBars(num_bars=3)# set bar #3 to be the total progressprogressbars.set_last_bar_as_total_progress(prefix="Total: ")# start all the threaded worksWork.start(work,(progressbars,0,0.1,"w1: "))Work.start(work,(progressbars,1,0.01,"w2: "))# output after works finished# w1: |██████████| 100% completed   w2: |██████████| 100% completed    Total: |██████████| 100% completedUsing the same threadfromhtpbsimportProgressBarsimporttime# required for demostration purposes onlyprogressbars=ProgressBars(num_bars=5)progressbars.set_last_bar_as_total_progress(prefix="Total Progress: ")# set total progress bar at any index# progressbars.set_total_bar(index=3, prefix="total: ")# using the same threadforiinrange(101):time.sleep(0.1)values=[i,i+5,i+10,i+15,0]# zero for init total progressprogressbars.update_all(values)# update bars in the same threadprogressbars.finish_all()# avoid memory leaks.Remove bars when job is done and init the next bar# clearing and initializing new progress bars:fromhtpbsimportProgressBarsimporttime# required for demostration purposes onlyprogressbars=ProgressBars(num_bars=3)progressbars.set_last_bar_as_total_progress(prefix="Total Progress: ")# hide the bars that are not being used at the moment# multiple bars can be hidden at the same timeprogressbars.set_hidden_bars([1])# non threaded work 1 startsforiinrange(101):time.sleep(0.1)progressbars.update(bar_index=0,value=i)progressbars.finish()# clears the bar that was completed from screenprogressbars.clear_bar(bar_index=0)# resets the new bar that will appear in screenprogressbars.reset_bar(index=1,prefix="new bar: ")# non threaded work 2 startsforiinrange(101):time.sleep(0.1)progressbars.update(bar_index=1,value=i)progressbars.finish()ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIThtpbsversion: 0.0.4
Package: htpio
HTPIO : Remote I/O Access LibraryHTPIO allows users to use Raspberry Pi's GPIOs or similiar hardware remotely using various telecommunication protocols. The library also
offers a simple locking mechanism in order to implement advanced testing scenarios using shared hardware.HTPIO is a subset of the Hilscher Test Framework for products of the netX family. A brief overview of some netX
products is given in the links below:Network ControllersPC CardsEmbedded ModulesGatewaysIndustrial Internet / IoTAnalysis and Data AcquisitionAutomation and VisualizationSoftwareRequirementsPython >=2.7Python >=3.4FeaturesRemote GPIO access using various protocolsPin locking to ensure shared use of hardware resourcesCommand line interface for shell scriptingInstallationFirst check if pip is installed on the your computer:pip --version
pip 19.1.1 from c:\python\3.7.3\lib\site-packages\pip (python 3.7)If the operating system doesn't recognize the command and your operating system is Linux or Windows 8+:curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
python get-pip.pyelse visithttps://bootstrap.pypa.io/get-pip.pyand download the file. Then run the following command:python get-pip.pyIf pip is installed, we can proceed further to check for pipenv and eventually install it:pipenv --version
pipenv, version 2018.11.26If pipenv is not present on the system issue the following command :pip install pipenvTo install htpio's latest stable release from PyPi usepipenv(or pip):pipenv install htpioor install the latest stable version from BitBucket:pipenv install https://bitbucket.org/hilscherdtc/htpio/get/stable.tar.gzLibrary interface>>> from htpio import bridge, socketio, telnetio
>>> device = telnetio.RaspberryPi('192.168.199.31')
>>> gpio = bridge.RemoteAccess(device)
>>> gpio.lock(14)
>>> gpio.unlock(14)
>>> gpio.islocked(14)
>>> gpio.configure(14, gpio.OUTPUT)
>>> gpio.set(14, 1)
>>> gpio.get(14)
>>> gpio.deconfigure(14)
>>> gpio.logout()Command line interface$ htpio -p telnet set --host 192.168.199.31 --pin 14 --val 1
$ htpio -p socket get --host 192.168.199.31 --pin 14
$ htpio lock --host 192.168.199.31 --pin 14
$ htpio unlock --host 192.168.199.31 --pin 14
Package: h-transport-materials
H-transport-materialsH-transport-materials (HTM) is a comprehensive database providing accountable and transparent hydrogen transport material properties. The project aims to reduce error propagation between published experimental results and users. HTM can be used in python scripts. Complete documentation on the usage of H Transport Materials is available in the documentation.Installation instructions are availble in thedocumentation.Online dashboardAn online dashboard application is availbale forHTM.The web app provides and intuitive and interactive graphical user interface for the HTM database.ContributeWant to contribute to HTM? Consider thecontibution workflowin the docs.Alternatively if you have a material property you would like to add, there is a dedicatedissue formSpot a bug! or have any suggestions, feel free to raise anissue.Compiled databaseWith each release of HTM, there is a compiled version of the database in .json format. You can download the lastest releasehere.Citing h-transport-materialsIf you have used h-transport material, please consider aknowlegdement of your usage by citing theDOIOr the following bibtex@misc{delaporte-mathurin_remdelaportemathurinh-transport-materials_2023,title={{RemDelaporteMathurin}/h-transport-materials: {Test} release 2},shorttitle={{RemDelaporteMathurin}/h-transport-materials},url={https://zenodo.org/record/7888448},abstract={Full Changelog: https://github.com/RemDelaporteMathurin/h-transport-materials/compare/v0.12.7-alpha...v0.12.7-beta},urldate={2023-05-08},publisher={Zenodo},author={Delaporte-Mathurin, Rémi and Fuerst, Thomas and Dark, James},month=may,year={2023},doi={10.5281/zenodo.7888448},}
Package: htrc-text-processing
HTRC-Text-Processing LibraryTool to processpairtreeformat data in 17 million digitized works at HathiTrust.Table of ContentsAbout htrc-text-processing LibraryInstallationUsageExamplesAbouthtrc-text-processingLibraryDetailed Description goes here.InstallationTo install,pipinstallhtrc-text-processingThat's it! This library is written for Python 3.6+. For Python beginners, you'll needpip.UsageFunction:get_zips()A function that finds the zip files at the end of the pairtree, moves them to a new folder and expands them, removing the zips.Inputs:Path (string) to directory that holds the pairtree.Path (string) to directory that will hold the folders from expanded zips.htrc_text_processing.get_zips('<path to pairtree parent/s>','path to output directory')Function:normalize_txt_file_names()A function that clean and normalizes page file names.Example: turns39002088672754_000001.txtinto00000001.txthtrc_text_processing.normalize_txt_file_names('txt path or dir to txts')Function:clean_vol()Inputs:List of paths (strings) to directories that holds page files, one per volumePath (string) to output directory where clean single text files will be stored after cleaning and concatenating pages togetherFunction:check_vol()Inputs:Page directory ListCleaned vols output dirOutputPage directory list which is not cleaned yetnew_page_directory_list=htrc_text_processing.check_vol(page_directory_list,clean_vol_out_dir)issues? Please filehere
Package: htreader
htreaderInstallationpip install htreaderfrom htreader.htreader import (
    ReadText,
    WriteText,
    UpdateText,
    DeleteFiles,
    CreateFiles
)UsageTo open and read content of files:ReadText()from htreader.htreader import ReadText

files = './example.txt'
read = ReadText(files)
print(read)

"""You can try with this::"""
ReadText(file_name = files##)To create a new file and write on it:CreateFiles()from htreader.htreader import ReadText, WriteText, UpdateText,DeleteFiles, CreateFiles

files = './example.txt'
use = CreateFiles(
    file_name=files,
    create="this is the content of files"
)To write files:WriteText()from htreader.htreader import ReadText, WriteText

files = './example.txt'

use = WriteText(
    file_name = files, 
    contents = "i am prood of me\n i have knowledge."
)
print(files)To Update files content:UpdateText()from htreader.htreader import ReadText, WriteText, UpdateText

files = './example.txt'
text = "\n this is a new text for updated"

use = UpdateText(
    file_name=files,
    update_contents=text
)

print(use)To Delete files:DeleteFiles()from htreader.htreader import ReadText, WriteText, UpdateText,DeleteFiles

files = './example.txt'
use = DeleteFiles(file_name=files)
print(use)
Package: htrflow_cookie
htrflow_cookieDocumentation:https://Swedish-National-Archives-AI-lab.github.io/htrflow_cookieSource Code:https://github.com/Swedish-National-Archives-AI-lab/htrflow_cookiePyPI:https://pypi.org/project/htrflow_cookie/A short description of the projectInstallationpipinstallhtrflow_cookieDevelopmentClone this repositoryRequirements:PoetryPython 3.10+Create a virtual environment and install the dependenciespoetryinstallActivate the virtual environmentpoetryshellTestingPoetry provides a run command to execute the given command inside the project’s virtual environment. So execute the following command to run the tests:poetryrunpytest-vAnd if your inside the virtual environment run:pytestBuilding the packageFor Poetry, the equivalent ofpip install -e. (which is used to install a package in editable mode with pip) is to use the poetry install command in the root directory of the project.When you runpoetry installin a project that is managed by Poetry, it installs the project's dependencies as well as the project itself in editable mode. This means that changes to the project's code will immediately affect the installed package without the need for reinstallation.You can run poetry install whether you're inside the Poetry-created virtual environment (activated using poetry shell) or not. Poetry will handle the installation of the project in editable mode correctly in either case.Publish the PackageBut before you can publish your library, you need to package it with the build command:poetrybuildTo publish your library, you will need to properly configure your PyPI credentials, as Poetry will publish the library to PyPI by default.poetryconfigrepositories.test-pypihttps://test.pypi.org/legacy/Configure key:poetryconfigpypi-token.test-pypipypi-<tokenv_value>Once the library is packaged, you can use the publish command to publish it.# Only `poetry publish` will push by default to pypi directlypoetrypublish-rtest-pypiMIT LicenseCopyright (c) 2023 Borg93Permission 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: htruc
HTRUCPronuncedEuchTruc(ce truc), this contains most of the tooling for the catalog records:Parses catalog recordsTest the validity of the catalog according to different schemasBuilds agglomerated catalog records with optional datavizRetrieve catalog information from all repositories of a user or an organization.InstallEither clone and runpython setup.py installoruse the pip versionpip install htrucUseTesting a catalog recordSimply runhtruc test YourYamlFile.ymlUpgrade a previously existing catalog recordRunhtruc upgrade yourYamlFile.ymlUpgrade a previously existing catalog record to the newest schemaRunhtruc upgrade yourYamlFile.ymlUpgrade metrics usingHTR-United Metadata Generator (HUMg)Runhtruc update-volumes YourYamlFile.yml MetricFileFromHUMG.jons --inplaceLogo byAlix Chagué.
Package: htr-united-metadata-generator
HUM Generator, the HTR United Metadata GeneratorTool that generates, through github actions, a set of metadata to help document repos.Install as github actionIf you want to use badge, seethe tutorialIn the directory .github/workflows, create a file HumGenerator with the following content# This workflow will install Python dependencies, run tests and lint with a single version of Python# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actionsname:HTR United Reporton:[push,pull_request]jobs:test:runs-on:ubuntu-lateststeps:-uses:actions/checkout@v2-name:Set up Python 3.8uses:actions/setup-python@v2with:python-version:3.8-name:Install dependenciesrun:|python -m pip install --upgrade pippip install htr-united-metadata-generator-name:Run Reportrun:|humGenerator --group **/*.xmlLogo byAlix Chagué.
Package: htsct
使用说明使用pip安装该软件包初始化：htsct init配置ASE所需的vasp赝势文件启动数据库服务 "htsct-db run --port 8000 --host 0.0.0.0"批量能带计算确保数据库已经启动htsct task --fileType ".cif" --folderNum 6 --maxFile 1 --srcFolder "src" 启动文件自动管理
Package: htseq-clip
htseq-cliphtseq-clip is a toolset for the analysis of eCLIP/iCLIP datasets.
This python package can be used to generate files necessary for
data analysis using the companion R/Bioconductor packageDEWSeq.URL:https://github.com/EMBL-Hentze-group/htseq-clipDocumentation:https://htseq-clip.readthedocs.io/en/latest/index.htmlBugReports:https://github.com/EMBL-Hentze-group/htseq-clip/issuesInstallationpip install htseq-clipCopyright (c) 2020 Sudeep Sahadevan, Marko Fritz, Nadia Ashraf and Thomas Schwarzl**Project lead: Thomas SchwarzlMatthias HentzeandWolfgang HuberLabs,EMBL, Heidelberg.
Package: hts-forecast
Auto Hierarchical Time Series ForecastingInstallationFew modules used in this package are not supported by python >= 3.9.* . So, we recommend you to create an virtual environment with python=3.8.* and run requirements.txt fileStep 1 :
Create virtual environment using condacondacreate-nauto_htspython=3.8Step 2 :pipinstall-rrequirements.txtStep 3 :pipinstallauto_hts_forecastUsage
Package: htsg
htsg - another SSG"htsg" is a minimal SSG (Static Site Generator).This helps creating PURE HTML sites.RequirementsPython3 (3.6+)Installpip install htsgUsageHere is a brief explanation. Also read the source.ExamplevisitexampleGenerate siteRun in shell:htsgRunhtsg -hto show more options.Or, you can use in Python script:import htsg

astdir = "./assets"
tpldir = "./templates"
distdir = "./dist"
cfgfile = "./config.toml"

htsg.generate(astdir, tpldir, distdir, cfgfile)Run development serverFor developping, htsg has HTTP server. It watches files and regenerates site when sources changed.Run in shell:htsg -sRunhtsg -hto show more options.Or, in Python script:import htsg

host = "0.0.0.0"
port = 8000
astdir = "./assets"
tpldir = "./templates"
distdir = "./dist"
cfgfile = "./config.toml"

htsg.serve(host, port, astdir, tpldir, distdir, cfgfile)Release notev1.0.0(2022/05/13)Initial releaseLicenseThis project is under the MIT-License.See alsoLICENSE.AuthorLaddge
Package: htsilicon
HT (Silicon Mac)A package that allows to track the x, y, z locations of specific points from 0-20 in your hands.Key Features•How To Use•Install•Key FeaturesTracks your handThe hand connections or lines can be show or hiddenWorks for almost all computersQuick and not much lagSimple code that is easy to understand and customize if neededHow To UseThe following code gets the x, y locations of the index finger tip and moves the mouse accordinglyimporthtsiliconimportcv2cap=cv2.VideoCapture(0)handt=htsilicon.ht()while1:success,img=cap.read()img=handt.findhand(img,show_lines=False)lml=handt.findpos()iflen(lml)!=0:print(lml[8])cv2.imshow("Box",img)cv2.waitKey(1)InstallInstall with pip$pipinstallhtsiliconLicenseMIThttp://advaith.athenaserv.com· 
GitHub@advaith-22· 
Twitter@_Advaith_S
Package: htsinfer
HTSinferHTSinfer infers metadata from High Throughput Sequencing (HTS) dataUsagehtsinfer[-hv]Parametersoptional arguments:-h, --help     show this help message and exit--version      show version information and exit-v, --verbose  print logging messages to STDERR--debug        also print debugging messages to STDERRExtended usageRun locallyIn order to use the package, clone the repository and install the dependencies:gitclonehttps://github.com/zavolanlab/htsinfercdhtsinfer
pipinstall-rrequirements.txt
pythonsetup.pyinstallNOTE:You may want to install dependencies inside a virtual environment,
e.g., usingvirtualenv.To verify the correct installation, you can run the tests that are shipped with
the package:python-mpytestYou can then run the package via the CLI scripthtsinferas described in theUsagesection.Run inside containerIf you haveDockerinstalled, you can also pull the Docker
image:dockerpullzavolab/htsinfer:latestThe script can be found in directory/home/user/htsinfer/srcinside the
Docker container.The Docker image contains an entry point for the CLI scripthtsinferso that
you can run it, e.g., with:dockerrun--rm-itzavolab/htsinfer:latest--helpNOTE:To run the tool on your own data in that manner, you will probably
need to [mount a volume][res-docker-volume] to allow the container read input
files and write persistent output from/to the host file system.ContributingThis project lives off your contributions, be it in the form of bug reports,
feature requests, discussions, or fixes and other code changes. Please refer
to thecontributing guidelinesif you are interested to
contribute. Please mind thecode of conductfor all
interactions with the community.ContactFor questions or suggestions regarding the code, please use theissue tracker. For any other inquiries, please contact us
by email:zavolab-biozentrum@unibas.ch(c) 2020Zavolan lab, Biozentrum, University of Basel