Saravanan666/pypi-org huggingface dataset:
Package: handjob
Guide to create label fileChoose source image folderChoose folder to store label fileTick the textbox to auto replace all absolute path or relative path between source folder and label folder.Note: the label file name will be stored as source image folder.Important shortcuts<Arrow-Left>to go to previous image. It will go to last image if the cursor is at first image.<Arrow-Left>to go to next image. It will go to first image if the cursor is at last image<Enter>to save ground true text label<ESC>to exit the programBugs report and contributionIf you find any bugs or would like to improve the software, please create a pull request to the git repository.
Contact me via:taquy.se@gmail.com
Package: handjoints-osc
handjoints-oscReal-time hand tracking that sends joint coordinates over OSC. Written in Python, using GoogleMediaPipe.InstallationInstalling viapipxis recommended, because it installs in an isolated environment.pipx install handjoints-oscIt's of course also possible to install via pip:pip install handjoints-oscUsage$ handjoints-osc --helpusage: handjoints-osc [-h] [--host HOST] [--confidence CONFIDENCE] portpositional arguments:
port                  send OSC to this portoptions:
-h, --help            show this help message and exit
--host HOST           send OSC to this host (default: localhost)
--confidence CONFIDENCE, -c CONFIDENCE
minimum detection confidence threshold (default: 0.5)
--device DEVICE, -d DEVICE
video device index or path (default: 0, i.e. the default video device)For example, to start the program and send joints coordinates to SuperCollider, which typically listens for OSC on port 57120:handjoints-osc 57120When hands are detected, SuperCollider will start receiving OSC messages with path "/handjoints-osc".
To know which value corresponds to which joint, pressing "n" will display joint numbers on the tracking window.Example using an alternative video device:handjoints-osc -d /dev/video2 57120OSC formatpath:/handjoints i *i* ...f[0] number of detected hands[1:numHands] handedness for each detected hand[numHands+1:..] x and y coordinates for each joint for each handThe program detects maximum 2 hands, each hand has 21 joints, and each joint 2 coordinates.Arguments are all in a single list, starting with the number of hands, then handedness for each hand, and following with x and y coordinates for all joints of one hand, and then the joint of each other hand.[nHands, ...handedness, ...coordsHand0, ...cordsHand1]
coords: [j0x, j0y, j1x, j1y, j2x, j2y, ...]If only one hand is detected, numHands + handedness + coords (21 * 2) gives 44 values.
If two hands are detected, there are two handedness values, so 1 + 2 + 42 + 42 = 87 values.DevelopmentRecommended: make a virtual environmentpython -m venv .venv
source .venv/bin/activateInstall requirements:pip install -r requirements
Package: handle-exception
HandleException - Python Wrapper Class to Catch ExceptionsHandleException is a Python wrapper class that helps to catch exceptions and raise them to an upper level. With HandleException, you can easily wrap any function that you want to monitor for exceptions and handle them as desired.Installationpip install handle-exceptionUsageTo use HandleException, simply decorate the function that you want to wrap with the HandleException decorator. For example:from handle_exception import HandleException

@HandleException
def my_function():
    raise ValueError("Test exception")In this example, if the function my_function raises an exception, HandleException will catch it and raise it to the upper level. This way, you can handle exceptions in a centralized way, instead of having to write try-except blocks in multiple places.Custom ExceptionsHandleException also allows you to catch specific custom exceptions by passing a list of exception classes as an argument to the ExceptionRaiser decorator. For example:from handle_exception import ExceptionRaiser

class CustomException(Exception):
    pass

@ExceptionRaiser(exceptions=[CustomException])
def my_function():
    raise CustomException("This is a custom exception.")In this example, the function my_function raises a custom exception, CustomException, which will be caught by HandleException.Examplefrom handle_exception import HandleException

@HandleException
def divide(a, b):
    return a / b

