Saravanan666/pypi-org huggingface dataset:
Package: hatemile
HaTeMiLe for PythonHaTeMiLe (HTML Accessible) is a library that can convert a HTML code in a HTML code more accessible.Accessibility solutionsAssociate HTML elements;Provide a polyfill to CSS Speech and CSS Aural properties;Display inacessible informations of page;Enable all functionality of page available from a keyboard;Improve the acessibility of forms;Provide accessibility resources to navigate.DocumentationTo generate the full API documentation of HaTeMiLe of Python:Install, create and activate a virtualenv;Install dependencies;Execute the API docs of sphinx indocsdirectory;sphinx-apidoc-e-f-o_modules/../hatemile
makehtmlOpen thedocs/_build/html/index.htmlwith an internet browser.Import the library to your projectTo install the HaTeMiLe for Python library, execute these command in terminal:pipinstallhatemileUsageImport all needed classes:fromhatemile.implementation.associmportAccessibleAssociationImplementationfromhatemile.implementation.cssimportAccessibleCSSImplementationfromhatemile.implementation.displayimportAccessibleDisplayImplementationfromhatemile.implementation.eventimportAccessibleEventImplementationfromhatemile.implementation.formimportAccessibleFormImplementationfromhatemile.implementation.navigimportAccessibleNavigationImplementationfromhatemile.util.configureimportConfigurefromhatemile.util.css.tinycss.tinycssparserimportTinyCSSParserfromhatemile.util.html.bs.bshtmldomparserimportBeautifulSoupHTMLDOMParserInstanciate the configuration, the parsers and solution classes and execute them:configure=Configure()parser=BeautifulSoupHTMLDOMParser(html_code)css_parser=TinyCSSParser(parser,current_url)event=AccessibleEventImplementation(parser)css=AccessibleCSSImplementation(parser,css_parser,configure)form=AccessibleFormImplementation(parser)navigation=AccessibleNavigationImplementation(parser,configure)association=AccessibleAssociationImplementation(parser)display=AccessibleDisplayImplementation(parser,configure)event.make_accessible_all_drag_and_drop_events()event.make_accessible_all_click_events()event.make_accessible_all_hover_events()form.mark_all_required_fields()form.mark_all_range_fields()form.mark_all_autocomplete_fields()form.mark_all_invalid_fields()navigation.provide_navigation_by_all_headings()navigation.provide_navigation_by_all_skippers()navigation.provide_navigation_to_all_long_descriptions()association.associate_all_data_cells_with_header_cells()association.associate_all_labels_with_fields()css.provide_all_speak_properties()display.display_all_shortcuts()display.display_all_roles()display.display_all_cell_headers()display.display_all_waiaria_states()display.display_all_links_attributes()display.display_all_titles()display.display_all_languages()display.display_all_alternative_text_images()navigation.provide_navigation_by_all_skippers()display.display_all_shortcuts()print(parser.get_html())ContributingIf you want contribute with HaTeMiLe for Python, readcontributing guidelines.See alsoHaTeMiLe for CSSHaTeMiLe for JavaScriptHaTeMiLe for JavaHaTeMiLe for PHPHaTeMiLe for Ruby
Package: hatena2md
Hatena2MDA small python application to convert text from Hatena Notation (はてな記法) to Markdown.
Hatena Notation has some nifty features (like automatic table of content generation, automatic link title fetching) that are implemented into this converter.Take a look at thissample file in Hatena Notationand its representation inmarkdownInstallationpython-mpipinstallhatena2mdUsagepython-mhatena2md-i<inputfile>-o<outputfile>LicenseThe Unlicense
Package: hatena2rest
Hatena2reST is for conversion from Hatena Diary to Tinkerer. Tinkerer is blog system of reST format that is powered by Sphinx. Exported data of Hatena Diary are four kinds format. Those are XML, Movable Type format, CSV and PDF. This tools support XML only.RequirementPython 2.x (>= 2.7)Sphinx (>= 1.1.0)Tinkerer (>= 0.4 beta)SetupInstall Debian packages that Hatena2reST depends onHatena2reST depends on Python2.7, Sphinx, Tinkerer. Install Sphinx is:$ sudo apt-get install python-sphinxBut Tinkerer are not yet official Debian packages, then download python-tinkerer fromhttp://www.palmtb.net/deb/t/Instal that choosing with one of three ways.from source$ git clone https://github.com/mkouhei/hatena2rest.git
$ cd hatena2rest
$ sudo python setup.py installPyPI$ pip install hatena2restDebian packageNot yet official package, then download python-hatena2rest-x.x_all.deb fromhttp://www.palmtb.net/deb/and install with dpkg command.:$ wget http://www.palmtb.net/deb/h/python-hatena2rest_x.x-x_all.deb
$ sudo dpkg -i python-hatena2rest_x.x-x_all.debUsageExport Hatena Diary with XML format.Execute htn2rst commandl.$ htn2rst your_hatena_id.xmlRetrieve your photo images when converting, execute htn2rst command with “-r/–retrieve” option.$ htn2rst -r your_hatena_id.xmlChange generated direcotry.$ cd ~/tmp/hatena2restEdit necessary setting items of tineker conf file.$ edit conf.pyBuild from reST to HTML files with tinker command.$ tinker -b -qHISTORY0.1.1 (2012-09-14)Fix convert categories and title with URI.0.1 (2012-09-12)Support input as XML format.MovableType format is no longer supported.Pystache is no longer used.prototype (2012-03-31)Prototype releaseToDounit testmulti blog conversion with merging master.rst
Package: hatena-haiker
hatena-haiker is an unofficial library
for theHatena HaikuAPI.Examplesimporthaikerapi=haiker.Haiker()forstatusinapi.public_timeline(count=3,body_formats=['haiku']):created_at=status.created_at.strftime('%Y-%m-%d%H:%M:%S')print(created_at,status.user.id,status.keyword)print(status.haiku_text)print()importhaikerauth=haiker.OAuth('MyConsumerKey','MyConsumerSecret','MyAccessToken','MyAccessTokenSecret')api=haiker.Haiker(auth)status=api.update_status('BOT','Hello, world!',source='API')api.add_star(status.id)Installationpip3install--upgradehatena-haikerDocumentationAfter completing the installation, execute the following:python3-mpydochaiker
Package: hatesonar
HateSonar: Hate Speech DetectionHateSonar is thehate speech detectionlibrary for Python.Behold, the power of HateSonar:>>>fromhatesonarimportSonar>>>sonar=Sonar()>>>sonar.ping(text="At least I'm not a nigger"){"text":"At least I'm not a nigger","top_class":"hate_speech","classes":[{"class_name":"hate_speech","confidence":0.6001793646345871},{"class_name":"offensive_language","confidence":0.399548534507691},{"class_name":"neither","confidence":0.0002721008577219325}]}HateSonar allows you to detect hate speech and offensive language in text, without the need for training. There's no need to train the model. You have only to fed text into HateSonar. It detects hate speech with the confidence score.Feature SupportHate speech and offensive language detectionHateSonar officially supports Python 2.7 & 3.4–3.6InstallationTo install HateSonar, simply usepip:$pipinstallhatesonarReferenceThomas Davidson, Dana Warmsley, Michael Macy, and Ingmar Weber. 2017. "Automated Hate Speech Detection and the Problem of Offensive Language." ICWSM.
Package: hatespans
HateSpansWe provide state-of-the-art models to detect toxic spans in text. We have evaluated our models on  Toxic Spanstask at SemEval 2021 (Task 5).InstallationYou first need to install PyTorch. The recommended PyTorch version is 1.6.
Please refer toPyTorch installation pageregarding the specific install command for your platform.When PyTorch has been installed, you can install HateSpans from pip.From pippipinstallhatespansPretrained HateSpans ModelsWe will be keep releasing new models. Please keep in touch. We have evaluated the models on the trial set released for Toxic Spanstask at SemEval 2021.ModelsAverage F1en-base0.6734en-large0.6886multilingual-base0.5953multilingual-large0.6013PredictionFollowing code can be used to predict toxic spans in text. Upon executing, it will download the relevant model and return the toxic spans.fromhatespans.app.hate_spans_appimportHateSpansAppapp=HateSpansApp("en-base",use_cuda=False)print(app.predict_hate_spans("You motherfucking cunt",spans=True))
Package: hate-spans
HateSpansWe provide state-of-the-art models to detect toxic spans in text. We have evaluated our models on  Toxic Spanstask at SemEval 2021 (Task 5).InstallationYou first need to install PyTorch. The recommended PyTorch version is 1.6.
Please refer toPyTorch installation pageregarding the specific install command for your platform.When PyTorch has been installed, you can install HateSpans from pip.From pippipinstallhatespansPretrained HateSpans ModelsWe will be keep releasing new models. Please keep in touch.ModelsAverage F1small0.6652PredictionFollowing code can be used to predict toxic spans in text. Upon executing, it will download the relevant model and return the toxic spans.fromhatespans.app.hate_spans_appimportHateSpansAppapp=HateSpansApp("small",use_cuda=False)print(app.predict_hate_spans("You motherfucking cunt",spans=True))
Package: hat-event
For more information see:online documentationgit repositoryRuntime requirementspython >=3.10Installhat-eventis available asPyPI project:$ pip install hat-eventBuildTo 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-eventispydoit. For listing available doit tasks,
use:$ doit listDefault task:$ doitcreates wheel package insidebuilddirectory.Hat Openhat-eventis 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: hateyugemu
HateyugemuA digital remake ofa popular board gamein Japan that integratesLINE Notifyin order to send content to players.UsageStep 1Create the following files before the game begins:A player list containing LINE Notify tokens, as shown intokens.txtA list of topics gathered from the Internet or created on your own, following the format intopics.csvStep 2Install the package and run the module (see the Notes section below for options you can specify)pip install hateyugemupython3 -m hateyugemuThe first time you run the program, it will ask you to update your tokens file and topics file. Provide the path to these file and your game will begin.NotesYou can leave the tokens as empty strings in the tokens file if you don't need to use LINE Notify to receive game content. Instead of making a new tokens list everytime the player changes, you can also use the--newnameoption to create new players (the new playerswill NOT be saved after the game).Also, if you are using LINE Notify to receive game content, you might wish to use the--skipoption to skip through the process where the assigned action of each player will be displayed on the screen in turns.
Package: hat-gateway
For more information see:online documentationgit repositoryRuntime requirementspython >=3.10Installhat-gatewayis available asPyPI project:$ pip install hat-gatewayBuildTo 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-gatewayispydoit. For listing available doit
tasks, use:$ doit listDefault task:$ doitcreates wheel package insidebuilddirectory.Hat Openhat-gatewayis 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: hat-gui
For more information see:online documentationgit repositoryRuntime requirementspython >=3.10Installhat-guiis available asPyPI project:$ pip install hat-guiBuildTo 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-guiispydoit. For listing available doit tasks,
use:$ doit listDefault task:$ doitcreates wheel package insidebuilddirectory.Hat Openhat-guiis 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: hathi
HathiA SQL host scanner and dictionary attack tool. Comes with a script (filter_pass.py) to filter a series of password lists based on password strength.InstallationInstall using PyPI to install the Postgres driverpip install hathiFor the optional MSSQL support, installpip install "hathi[mssql]"For the optional MySQL support, installpip install "hathi[mysql]"Usageusage: hathi [-h] [--username USERNAME [USERNAME ...]] [--range RANGE [RANGE ...]] [--usernames FILE] [--passwords FILE] [--hostname HOSTNAME]
                   [--json] [--mssql] [--postgres] [--mysql] [--multiple]
                   [host ...]

