Saravanan666/pypi-org huggingface dataset:
Package: happymongo-py3
Python module for making it easy and consistent to connect to MongoDB
via PyMongo either in Flask or in a non-flask applicationUsageconfig.py as referenced belowMONGO_HOST = 'localhost'
MONGO_PORT = '27017'
MONGO_USERNAME = 'user'
MONGO_PASSWORD = 'password'Flaskfrom flask import Flask
from happymongo import HapPyMongo

# Our apps config.py
import config

app = Flask(__name__)
app.config.from_object(config)
mongo, db = HapPyMongo(app)Python from importfrom happymongo import HapPyMongo

# Our apps config.py
import config
mongo, db = HapPyMongo(config)Python from dictfrom happymongo import HapPyMongo

config = {
    'MONGO_HOST': 'localhost'
}

mongo, db = HapPyMongo(config)Config directivesDirectiveDescriptionMONGO_URIAMongoDB URIwhich is used in preference of the other configuration variables.MONGO_HOSTThe host name or IP address of your MongoDB server. Default: “localhost”.MONGO_PORTThe port number of your MongoDB server. Default: 27017.MONGO_DATABASEThe database name to make available as the db attribute. Default: app.name for Flask or the filename of the including file without the .py extensionMONGO_USERNAMEThe user name for authentication. Default: NoneMONGO_PASSWORDThe password for authentication. Default: NoneMONGO_KWARGSA dictionary of keyword arguments to send topymongo.MongoClient
Package: happyname
PyPi:https://pypi.org/project/happyname/สวัสดีจ้าาาา แพ็คนี้คือแพ็คเกจที่อธิบายข้อมูลเกี่ยวกับบุคคลวิธีติดตั้งเปิด CMD / Terminalpipinstallhappynameวิธีใช้งานแพ็คเพจนี้เปิด IDLE ขึ้นมาแล้วพิมพ์…fromhappynameimportNameAIuncle=NameAI()uncle.show_name()uncle.show_youtube()uncle.about()uncle.show_art()
Package: happynet
Happy Net Box - PythonA command line tool for interacting withHappy Net Boxbased on
the node modeulehappynet.Install$ pip install happynetSubscribe to usersCreate a file called ~/.happynetboxAdd a list of @happynetbox handles you want to followRun happynet from your terminalGet updatesIn your terminal app, run:$ happynetYou will see the latest post from each person in your .happynetbox file!LinksPyPi ProjectGithubContributingHelp is greatly appreciated. First check if there are any issues open that relate to what you want
to help with. Also feel free to make a pull request with changes / fixes you make.LicenseMIT License
Package: happy-python
happy-pythonHappy-Python是一个简单易用的Python库，让编程轻松愉快安装开发依赖pip install poetry pytest单元测试运行单元测试：poetry run pytest安装happy-pythonPip安装pip install happy-python本地安装rm-rfdist/
poetrybuild-fwheel
pipinstall-U--userdist/happy_python-*-py3-none-any.whl
Package: happy-repo
happy_repoThis is a test range package. It’s purpose is to test various tools,
libs, coding styles and techniques and development processes.Free software: MIT licenseDocumentation:https://happy-repo.readthedocs.io.FeaturesWorksCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-10-16)First release on PyPI.
Package: happyserial
running testscd src_pythonpytestto run all tests, including functionalpytest -m "not functional"to run only unitestsrun from sourcecd src_pythonpip install -r requirements.txtcd srcpython -m happyserialbuildpip install --upgrade pip setuptools buildcd src_pythonpython -m buildinstall locallycd src_pythonpip install .uninstall locallypip uninstall happyserialupload to PyPIcreate an API token after logging in athttps://pypi.org/(it's a long string starting withpypi-)pip install --upgrade twinecd src_pythontwine upload dist/*username:__token__password: the entire token above, including thepypi-prefixupdate appears athttps://pypi.org/project/happyserial/
Package: happy-tools
happyLibrary with tools that make any everyday Python user simply happy.DocumentationInstallationpip install happy_tools=1.0.0To keep the library installation lightweight, additional dependencies for file IO are not installed by default.LicenseThe software is provided under theMIT open license.CitationIf you use this software for your research, please cite it as:Kukačka, Jan (2021). Happy (v1.0.0) [Computer software]. https://github.com/jankukacka/happy
Package: happytransformer
Happy TransformerDocumentation and news:happytransformer.comJoin our Discord server:Happy Transformer makes it easy to fine-tune NLP Transformer models and use them for inference.3.0.0Deepspeed for trainingApple's MPS for training and inferenceWandB to track training runsData supplied for training is automatically split into portions for training and evaluatingPush models directly to Hugging Face's Model HubRead about the full 3.0.0 update including breaking changeshere.TasksTasksInferenceTrainingText Generation✔✔Text Classification✔✔Word Prediction✔✔Question Answering✔✔Text-to-Text✔✔Next Sentence Prediction✔Token Classification✔Quick StartpipinstallhappytransformerfromhappytransformerimportHappyWordPrediction#--------------------------------------#happy_wp=HappyWordPrediction()# default uses distilbert-base-uncasedresult=happy_wp.predict_mask("I think therefore I [MASK]")print(result)# [WordPredictionResult(token='am', score=0.10172799974679947)]print(result[0].token)# amMaintainersEric FillionLead MaintainerTed BrownlowMaintainerTutorialsText generation with training (GPT-Neo)Text classification (training)Text classification (hate speech detection)Text classification (sentiment analysis)Word prediction with training (DistilBERT, RoBERTa)Top T5 ModelsGrammar CorrectionFine-tune a Grammar Correction Model
Package: happywhale
Simple CLI for HappywhaleHappywhale is a global citizen science projectdedicated to whale and dolphin research and conservation. The user-friendly Happywhale app allows anyone to share photos of encounters with these marine mammals, which are then processed by a team of scientists and volunteers using advanced image recognition algorithms. Identified individuals are tracked over time and across locations, yielding valuable insights into their behavior and aiding  in the preservation of critical habitats.The CLI is designed to interact with the website and allow for you to perform operations like search, download and more using underlying api end points. The CLI provides tools based on API endpoints that may change and evolve and can lead to compatibility issues without API documentations so this tool will be developed as needed to support the larger community needs.Disclaimer: This is an unofficial tool. Is not licensed or endorsed by Happywhale.com. It is created and maintained by Samapriya Roy.happywhale -h
usage: happywhale.py [-h] {readme,auth,species,stats,fetch,search,download} ...