result = divide(10, 0)
print(result)In this example, the divide function is decorated with the HandleException decorator. This means that any exceptions raised in the divide function will be caught and handled by the HandleException class. The code is much cleaner and easier to understand, as it doesn't contain a try-except block or have to worry about handling exceptions manually.ContributingWe welcome contributions to HandleException! If you'd like to contribute, please follow these steps:Fork the repository.Create a new branch for your changes.Make your changes and write tests for them.Submit a pull request.LicenseHandleException is released under the MIT License.We welcome contributions to this library. If you have an idea for a new feature or have found a bug, please open an issue on Github.Buy me a Coffee
Package: handle-missing-csv
Handle-Missing-ValuesCreate and save .csv file with replaced categorical and non-categorical missing valuesBriefReplaces missing non-categorical values with mean of respective columns and uses KNN for missing categorical valuesUsageUse below commands in python terminal:>>>from missing import missing>>>t = missing.missing(input_filename,output_filename,methods)methods can be "replace" or "remove"e.g . t = missing.missing("mydata.csv","out.csv","replace")
Package: handlerConsoleCRUD
Librería que te permite hacer un CRUD con los campos que quierasPor Carlos Soto De Dios💡Pre-requisitosPython 3InstalaciónPara instalar la libreria necesitas introducir en la consolapip install handlerConsoleCRUDEsta librería que te permite crear un programa en consola que te permite hacer un CRUD y los campos son a eleccion tuya.Tienes la libertad de alterar el nombre de las opciones del Menu del CRUD para eso debes crear una funcion y pasarla como parametro.Lo que necesitasNecesitas un archivo JSON llamado > config.json < en tu directorio con la siguiente estructura{
  "campos": {
    "cantidad": 1
  },
  "messages": {
    "welcomeMessage": "Welcome to the application!",
    "goodbyeMessage": "Thank you for using the application",
    "saveMessage": "Saved!!",
    "editMessage": "Edited Data!!",
    "errorMessage": "Oops there was an error",
    "deleteMessage": "Bye bye Charlie"
  }
}Aqui puedes modificarCantidadque se refiere a la cantidad de campos que quieres que tenga tu CRUD.Messageslo puedes modificar para que presente un mensaje por cada operación realizada.- Estas son las opciones predeterminadas en el MENU a la que puedes Sobre escribiropciones = ["1. Crear un nuevo registro", "2. Consultar todos los registros", "3. Actualizar un registro existente", "4. Eliminar un registro existente", "5. Salir"]📚 Para implementarlo puedes Crear una funcion que te permita cambiar dichos valores y pasarlo como parametrosComo ejemplo le estoy pasando una funcionchange_option_functionOJO esta funcion la debes crear a como entiendas para modificar las opcionesfrom handlerConsoleCRUD import screenHandler

screenHandler(change_option_function)Tienes la opcion de poner el Menu de poner los valores todo en Mayusculas o todo en Minusculas solamente pasandole un parametro.from handler import screenHandler

# En este caso le estamos pasando el parametro que los valores del Menu sean Mayusculas
screenHandler("upper",change_option_function)
Package: handlers-lauto
HandlersRepositório para tratamento de logs de forma simplificada, o objetivo é permitir criar um dispositivo de log baseado em um arquivo de configuração .INI.Modelo Padrão de Configuração[Handlers]
aws_elastic=elastic
inovacao=rocket
arquivo=rotating
tela=stream

[aws_elastic]
host=endpoint_elastic
access_key=key_elastic
secret_key=skey_elastic
region=region_elastic
index=pytest
level=info

[inovacao]
host=endp_rocket
login=login_rocket
password=pass_rocket
channel=#channel
alias=Pytest BOT
topic=Pytest BOT
method=normal
level=error

[arquivo]
file=log.log
max=10000
level=debug