Port scan and dictionary attack PostgreSQL, MSSQL and MySQL servers.

positional arguments:
  host                  host to scan

optional arguments:
  -h, --help            show this help message and exit
  --username USERNAME [USERNAME ...]
                        specific username
  --range RANGE [RANGE ...]
                        CIDR range, e.g. 192.168.1.0/24
  --usernames FILE      Path to plaintext username list file
  --passwords FILE      Path to plaintext password list file
  --hostname HOSTNAME   an @hostname to append to the usernames
  --json                Output in JSON
  --mssql               Force scanning hosts as MSSQL
  --postgres            Force scanning hosts as Postgres
  --mysql               Force scanning hosts as Mysql
  --multiple            Seek multiple username/password pairs on a single host
  --database DATABASE   try a specific database name
  --no-ssl              Disable TLS/SSL connectionsUse a wordlist generator likethis oneorthis oneto create more effective password lists.
Package: hathitrust-api
hathitrust-apiA simple interface for the HathiTrust APIs. The package contains basic classes and associated methods for querying theBibliographic API,Data API, and theHTRC Solr Proxy.The package is compatible with Python 2 and Python 3.InstallationClone and install from this repository:git clone https://github.com/rlmv/hathitrust-api.git
cd hathitrust-api
python setup.py installOr install directly usingpip:pip install hathitrust-apiDataAPIThe Data API retrieves non-google public domain works from the HathiTrust.An OAuthkeysetfrom HathiTrust is required to use the Data API.Example usage:>>> from hathitrust_api import DataAPI
>>> data_api = DataAPI(your_oauth_key, your_oauth_secret)
>>> ocrtext = data_api.getpageocr('nyp.33433082228226', 120)BibAPIThe bibliographic API delivers HathiTrust bibliographic data and MARC records in JSON format.Example:>>> from hathitrust_api import BibAPI
>>> bib_api = BibAPI()
>>> bib_info = bib_api.get_single_record_json('htid', 'dul1.ark:/13960/t00z82c1q')
>>> bib_info.keys()
[u'records', u'items']
>>> bib_info['records']['010944133']['publishDates']
[u'1670']SolrAPIThe HTRC Solr Proxy is a search index over the public domain collection.>>> from hathitrust_api import SolrAPI
>>> solr = SolrAPI()
>>> results = solr.query("new zealand", fields=['title'])
>>> results
{u'responseHeader': {u'status': 0, u'QTime': 19}, u'response': {u'start': 0, u'numFound': 366613, u'docs': [{u'title': [u'The statues of New Zealand ...']}, {u'title': [u'New Zealand.']}, {u'title': [u"Wise's New Zealand index"]}, {u'title': [u'Palaeontological bulletin.']}, {u'title': [u'New Zealand,']}, {u'title': [u'The New Zealand official year-book.']}, {u'title': [u'The New Zealand official year-book.']}, {u'title': [u'The New Zealand official year-book.']}, {u'title': [u'The New Zealand official year-book.']}, {u'title': [u'The New Zealand official year-book.']}]}}Needed:Write test cases.
Package: hathitrust-downloader
HathiTrust DownloaderInstallingPython 3 (OS Agnostic)Check that you have Python 3 installed and available on your shell. The following command should return something likePython 3.8.5.python-VWindows users: Make sure to enable the "Add to PATH" option when installing Python.Now you can install usingpipwith the following command.pipinstallhathitrust-downloaderWhich allows you to interact with the downloader from the command line:hathitrust-downloader--helpWindows ExecutableThere are also Windows executables available. Download thedownloader.zipfromreleasesand extract it. Then open a shell, e.g.cmdorpowershell, to the directory where the ZIP is extracted. The easiest way to do this is by opening the folder in Explorer and right click while holding shift, now select the option "Open PowerShell Window Here".The executable is bundled with Python and all other dependencies, hence you do not need to have anything installed. Now the tool can be used like:.\downloader.exe--helpUsageThe help should give some instructions on how to use the tool:usage:hathitrust-downloader[-h][--nameNAME]idstart_pageend_page