Simple CLI for HappyWhale API

positional arguments:
  {readme,auth,species,stats,fetch,search,download}
    readme              Go to the web based happywhale cli readme page
    auth                Saves your username and password
    species             Get species list
    stats               Go site stats for happywhale
    fetch               Fetch details on an encounter based on encounter id
    search              Search and export results (Default: Global 1 month)
    download            Download images from search results (Default: Global 1 month)

options:
  -h, --help            show this help message and exitCitationYou can cite the tool tooSamapriya Roy. (2023). open-oceans/happywhale: Simple CLI for Happywhales.com API (0.0.2).
Zenodo. https://doi.org/10.5281/zenodo.10081817
Package: happyx
HappyXPython Bindings For HappyX Web Framework 🔥Getting Started ✌Installing 📥You can install HappyX viapypi:pipinstallhappyxUsage 🔌Hello World 👋fromhappyximportServerapp=Server('127.0.0.1',5000)# host and port are optional params@app.get('/')defhome():return"Hello world!"app.start()JSON/HTML/File Responses 🛠fromhappyximportServer,JsonResponse,HtmlResponse,FileResponseapp=Server()@app.get('/json')defjson_resp():returnJsonResponse({'key':'value','arr':[1,2,3,4,5]},status_code=200# also available headers: dict param)@app.get('/html')defhtml_resp():returnHtmlResponse('<h1>HTML Response!</h1>',status_code=200# also available headers: dict param)@app.get('/file')deffile_resp():returnFileResponse('my_cool_icon.png')app.start()Read more inUser Guide
Package: haprestio
Copyright 2020 Nicolas FerraguPermission 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.
Description: # haprestio, Haproxy Consul API## Build status [![CircleCI](https://circleci.com/gh/innofocus/haprestio.svg?style=svg)](https://circleci.com/gh/innofocus/haprestio)Platform: UNKNOWN
Package: haproxy-cli
haproxy-clihaproxy-cli - A tool to interact with HAProxy.Table of ContentsOverviewInstallModesCLI UsageExamplesCLIAPIDevelopmentContributingOverviewhaproxy-cli is a tool to manage the various aspects of HAProxy that can be controlled by means of its socket.
It is based onhaproxyctland is actively used in the OPNsenseHAProxy plugin.Installpip install haproxy-cliModeshaproxy-cli can be used in 2 modes: CLI mode and Python API mode.
CLI mode, as the name implies, gives you a command, haproxy-cli, that can be used to control HAProxy.You can use the Python API mode to integrate haproxy-cli directly in your Python project.Every command in haproxy-cli has at least two methods: getResult and getResultObj.The method getResult returns a formatted string with the results obtained by executing the given HAProxy command, while getResultObj returns a Python object with the results, making it easy to use this results in some Python code.CLI Usage$ haproxy-cli --help

