Saravanan666/pypi-org huggingface dataset:
Package: hockey-api
Hockey-APIPurposeThe purpose of this package is to scrape data from ice hockey leagues, currently the NHL,
from available APIs and websites. The information that is scraped is both play by play and
shift data, with support for all parts of the seasons (preseason, regular season, all star and playoffs)
for seasons starting from 2010-2011.Getting startedA short introduction to the prerequisites and installation.PrerequisitesThis package is built on Python, particularly Python3. To use this package, the Python version should be
at least 3.7.0.InstallationTo install, simply open a terminal and run either of the following commands:pipinstallhockey_apipython-mpipinstallhockey_apiUsageTo scrape data, three different functions are provided. Each function provides the same output structure,
with a tuple containing play by play data for all the game(s) as well as the shifts.To scrape a list of games, where the input should be a list of game ids:fromhockey_apiimportscrape_list_of_games# Scrape the first three games of the 2021-2022 NHL season.pbp,shifts=scrape_list_of_games(game_id_list=[2021020001,2021020002,2021020003])To scrape a list of games between two dates:fromhockey_apiimportscrape_date_range# Scrape the all the games during the month of October in 2021.pbp,shifts=scrape_date_range(start_date="2021-10-01",end_date="2021-10-31")# Scrape games from a given date.pbp,shifts=scrape_date_range(start_date="2021-10-31")To scrape a specific part of a season:fromhockey_apiimportscrape_season# Scrape all games from the 2021-2022 NHL regular season.pbp,shifts=scrape_season(season=2021,season_type="R")# Scrape all games from the 2021-2022 NHL playoffs.pbp_playoffs,shifts_playoffs=scrape_season(season=2021,season_type="P")Saving dataTo save data to a local file the following command should do:pbp.to_csv("desired/path/pbp.csv",index=False)MiscellaneousAn additional scraper is also available, calledget_player_data(), which
downloads metadata about all players in the NHL database. To use, simply run:fromhockey_apiimportget_player_data# Scrape player dataplayers=get_player_data()ContactTo get in contact with me send me an email atrasmus.safvenberg@gmail.com.CopyrightCopyright (C) 2022-2023 Rasmus SäfvenbergThis file is part of hockey_apihockey_api is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, seehttps://www.gnu.org/licenses/.
Package: hockeyapp
Access your crash log and crash detail data for iOS applications tracked at
hockeyapp.net.CLI Usage./hockeyapp-cliusage: hockeyapp-cli [-h] [-V] [-v] -k API_KEY COMMAND …Hockeyapp API Clientoptional arguments:-h,--helpshow this help message and exit-V,--versionshow program’s version number and exit-v,--verboseturn on debug mode-kAPI_KEY,--api-keyAPI_KEYSupply the API Token from hockeyapp.netcommands:See ‘hockeyapp-cli COMMAND -h’ for more information on a specific command.COMMANDlist-applications   List the applications available at HockeyApp
list-users          List users associated with the specified HockeyApp
list-crashes        List crashes associated with the specified HockeyApp
add-app-user        Add a user to a HockeyApp
detail              Get the detail for a crash ID at HockeyApp
list-versions       List the versions of an app
version-delete      Delete a specified version
version-add         Add a new version of an appExample usageimport hockeyapptoken = ‘Your API Key’
public_identifier = ‘Public identifier value for the app’
crash_id = 1234app = hockeyapp.Application(token)
print app.list()
print app.statistics(public_identifier)
Package: hockeyjockey
hockeyjockeyA menu-driven console-based application for analyzing NHL hockey games.PurposeThis app was created to assist with making hockey pics for a so-called 'confidence pool' (such as thisNHL Pick 'Em Pool), where a pool participant must pick the outcome of several games and rank them in order of how confident they are that the chosen team in each matchup will win.Requirements:Python >= 3.6decorestansicolorsInstallation:pipinstallhockeyjockeyUsagefromhockeyjockeyimportJockey# hockeyjockey will automatically download stats and games from the internetjockey=Jockey()jockey.menu_main.display_menu()# you can choose to load the cached copy of games and stats data from disk# by answering the promptsjockey=Jockey(suppress_prompt=False)jockey.menu_main.display_menu()DocumentationWhen hockeyjockey first loads, you will be given the option to load NHL statistics and games which have been cached to disk. If the local cache does not exist, or you elect not to use cached data, new data will be fetched from the internet.The default is to fetch hockey games for the closest Friday and Saturday.Games MenuLoad Today's Games - Loads the NHL games that are taking place today into memory.Load Upcoming Friday/Saturday - If today is a Friday or Saturday, loads the current Friday/Saturday's games, otherwise loads next weekend's Friday/Saturday games.Load Custom Date Range - Prompts for a start and end date and loads the games between those dates inclusive.Print Games - Echoes the currently loaded games to the console.Teams MenuPrint Teams - Prints a list of the NHL teams in alphabetical order.Stats MenuReload Stats - Fetches a fresh copy of the latest NHL statistics for all teams and stores it in memory. The stats stored in memory are the basis for hockeyjockey's ranking analysis.Rank Games by Single Statistic - Requires that a set of NHL games and statistics have been loaded. This option provides the main purpose for hockeyjockey - ranking a set of NHL games by a single stat which is chosen from the stats provided. For example, if the user of the program chooses 'wins', hockey jockey will output a list of games with the team with the most wins in each matchup highlighted green. The amplitude difference between the team with the greater number of wins and the team with the lesser number of wins is the key on which the games are ranked.Rank Games by All Statistics - The same as the above option, but will rank the games by every statistic in memory.Print Stats - Echoes the currently loaded NHL statistics for all teams to the console.StatisticsSpecial thanks to Drew Hynes for documenting the NHL Stats API,here.LicenseGNU GPLv3
Package: hocmo
Higher-Order Correlation ModelDescription:A Generalized Higher-Order Correlation Model (HOCMO) tool to generate scores modeling the strength of the relationship among triplicate or quadruplet entities using a tensor-based approachPrerequisites:Developmental environment is provided via dockerfile. We also provide a requirements.txt if a local environment is preferred. Package is also available for installation on PyPi.Installation:pip install hocmoContribution:License:MIT License
Copyright (c) 2018 Mollah Lab
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 right 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.Citation:References:C. Boutsidis, E. Gallopoulos: SVD based initialization: A head start for
nonnegative matrix factorization - Pattern Recognition, 2008Gauvin, Laetitia, André Panisson, and Ciro Cattuto. 2014. “Detecting the Community Structure and Activity Patterns of Temporal Networks: A Non-Negative Tensor Factorization Approach.” Edited by Yamir Moreno. PLoS ONE 9 (1): e86028.Bro, Rasmus, and Henk A. L. Kiers. 2003. “A New Efficient Method for Determining the Number of Components in PARAFAC Models.” Journal of Chemometrics 17 (5): 274–86.https://doi.org/10.1002/cem.801.Contact:smollah@wustl.edu,lucharles@wustl.edu
Package: hocron
HocronHocron provides an API over HOCR file format.Installationpip install hocronPrepare Development Environment & Run Testsvirtualenv .venv -p /usr/bin/python3.8  # provide virtualenv path to 3.8 interpretersource .venv/bin/activate  # activate .venv virtual environmentpip install -r requirements.txt # install dependenciespython setup.py develop  # provide a link to dev version of hocronpython test/run.pyUsageExample:from hocron import Hocron, LinePattern

# define a line pattern
line_pattern = LinePattern([
    'EUR',
    re.compile('\d+[\.,]+\d\d$')
])

hocron_inst = Hocron(hocr_as_str)

value = hocron_inst.get_labeled_value(line_pattern)Hocron class receives as argument a string. It expects that string
to in a valid hOCR format.ReferenceshOCR is an open standard of data representation for formatted text obtained from optical character recognition (OCR).hOCR format specificationsArticle on Wikipedia
Package: hocr-spec
hocr-spec-pythonValidation of hOCR close to the specsRationaleInstallationCommand line interfaceAPI exampleRationalehOCRis a flavor of HTML for encoding
the results of Optical Character Recognition (OCR) engines. It is supported by
most OCR engines, such astesseract,ocropus/ocropyandkraken.ThehOCR specificationsis at the same time
very simple (hOCR is just HTML) and hard to implement, due to its terseness and
lack of up-to-date code samples. This project aims to implement the rules
defined by the specs from the ground up to serve as a validation tool and
reference implementation. It is meant to help hOCR implementers and support
tools likehocr-tools.InstallationUse pip:# System-wide:sudopipinstall[--user]hocr-spec# For current user:pipinstall--userhocr-specFrom source:gitclonehttps://github.com/kba/hocr-spec-pythoncdhocr-spec-python# System-wide:sudopythonsetup.pyinstall# For current user:pythonsetup.pyinstall--userCommand line interfaceusage: hocr-spec [-h] [--format {text,bool,ansi,xml}]
                 [--profile {relaxed,standard}]
                 [--implicit_capabilities CAPABILITY]
                 [--skip-check {attributes,classes,metadata,properties}]
                 [--parse-strict] [--silent]
                 sources [sources ...]

positional arguments:
  sources               hOCR file to check or '-' to read from STDIN

optional arguments:
  -h, --help            show this help message and exit
  --format {text,bool,ansi,xml}, -f {text,bool,ansi,xml}
                        Report format
  --profile {relaxed,standard}, -p {relaxed,standard}
                        Validation profile
  --implicit_capabilities CAPABILITY, -C CAPABILITY
                        Enable this capability. Use '*' to enable all
                        capabilities. In addition to the 'ocr*' classes, you
                        can use ['ocrp_dir', 'ocrp_font', 'ocrp_lang',
                        'ocrp_nlp', 'ocrp_poly']
  --skip-check {attributes,classes,metadata,properties}, -X {attributes,classes,metadata,properties}
                        Skip one check
  --parse-strict        Parse HTML with less tolerance for errors
  --silent, -s          Don't produce any output but signal success with exit
                        code.API examplefromhocr_specimportHocrValidatorvalidator=HocrValidator()report=validator.validate('/path/to/sample.hocr')print(report.format('xml'))# <report valid='false'>...</report>
Package: hocr-utils
hocr_utilshocr_utilsis a package to transform, plot and simplify the use of hOCR files.InstallationDependencieshocr-utils requires:Python (>= |3.7|)Optional DependenciesThe functions to plot, transform pdf into hOCR require the following additional dependencies:pytesseractpdf2imageopencv-pythonAdditionaly tesseract language pack need to be install for non-english ocr.Example: install french language package on ubuntu with:apt-getinstalltesseract-ocr-fraUser InstallationThe easiest way to install scikit-learn is usingpip:pipinstall-Uhocr_utilsUsecasesTransform PIL Images to hOCRRequirespytesseractdependency and the requested tesseract language pack.fromhocr_utilsimportutilsfromPILimportImageimage=Image.open('./data/sample.png')hocr=utils.images_to_hocr([image])Transform pdf to hOCRRequirespytesseract,pdf2imagedependencies as well as the requested tesseract language pack.fromhocr_utilsimportutilshocr=utils.pdf_to_hocr('./data/sample.pdf')Transform hOCR to list of dictionaryfromhocr_utilsimportutilshocr_dict=utils.hocr_to_dict(hocr)This can then be transformed into pandas dataFrame usingpd.dataFrame.from_records(hocr_dict)By default there will be one entry per line in the hOCR, However it is possible to group the list by['paragraph', 'line', 'word']usingbyargument.Get a single page from hOCRfromhocr_utilsimportutilshocr_1=utils.get_page(hocr,1)
Package: hodgepodge
hodgepodgeAhodgepodgeof hopefully helpful helper codeFAQWhat can it do?Search for files and directories;Hash files;Pack files into archives;Perform pattern matching;Compress and decompress objects;Parse dates and times;Read STIX 2.0 objects from local files, directories, or TAXII servers;Make the outputs from your tools more human-readable; and✨ More ✨.Supported hash algorithms:MD5SHA-1SHA-256SHA-512Supported archive formats:ZIPSupported compression algorithms:GZIPInstallationTo installhodgepodgeusingpip:$pipinstallhodgepodgeTo installhodgepodgefrom source (requirespoetry):$gitclonegit@github.com:whitfieldsdad/hodgepodge.git
$cdhodgepodge
$makeinstallTo installhodgepodgefrom source usingsetup.py(i.e. if you're not usingpoetry):$gitclonegit@github.com:whitfieldsdad/hodgepodge.git
$cdhodgepodge
$python3setup.pyinstallTestingYou can run the unit tests for this package as follows:$maketestA code coverage report will automatically be written to:htmlcov/index.html.On Linux systems, you can usexdg-opento open this file using the system's default web browser:$xdg-openhtmlcov/index.html
Package: hodgeys-kjv-db
Hodgeys KJV DBA SQLite database of the King James Bible, as compiled by me fromProject Gutenberg; and an accompanying wrapper module.Installationpip install hodgeys-kjv-dbUsage# Import...fromhodgeys_kjv_dbimportKJV# ...instantiate...kjv=KJV()# ...and drill down.books=kjv.fetch_books()forbookinbooks:print(book)chapters=kjv.fetch_chapters(1,1)fork,vinchapters.items():print(k,v)verse=kjv.fetch_passage(1,1,1,1)print(verse)
Package: hodor
For any operation,hodorwill always sayhodor.>>> from hodor import hodor
>>> hodor + 1
hodor
>>> 3 ** hodor
hodor
>>> hodor().foo['bar']
hodorWhat’s more, hodor is a module, and a class.>>> import hodor
>>> hodor
hodor>>> class myclass(hodor):
...     pass
>>> myclass()
hodorHodor is also a metaclass!>>> myclass
hodor>>> type(myclass)
hodorMy favorite: hodor is an instance ofitself.>>> type(hodor)
hodor>>> type(hodor) is hodor
True
Package: hoedown
The Python binding forhoedown, a markdown parsing library.
the original code of themisakalibrary by Frank Smit.InstallationCython is only needed to compile .pyx file.With pip:pip install hoedownOr manually:python setup.py installExampleVery simple example:from hoedown import Markdown, HtmlRenderer

rndr = HtmlRenderer()
md = Markdown(rndr)

print md.render('some text')Or:import hoedown as m
print m.html('some other text')Command Line Tooloutput from Markdown to HTML:hoedownpy MARKDOWNFILE.mdFor Maintainerintall development requirements:pip install -e ".[dev]"build:invoke all
Package: hofu
HOFUA simple, fast and lightweight HOF (higher order functions) library for python.This library allows you to use HOFs in a simple way, comparable to JavaScript its HOF and the Rust iterator.InstallationpipinstallhofuExamplefromhofuimportIteratorIterator(range(10))\.map(lambdax:x**2)\.filter(lambdax:x%2==0andx!=0)\.map(lambdax:"Next even power is "+str(x))\.for_each(print)# +- equivalent to sum(range(10))total=Iterator(range(10)).reduce(lambdax,y:x+y)print("Sum of 1-10:",total)Iterator(range(10))\.rev()\.skip(5)\.take(2)\.map(lambdax:"Next number: "+str(x))\.for_each(print)people=[{"name":"John","age":30},{"name":"Jane","age":25},{"name":"Bob","age":40},{"name":"Alice","age":35},]average_age=Iterator(people).reduce(lambdax,y:x+y["age"],0)/len(people)print("Average age:",average_age)data=Iterator(range(10)).filter(lambdax:x%2==0).collect()print("Even numbers:",list(data))even_formatted=Iterator(range(10)).map(lambdax:f"{x}={'even'ifx%2==0else'odd'}").collect()print("Even/odd:",list(even_formatted))
Package: hoggorm
hoggormhoggorm is a Python package for explorative multivariate statistics in Python. It containsPCA (principal component analysis)PCR (principal component regression)PLSR (partial least squares regression)PLSR1 for single variable responsesPLSR2 for multivariate responsesmatrix correlation coefficients RV, RV2 and SMI.Unlikescikit-learn, which is an excellent python machine learning package focusing on classification and predicition, hoggorm rather aims at understanding and interpretation of the variance in the data. hoggorm also also contains tools for prediction.RequirementsMake sure that Python 3.5 or higher is installed. A convenient way to install Python and many useful packages for scientific computing is to use theAnaconda distribution.numpy >= 1.11.3InstallationInstall hoggorm easily from the command line from thePyPI - the Python Packaging Index.pipinstallhoggormDocumentationDocumentation atRead the DocsJupyter notebooks withexamplesof how to use Hoggorm together with the complementary plotting packagehoggormplot.
Package: hogpylib
HOG_pythonHistogram of Gradients in Python from scratchimportsysfromskimageimportcolor,dataimportmatplotlib.pyplotaspltfromhogpylib.hogimportHistogramOfGradientsdefmain(args=None):fromskimage.featureimporthogPIXELS_PER_CELL=(8,8)CELLS_PER_BLOCK=(2,2)NUMBER_OF_BINS=ORIENTATIONS=9# NUMBER_OF_BINSVISUALISE=Trueorig_img=color.rgb2gray(data.astronaut())# orig_img = color.rgb2gray(skimage.io.imread("../data/people.jpg"))custom_hog=HistogramOfGradients(pixels_per_cell=PIXELS_PER_CELL,cells_per_block=CELLS_PER_BLOCK,num_of_bins=NUMBER_OF_BINS,visualise=VISUALISE)hog_features,hog_image=custom_hog.compute_features(orig_img)hog_features_check,hog_image_scikit=hog(orig_img,orientations=ORIENTATIONS,pixels_per_cell=PIXELS_PER_CELL,cells_per_block=CELLS_PER_BLOCK,block_norm='L2',visualize=VISUALISE)fig,(ax1,ax2,ax3)=plt.subplots(1,3,figsize=(12,4))ax1.axis('off')ax2.axis('off')ax3.axis('off')ax1.imshow(orig_img,cmap=plt.get_cmap('gray'))ax1.set_title('Input Image')ax2.imshow(hog_image,cmap=plt.get_cmap('gray'))ax2.set_title('Custom HOG')ax3.imshow(hog_image_scikit,cmap=plt.get_cmap('gray'))ax3.set_title('Scikit HOG')plt.show()if__name__=="__main__":sys.exit(main())ResultReferences[1]http://lear.inrialpes.fr/people/triggs/pubs/Dalal-cvpr05.pdf[2]HOG Image rendering[3]HOG bin distribution
Package: hoist-http
HoistDeveloper-oriented client-server communicationDocumentationPyPIQuick Exampleimporthoistserver=hoist.start("test")@server.receive("hello")asyncdefhello(message:hoist.Message)->None:print("server got hello")awaitmessage.reply("hi")importhoist@hoist.connect_with("test")asyncdefmain(server:hoist.Connection):@server.receive("hi")asyncdefhello():print("client got hi")awaitserver.message("hello")FeaturesFully type safeAsync readyModern APIInstallationLinux/macOSpython3 -m pip install -U hoist-httpWindowspy -3 -m pip install -U hoist-http
Package: hoist-prop-types
hoist-prop-types=========A codemod that will hoist prop types and default props to the top of the file.Currently only works with files with one component.### MotivationThe main purpose is to bring the more important parts of your components, `propTypes`,to the top of the file.  PropTypes help explains what your component does, almost asmuch as the render method.  Keeping them close to the top of your file helps minimizescrolling and keeps your code that much more consistent.### Input:```javascriptimport * as React from 'react';import PropTypes from 'prop-types';class MyComponent extends React.Component {render() { return null; }}MyComponent.propTypes = {name: PropTypes.string,};MyComponent.defaultProps = {name: 'Jim'};```### Output:```javascriptimport * as React from 'react';import PropTypes from 'prop-types';const PROPS = {name: PropTypes.string,};const DEFAULT_PROPS = {name: 'Jim'};class MyComponent extends React.Component {render() { return null; }}MyComponent.propTypes = PROPS;MyComponent.defaultProps = DEFAULT_PROPS;````hoist-prop-types` will work with `static propTypes ={...}` that are delared in the class as well.Install-----------```pip install hoist-prop-types```Usage----------```hoist-prop-types ./my/dir/```This will read all `.js` and `.jsx` files and try to hoist the prop types to the top.
Package: hojo
Hojo - An Opinionated ORM on Top of SQL AlchemyHojo is a library that simplifies the usage of SQL Alchemy, providing an interface that is familiar to Django users. While it is not an exact replication of the Django ORM API, it strives to be reminiscent of it, making it easier for Django developers to work with SQL Alchemy.Please note that this library is currently in Alpha version and is not yet ready for production use.InstallationYou can install Hojo using pip:pipinstallhojoBasic UsageHere's a basic example of how to use Hojo:# file: models.pyfromhojoimportautomap,model@modelclassSoldier:name:strweapon:strlevel:int# Create the mappers automaticallyautomap()# file: query.py# Insert the hero into the 'soldiers' tablehero=Soldier.objects.create(name='Cloud Strife',weapon='Buster Sword',level=50)# Insert the antagonist into the 'soldiers' tableantagonist=Soldier.objects.create(name='Sephiroth',weapon='Masamune',level=99)# Retrieve a Soldier with the name 'Cloud' from the 'soldiers' tablesoldier=Soldier.objects.filter(name='Cloud Strife')# Retrieve a Soldier filtering by the weaponsoldier=Soldier.objects.filter(weapon__startswith='Buster')# Retrieve a list of Soldiers filtering by level greater than 10soldiers=Soldier.objects.filter(level__gt=10)Schema usageHojo provides a BaseSchema class, that you can use with attrs @define and get some abstractions over it:fromhojoimportschemafromenumimportStrEnumclassMateriaType(StrEnum):MAGIC='magic'SUPPORT='support'SUMMON='summon'COMMAND='command'@schemaclassMateria:name:strmateria_type:MateriaTypeifrit=Materia.load({'name':'Ifrit','materia_type':'summon'})print(ifrit)# => Materia(name='Ifrit', materia_type=<MateriaType.SUMMON: 'summon'>)print(ifrit.dump())# => {'name': 'Ifrit', 'materia_type': 'summon'}print(ifrit.dump(only=['name']))# => {'name': 'Ifrit'}print(ifrit.dump(exclude=['name']))# => {'materia_type': 'summon'}
Package: hokohoko
HokohokoHokohoko means "to trade, barter, exchange, sell, buy, export, alternate" in
Te Reo Māori.[1]Hokohoko aims to provide a consistent benchmark for academics and others who
wish to test the efficacy of their algorithms on FOREX speculation.
It provides 7 years of per-minute market data across 50 currency pairs, and
various assessors by which researchers may verify the accuracy of their algorithm.The documentation can be found athokohoko.readthedocs.org.The source can be found atgithub.com/nc-bradley/Hokohoko.[1] The name was determined in conjunction with Associate Professor
Te Taka Keegan, Associate Dean Māori of Wananga Putaiao, Te Wananga o Waikato
(Division of Health, Engineering, Computing and Science, University of Waikato).Copyright 2020 Neil Bradley