BookdownloaderfromHathitrust

positionalarguments:idTheIDofthebook,e.g'mdp.39015027794331'.start_pageThepagenumberofthefirstpagetobedownloaded.end_pageThelastnumberofthelastpagetobedownloaded(inclusive).

optionalarguments:-h,--helpshowthishelpmessageandexit--nameNAMEThestartofthefilename.Defaultstousingtheid.ThiscanOne example which downloads page 1 until (and including) 10 of the book with idmdp.39015027794331and naming the filesmy-book_page_<page_number>.pdf:hathitrust-downloadermdp.39015027794331110--namemy-bookThe ID of the file can be found as part of the URL when opening a book through your browser.TroubleshootingNo Progess / Progress Bar is StuckMake sure that you can access books on HathiTrust. Try to open a book in your browser to see if everything is working fine. HathiTrust can require you to connect from an American IP. In addition, they limit the amount of pages you can download to 15 every 5 minutes. When you hit that limit you will need to wait, the tool will automatically wait and resume when the timeout is finished.
Package: hathor
HathorHathor is a commandline tool that helps you combobulate vanilla-like Lua source code into
Roblox Lua compatible modules.GoalsThe main goal of hathor is to be able to use vanilla-style imports with Roblox Lua.
This makes it so autocompletion within Lua IDEs works properly with Roblox modules.
The side effect of this is that the build output can be specialized depending on project needs.
To aide with development, hathor also includes a synchronization server that can synchronize your
scripts with Roblox Studio.Hathor is a replacement for two older Rockit tools:Zipline, a synchronization toolTulip, a source transformer toolGetting startedGetting started with hathor is easy. The CLI is installable through pip:pipinstall--userhathoror through pip, but using the git repository as source:pipinstallgit+https://gitlab.com/rockit-tools/hathor.gitInstalling using the git repository should install the latest development (semi-stable) version of hathor.Roblox Studio PluginTo get changes synchronized in to studio, you need to install the complementary plugin. Hathor is
compatible with the older Zipline plugin for Roblox Studio.Link:Zipline Synchronization pluginConceptsCreating a new project can be done through the hathor CLI, however you'll need to know about
some core concepts.Project configuration fileEvery hathor project requires ahathor.project.ymlfile to be present at its root. This file
contains all requisite configuration for a hathor project to function. An example of this can be
found in theexample_projectthat is bundled with the source code.Paths in the project configurationAll paths in the project configuration are:Relative to the project configuration fileUnix style, meaning that the path separator is a forward slash.SourcesHathor can pull sources from multiple source directories. These should be listed under thesourcessection of the project configuration file. The key of each source is the path to the source, while
the key/value pairs for a source are its properties. Sources can be enabled and disabled as required.Build profilesThebuildsection of the project contains build profiles. A build profile specifies how your
hathor project should be built. The configuration directly under thebuildsection is thedefaultbuild profile. However, additional profiles can be specified using theprofilessubsection.BuildersHathor is bundled with 'builders'. These are simply functions that build your project into the
desired result. Currently hathor ships with two builder:modular: Creates a modular build, using the Hathor loadercopy: Creates a 1:1 copy of your sourcesSynchronizationThehathor servecommand spins up a REST api for the synchronization plugin. The server will
detect changes in your defined sources and build your project in memory. Output files from the build
will be synchronized to Roblox Studio.Creating a new projectCreating a new project with hathor is as easy as its gets. All you have to do is:Create a new project directorycdinto your project directoryRunhathor initThehathor initcommand will prompt you with several questions, and will set up a project for you.