usage: haproxy-cli [-h] [-v] [-c COMMAND] [-l] [-H] [-s SERVER] [-b BACKEND]
                  [-w WEIGHT] [-k SOCKET]

A tool to interact with HAProxy

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Be verbose.
  -c COMMAND, --command COMMAND
                        Type of command. Default info
  -l, --list-commands   Lists available commands.
  -H, --help-command    Shows help for the given command.
  -s SERVER, --server SERVER
                        Attempt action on given server.
  -b BACKEND, --backend BACKEND
                        Set backend to act upon.
  -w WEIGHT, --weight WEIGHT
                        Specify weight for a server.
  -k SOCKET, --socket SOCKET
                        Socket to talk to HAProxy. It accepts
                        unix:///path/to/socket or tcp://1.2.3.4[:port]
                        addresses. If there is no match
                        for protocol, then it assumes a UNIX socket file.ExamplesCLI$ haproxy-cli -c frontends

$ haproxy-cli -c servers -b example_backend

$ haproxy-cli -c get-weight -b example_backend -s server1

$ haproxy-cli -c set-weight -b example_backend -s server1 -w 99

$ haproxy-cli -k /run/haproxy/admin.sock -c backendsAPI#!/usr/bin/env python

from haproxy.conn import HaPConn
from haproxy import cmds

try:
    socket_conn = HaPConn('/var/run/haproxy.socket')

    if socket_conn:
        print(socket_conn.sendCmd(cmds.showInfo()))
    else:
        print('Could not open socket')

except Exception as exc:
    print(exc)DevelopmentContributingPlease use the GitHub issues functionality to report any bugs or requests for new features. Feel free to fork and submit pull requests for potential contributions.
Package: haproxy-health-check
haproxy-health-check===============================version number: 0.0.1author: Samuele KaplunOverview--------HAProxy Health Check for EXABGPInstallation / Usage--------------------To install use pip:$ pip install haproxy-health-checkOr clone the repo:$ git clone https://github.com/kaplun/haproxy-health-check.git$ python setup.py installExample-------Use e.g. inside an EXABGP configuration such as:# Check if the service is available to announce a route to# it. Since the purpose is high availability, it is expected# that another host is present with a similar# configuration. IP address for the service is expected to be# configured on the loopback interface. You can run the# healthcheck process manually to check if it works as# expected (-h flag will give you available options)process service-haproxy {run python -m exabgp healthcheck -s --name haproxy --cmd "haproxy-health-check" --start-ip 0;encoder text;}neighbor 10.0.0.3 {description "will announce a route to a service";router-id 198.111.227.39;local-address 10.0.0.2;local-as 65533;peer-as 65533;api services {processes [ service-haproxy ];}}
Package: haproxy-pygments-lexer
Pygments Lexer for the HAProxy configuration syntaxThis package enables the latest HAProxy configuration syntax highlighting for
pythonPygmentsand is used as the
basis for the HAProxy lexer on the Pygments project.The lexer keywords are maintained and updated manually using information from
the documentation of the HAProxy Community version and the HAProxy Enterprise
version.InstallationTo add the lexer on your already existing pygments installation run:python setup.py installThis will install the lexer on your local system and create a python package.To verify that the lexer is working use the sample HAProxy configuration file.# Output the result on your command line
pygmentize -l haproxy -x haproxy.cfg