[tela]
level=debugA tag handlers permite que sejam declarados modelos de handlers sendo a key o nome dado ao log e o valor o tipo de handler. Isso feito, deve existir uma tag para cada handler criado com as configurações necessárias para cada um. Sendo o level necessário sempreDefinição de ObjetoslogO código de log tem por objetivo converter o arquivo de configuração de log em logs padrão. O objetivo é abstrair os logs gerados.Receberá o nome do log ini, log name e o log levelCriará lista de objetos padrão de log.Função log:Recebe um dict e passa para os logs configuradosTodos os objetos são criados para evitar a perda de logs, recebe o dict e salva em banco criando uma lista de logs a ser enviado para cada handler.es_handlerCódigo tem o objetivo de criar um log para o ElasticSearch (Focado na AWS) através de um dict que é passado como dump(Usando json.dump()) para o handlerPara criar o log é necessáriohost -> Endpoint do elasticsearchaccess_key -> Para o endpoint na AWSsecret_key -> Para o endpoint na AWSregion -> Região onde está hosteado o serviço na AWSindex -> Index para salvar no elastic (Ao declarar o handler o indice é criado caso não exista)level -> É o log level do handlerrocket_handlerCódigo tem o objetivo de criar um log para o RocketChat através de um dict padrão que é passado como dump(Usando json.dump()) para o handlerDict Padrãotopic -> Tópico da mensagem, ficará em negrito na representação do rocket (String)subtopic -> Subtópico da mensagem, ficará topicalizado na representação do rocket (Dict)"- {SUBTOPIC_KEY} : {SUBTOPIC_VALUE}"msg -> Mensagem ficará circulada por um elemento de código na representação do rocket (Dict)"- {MESSAGE_VALUE}"Para criar o log é necessáriohost -> Host do RocketChatlogin -> Login do usuáriopassword -> Senha do usuáriochannel -> Canal onde a conversa será enviadaalias -> O nome que aparecerá na tela quando enviar a mensagemtopic -> Para Livechatmethod -> Normal ou Livechatlevel -> É o log level do handlerrotating_file_handlerCódigo tem o objetivo de criar um log em uma rotating file handlerDict Padrãomsg -> Mensagem a ser passadaPara criar o log é necessáriofile -> Nome do arquivomax -> maxBytes do arquivolevel -> É o log level do handlerstream_handlerCódigo tem o objetivo de criar um log em streamDict Padrãomsg -> Mensagem a ser passadaPara criar o log é necessáriolevel -> É o log level do handler
Package: handlr
Handlr | Without the 'e'Created byJoe Tilsed| Created 11/10/2022 | Last Updated: 11/10/2022 | Current Version: 0.1.0Handlr is a Python handler to logging services, i.e. Logstash as part of the ELK stack.How to installSimply run:pip install handlr.How to useAn example would be to use this package for a logstash as part of the ELK stack.importloggingfromhandlrimportHandlerLOGGER_ENDPOINT='localhost'LOGGER_PORT=5040LOG_LEVEL='DEBUG'LOG_LABEL='VM_123ABC'LOG_TAGS=['virtual-machine','workers','EMEA']log=logging.getLogger(__name__)handler=Handler(LOGGER_ENDPOINT,LOGGER_PORT,LOG_LABEL,LOG_TAGS)log.addHandler(handler)# If you don't want the logs being shown to the console (aka only shown on ELK stack) then remove the below line.log.addHandler(logging.StreamHandler())log.setLevel(LOG_LEVEL)log.info(f"Setup log, log level{LOG_LEVEL}. Sending logs to{LOGGER_ENDPOINT}:{LOGGER_PORT}.")Enjoy!# That's all folks...
Package: handmademl
handmadeMLThis package is created to merge to sub-projects : handmade-neural-network and handmade-machine-learning
The components and logics from both projects should convergeObjectiveThis is a personal challenge : re-code all the components of machine learning and deep learning algosThe code is inspired by the logic of sklaern and keras, but is much simpler:common terminology and workflow (model instanciation, model.fit, model.predict etc..) but simplified (no .compile method for instance)less features implementedless checks, exceptions, tricky cases allowed, etc.probably much less computionaly efficientImplemented so far:linear classifier :loss options : hinge, squared_hinge (for SVC) and logit (for Logistic regression)penalty options : l1,l2kernel : only lineardecision treesdecion tree classifierneuralnetsdense networks only5 activation functions:relu, tanh (mostly for hidden layers)linear (for regression output)sigmoid, softmax (for classifiction outputs)4 loss functions:mse, mae (for regression tasks)binary crossentropy (for binary classification tasks)multiclass crossentropy (for multiclassification)gradient descent with back-propagationsimple GrandientDescent optimizer onlystochastic or mini-batchadjustable learning ratewithout momentummetric computation at the end of each batch/epoch for monitoring during trainingonly loss functionsweights and bias initializers : zeros, ones and glorot_uniform onlya pedagogical notebook in the notebooks folder contains a guided implementation, step by step, of a simple neural network, equivalent to the Tensorflow PlaygroungTo be coded later :linear classifier :kernel trick with simple kernels : polynomials, rbfcreate a pedagogical tutorial notebook about linear SVCdecision trees :regression treesensemble methods and other optmization methods :baggingboostingcross validationgrid searchrandomized searchneuralnets :regularization:l1, l2, elasticneton kernels (weights)early stopping on validation datatraining history trackingmomentum for SGD optimizerother metrics (accuracy, roc_auc, etc.)other optimizersadamTo be coded much later :linear models :more for svm :Linear SV regressorsmore hinge optionsmore kernelsregressors with ridge/lasso/elasticnetneuralnets :dropoutregularization on biais and activity of the neuronsother optimizersrmspropusupervised models :k-meanpcaTo be probably never coded :neuralnets :paddingCNN specifics:conv2D layerskernelsmax pooling layersflatting layerRNN specifics:simple RNN layermasking layerLSTM layer
Package: handoff
handoff core👉 For a fully managed service, checkouthandoff.cloud websiteWhat is it?handoff (repository)
is a single command that let you quickly orchestrate the data pipeline on
a serverless platform such as AWS Fargate.Deploying on a serverless platform saves you from the need for managing servers
and paying for idling virtual machines. The serverless configuration could be
very complicated, so handoff takes care of it under the hood so you can focus on
the pipeline logic.Features and benefits:Container orchestration (AWS Elastic Continer Service)Extended serverless task execution (AWS Fargate, vs. AWS Lambda's 15min limit)CRON Scheduling (AWS EventBridge)Configuration and secret management (AWS Systems Manager Parameter Store)Simple switch between production and devlopment stagesDocker image management (AWS Elastic Container Registry)Artifacts management (AWS Simple Cloud Storage)Log management (AWS CloudWatch)Shared resource management (Virtual Private Cloud, Security Group)No need to pay and maintain a dedicated virtual instances!Note: With the unified handoff command, we are planning to support multi-cloud
deployment experience (Azure and Google Cloud Platform).Get started easilyCheck outthe super quick exampleandtutorial.Open Source handoff Recipes!We will upload more and morerecipesthat you can use and learn from!About this projectThis project is developed by
ANELEN and friends. Please check out the ANELEN'sopen innovation philosophy and other projectsCopyright © 2020~ Anelen Co., LLC
Package: handout
Python HandoutTurn Python scripts into handouts with Markdown comments and inline figures. An
alternative to Jupyter notebooks without hidden state that supports any text
editor.CodeHandoutGetting startedYou use Python Handout as a library inside a normal Python program:Install viapip3 install -U handout.Run your script viapython3 script.py. (You can start with theexample.pyfrom the repository.)Openoutput/index.htmlin your browser to view the result.Iterate and refresh your browser.FeaturesCreate the handout viadoc = handout.Handout(outdir)to access these features:FeatureExampleAddMarkdown textas triple-quote comments."""Markdown text"""Add text viaprint()syntax.doc.add_text('text:', variable)Add image from array or url.doc.add_image(image, 'png', width=1)Add video from array or url.doc.add_video(video, 'gif', fps=30, width=1)Add matplotlib figure.doc.add_figure(fig, width=1)Add custom HTML.doc.add_html(string)Insert added items and save to<outdir>/index.html.doc.show()QuestionsFeel free to create an issue on Github.
Package: handprofiler
Hand profilerInstall$pipinstallhandprofilerExample of usefromtimeimportsleepfromrandomimportrandomimporthandprofilerasprofiler@profiler.track("foo")deffoo():for_inrange(2):token=profiler.start("in foo")sleep(random())profiler.stop(token)@profiler.track("bar")defbar():for_inrange(3):sleep(0.3+random()*0.001)defzoo():for_inrange(4):token=profiler.start("in zoo")sleep(random()*3)profiler.stop(token)bar()zoo()foo()foo()profiler.printstats()profiler.clear()total=0:00:01.866119 avg=0:00:00.466529±0:00:00.340207 runs=4                    in foo
total=0:00:01.579377 avg=0:00:00.394844±0:00:00.310193 runs=4                    in zoo
total=0:00:00.902268 avg=0:00:00.902268±0:00:00 runs=1                           bar
total=0:00:00.867672 avg=0:00:00.433836±0:00:00.332681 runs=2                    foo
Package: handright
HandrightA lightweight Python library for simulating Chinese handwritingTutorial|Release Notes|ContributingVisionReveal the nature of Chinese handwriting and use it to implement beautiful, simple and easy-to-use interfaces.Algorithm首先，在水平位置、竖直位置和字体大小三个自由度上，对每个字的整体做随机扰动。随后，在水平位置、竖直位置和旋转角度三个自由度上，对每个字的每个笔画做随机扰动。Installationpip install handrightQuick Start# coding: utf-8fromPILimportImage,ImageFontfromhandrightimportTemplate,handwritetext="我能吞下玻璃而不伤身体。"template=Template(background=Image.new(mode="1",size=(1024,2048),color=1),font=ImageFont.truetype("path/to/my/font.ttf",size=100),)images=handwrite(text,template)foriminimages:assertisinstance(im,Image.Image)im.show()更多信息请参阅Tutorial。Join Us扫码或点击链接加入Handright社区，关于Handright的使用问题请优先在社区中咨询：
Package: handrightbeta
HandrightA lightweight Python library for simulating Chinese handwritingTutorial|Release Notes|ContributingVisionReveal the nature of Chinese handwriting and use it to implement beautiful, simple and easy-to-use interfaces.Algorithm首先，在水平位置、竖直位置和字体大小三个自由度上，对每个字的整体做随机扰动。随后，在水平位置、竖直位置和旋转角度三个自由度上，对每个字的每个笔画做随机扰动。Installationpip install handrightQuick Start# coding: utf-8fromPILimportImage,ImageFontfromhandrightimportTemplate,handwritetext="我能吞下玻璃而不伤身体。"template=Template(background=Image.new(mode="1",size=(1024,2048),color=1),font=ImageFont.truetype("path/to/my/font.ttf",size=100),)images=handwrite(text,template)foriminimages:assertisinstance(im,Image.Image)im.show()更多信息请参阅Tutorial。Join Us扫码或点击链接加入Handright社区，关于Handright的使用问题请优先在社区中咨询：
Package: hands_chopping
## Hands-Chopping 剁手党作为剁手党，必须得有个方便的工具来愉快的剁手~### Relypython 3.5+[click](http://click.pocoo.org/6)[prettytable](https://pypi.python.org/pypi/PrettyTable)[bs4](https://pypi.python.org/pypi/beautifulsoup4)[selenium](www.seleniumhq.org/)### Install**通过pip3**```bash$ sudo pip3 install hands_chopping```**或者本地安装**```bash$ git clone https://github.com/ecmadao/Hands-Chopping$ cd Hands-Chopping-master$ sudo python3 setup.py install```### Usage```bash$ goods# example$ goods —site=jd # 仅搜索京东$ goods —site=tb # 仅搜索淘宝```### Help```pythonUsage:$ goods [--site= all | jd | tb]Options:--site: 要搜索的网站，jd-京东，tb-淘宝，默认全部Examples:$ goods --site=jd$ goods```### Notes- 目前支持淘宝/京东的搜索- 输入goods会提示输入关键字，多个关键字之间使用空格分隔- 搜索完成后可进入下一步操作，根据提示，输入商品编号。多个编号间使用`,`链接，则可打开浏览器窗口进入到商品详情页### TODO- [x] ~~测试得加上，目前CI一直爆。但仅仅因为没有测试，实际没有影响~~- [ ] 商品排序(按照金额等)- [ ] 现阶段只抓取了第一页的商品。之后考虑抓取多页- [ ] more unittest- [ ] 容错- [ ] 没有数据- [ ] 数据结构有变- [ ] 更多配置- [ ] 爬取速度- [ ] 爬取页数
Package: handsetdetection
HandsetDetection Python API kit===============================:Author: Troy Farrell <troy@entheossoft.com>:Copyright: 2009, 2013 Teleport Corp Pty Ltd.:License: see the file LICENSEThis is a Python module exposing the Handset Detection API version 2.0.  If youaren't sure what that means, please visit http://handsetdetection.com/ and thenread this document.API---The API for handsetdetection.com is quite simple.  There are four availablemethods: detect, model, track, and vendor.detect(data, options)Get device information and capabilities given sufficient idenifyinginformation, such as a user-agent or x-wap-profile.data - a dictionary containing a User-Agent, IP address, x-wap-profile,and any other information that may be useful in identifying thehandsetoptions - a string or list of options to be returned from your query,e.g., "geoip,product_info,display" or ["geoip","product_info"], etc.model(vendor)Get a list of models for a given vendor.track(data)Track a series of requests from a user.  Tracking requests allows you toget better statistics from handsetdetection.com.data - a dictionary containing a User-Agent, IP address, x-wap-profile,and any other information that may be useful in identifying thehandsetvendor()Get a list of handset vendors.You should also know about two methods of this API interface:set_v2_apikey(apikey)Set a new API key.  This is only necessary if you wish you use a new APIkey or have modified this package in a significant way.set_credentials(username, secret)Your username is the e-mail address you used when you signed up athandsetdetection.com.The secret is the secret shown in your profile.  It's your API version2.0 secret - not your API version 1.0 APIKey.For convenience, these methods are exposed as functions on the handsetdetectionpackage.  Should you desire additional flexibility, use the methods on thehandsetdetection.HandsetDetection class.Examples--------There are four examples describing the module's use in the examples directory::detect.pyDetect a mobile device and display the click-to-call and send-sms stringsfor the device.detect_and_redirect.pyDetect a mobile device and redirect it to a new URL.model.pyFor a given mobile device vendor, display known models.vendor.pyDisplay known mobile device vendors.Developing This Package-----------------------The following tools may be helpful to anyone furthering the development of this Python package::* docutils* Nose (nosetests)* pylint* setuptools
Package: handsontablesjs
version number: 0.0.1
author: David FullmerOverviewIntegrate handsontables with pandas for jupyter with two way bindings.Installation / UsageTo install use pip:$ pip install handsontablesjsOr clone the repo:$ git clonehttps://github.com/techmuch/jupyter-handsontables.git$ python setup.py installContributingTBDExampleimport numpy as np
import pandas as pd
from handsontablesjs import *data = np.random.randint(size=(3, 5), low=100, high=900)
df = pd.DataFrame(data)ht = HandsonTable(value=df)Simply use ht to view the handsontable or ht.value to view the pandas dataframe
Package: handwrite
Handwrite - Type in your Handwriting!Ever had those long-winded assignments, that the teacher always wants handwritten?
Is your written work messy, cos you think faster than you can write?
Now, you can finish them with the ease of typing in your own font!Handwrite makes typing written assignments efficient, convenient and authentic.Handwrite generates a custom font based on your handwriting sample, which can easily be used in text editors and word processors like Microsoft Word & Libre Office Word!Handwrite is also helpful for those with dysgraphia.You can get started with Handwritehere.SampleYou just need to fill up a form:Here's the end result!Credits and ReferencePotracealgorithm and package has been immensely helpful.Fontforgefor packaging and adjusting font parameters.Sacha Chua'sprojectproved to be a great reference for fontforge python.All credit for svgtottf converter goes to thisprojectbypteromys. We made a quite a lot of modifications of our own, but the base script idea was derived from here.