# Output the result in an HTML file
pygmentize -O full -l haproxy -o haproxy.html haproxy.cfgDevelopmentThe main grammar rules and keywords are located underhaproxylexer._haproxy_builtins.pycontains lists of keywords.lexer.pycontains all the grammar regexesTo quickly test your changes you can run:pygmentize -l ./haproxylexer/lexer.py:HAProxyLexer -x haproxy.cfgContributingPull requests and patches will be checked out by the maintainer and merged.
Try to keep your commit messages precise and to the point.Thanks and resourcesMany thanks for the lovelyPython,PyPi, andPygmentsdocumentation.Also a shout out toBojan Marcovicfor hisvscode-haproxy-syntaxandAlexander Bulimovfor hisatom-language-haproxy. Both were a great starting resources and the work done here will be also now easier to port for editors like VS Code, Atom, Sublime, etc.Funny little disclaimerThe author, has never actually taken the time to learn python...He just hacked away at this. Please forgive him for any coding "faux passes" he might have done :)
Package: haproxyspoa
HAProxy SPOAA pure Python implementation of an HAProxy Stream Processing Offload Agent with asyncio support.This library handles the lower level details of the Stream Processing Offload Protocol, allowing quick implementation of custom agents.
See theexamplefolder for the full example, including an example HAProxy configuration.fromipaddressimportIPv4Addressfromhaproxyspoa.payloads.ackimportAckPayloadfromhaproxyspoa.spoa_serverimportSpoaServeragent=SpoaServer()@agent.handler("earth-to-mars")asyncdefhandle_earth_to_mars(src:IPv4Address,req_host:str):returnAckPayload().set_txn_var("src_echo",str(src)+req_host)if__name__=="__main__":agent.run(host='127.0.0.1',port=9002)
Package: haproxysubdomains
# haproxysubdomainsManages redirect rules in haproxy configuration based on subdomain acl.Watch out, this will remove any comment in the haproxy config.Uses [`pyhaproxy`](https://github.com/imjoey/pyhaproxy) under thehood.## Usage```$ cat test.cfg``````frontend httpbind *:80frontend httpsbind *:443 ssl crt /etc/ssl/my_cert/default_backend defaultbackend defaultserver default 127.0.0.1:8888```Add a redirect rule:```$ haproxysubdomains add test.cfg https mydomain.com subdomain 5432$ cat test.cfg``````frontend httpbind *:80frontend httpsbind *:443 ssl crt /etc/ssl/my_cert/default_backend defaultacl subdomain hdr(host) -i subdomain.mydomain.comuse_backend subdomain if subdomainbackend defaultserver default 127.0.0.1:8888backend subdomainserver subdomain 127.0.0.1:5432```Remove a redirect rule:```$ haproxysubdomains del test.cfg https subdomain```
Package: haps
hapsHaps [χaps] is a simple DI library, with IoC container included. It is written in pure Python with no external dependencies.Look how easy it is to use:fromhapsimportContainerasIoC,Inject,inject# import interfacesfrommy_application.coreimportIDatabase,IUserServiceclassMyApp:db:IDatabase=Inject()# dependency as a property@inject# or passed to the constructordef__init__(self,user_service:IUserService)->None:self.user_service=user_serviceIoC.autodiscover('my_application')# find all interfaces and implementationsif__name__=='__main__':app=MyApp()assertisinstance(app.db,IDatabase)assertisinstance(app.user_service,IUserService)Installationpip install hapsDocumentationSeehttps://haps.readthedocs.io/en/latest/Usage examplesSeehttps://github.com/lunarwings/haps/tree/master/samplesTestingInstallrequirements.test.txtand runpy.testin main directory.Changelog1.1.3 (2022-02-04)Add>>operatorAddDIaliasUpdate.travis.yml1.1.1 (2018-07-27)Fix bug with optional arguments for functions decorated with@inject1.1.0 (2018-07-26)Add configuration moduleAdd application class and runnerAdd profilesMinor fixes1.0.5 (2018-07-12)@eggdecorator can be used without function invocation1.0.4 (2018-06-30)Add support for python 3.7Fix autodiscover sample1.0.0 (2018-06-15)First stable release
Package: haptik-helpers
Haptik HelpersLibrary of Helpers function to be re-used in Haptic Code nodesInstallationpip install haptik-helpersGet startedHow to Find Entity in Haptik conversation entity object(dict):fromhaptik_helpersimportIntegrations# Instantiate a Integrations objectintegrate=Integrations(entity_obj)# Call the get_entity methodprint(integrate.get_entity("kli_otp"))
Package: haptools
haptoolsHaptools is a collection of tools for simulating and analyzing genotypes and phenotypes while taking into account haplotype information. Haptools supports fast simulation of admixed genomes (withsimgenotype), visualization of admixture tracks (withkaryogram), simulating haplotype- and local ancestry-specific phenotype effects (withtransformandsimphenotype), and computing a variety of common file operations and statistics in a haplotype-aware manner.Homepage:https://haptools.readthedocs.io/Visit our homepage for installation and usage instructions.citationThere is an option to"Cite this repository"on the right sidebar ofthe repository homepageArya R Massarat, Michael Lamkin, Ciara Reeve, Amy L Williams, Matteo D’Antonio, Melissa Gymrek, Haptools: a toolkit for admixture and haplotype analysis, Bioinformatics, 2023;, btad104,https://doi.org/10.1093/bioinformatics/btad104
Package: hapydeis
A Python thin wrapper around deis api, for now only provide a level 0 client (which should be improved with a couple
of new features quite soon)Installationpip install git+https://github.com/Grindizer/hapydeis#egg=hapydeisOr in a develop mode after downloading a zip or cloning the git repositorygit clone https://github.com/Grindizer/hapydeis
cd hapydeis
pip install -e .Or in a develop mode from a git repositorypip install -e git+https://github.com/Grindizer/hapydeis#egg=hapydeisUsagefrom hapydeis import Client
mycluster = Client('http://deis.mycluster.example.com')
mycluster.authenticate('user', 'just an example here')
list_apps = mycluster.apps.get()DevelopmentTo run the all tests runpy.test
Package: ha-py-trello
A wrapper around the Trello API written in Python. Each Trello object is
represented by a corresponding Python object. The attributes of these objects
are cached, but the child objects are not. This can possibly be improved when
the API allows for notification subscriptions; this would allow caching
(assuming a connection was available to invalidate the cache as appropriate).Installpip install ha-py-trelloUsagefromtrelloimportTrelloClientclient=TrelloClient(api_key='your-key',api_secret='your-secret',token='your-oauth-token-key',token_secret='your-oauth-token-secret')Wheretokenandtoken_secretcome from the 3-legged OAuth process andapi_keyandapi_secretare your Trello API credentials that are
(generated here).To use without 3-legged OAuth, use onlyapi_keyandapi_secreton client.Working with boardsall_boards=client.list_boards()last_board=all_boards[-1]print(last_board.name)working with board lists and cardsall_boards=client.list_boards()last_board=all_boards[-1]last_board.list_lists()my_list=last_board.get_list(list_id)forcardinmy_list.list_cards():print(card.name)Getting your Trello OAuth TokenMake sure the following environment variables are set:TRELLO_API_KEYTRELLO_API_SECRETThese are obtained from the link mentioned above.TRELLO_EXPIRATIONis optional. Set it to a string such as ‘never’ or ‘1day’.
Trello’s default OAuth Token expiration is 30 days.Default permissions are read/write.More info on setting the expiration here:https://trello.com/docs/gettingstarted/#getting-a-token-from-a-userRunpython -m trello oauthRequired Python modulesFound inrequirements.txtTestsTo run the tests, runpython-munittest discover. Four environment variables must be set:TRELLO_API_KEY: your Trello API keyTRELLO_TOKEN: your Trello OAuth tokenNOTE:It’s recommended to create a separate Trello account for testing. While the tests try to only modify or delete
resources they’ve created, to remove all possibility of unintentional data loss, we recommend not using a personal
Trello account with existing data.To run tests across various Python versions,toxis supported. Install it
and simply runtoxfrom theha-py-trellodirectory.## Publishing
To publish, simply create a release on GitHub and a workflow will kick off to publish to PyPI. If you’d like to publish
locally, follow the below instructions.First ensure the appropriate tools are installed locally:`shell python3-mpip install--upgradebuild python3-mpip install--upgradetwine `Then build and publish:`shell python3-mbuild python3-mtwine upload dist/* `For more information see the [official packaging and publishing docs](https://packaging.python.org/en/latest/tutorials/packaging-projects).—Forked from original: https://github.com/sarumont/py-trello