Saravanan666/pypi-org huggingface dataset:
Package: gunicorn-logging
Centralized logging for gunicorn ussing ELK besed on (python-logstash-async)[https://github.com/eht16/python-logstash-async].Environment varsLOGSTASH_HOST: Logstash host.LOGSTASH_PORT: Logstash port.LOGSTASH_DB_PATH: The path to the file containing queued events. Use None to use a in-memory cache.LOGSTASH_TRANSPORT: Callable or path to a compatible transport class.LOGSTASH_SSL_ENABLE: Callable or path to a compatible transport class.LOGSTASH_SSL_VERIFY: Should the server’s SSL certificate be verified?LOGSTASH_KEYFILE: The path to client side SSL key file.LOGSTASH_CERTFILE: The path to client side SSL key file.LOGSTASH_CA_CERTS: The path to the file containing recognized CA certificates.LOGSTASH_ENABLE: Flag to enable log processing. (default is True, disabling might be handy for local testing, etc.)LOGSTASH_EVENT_TTL: Amount of time in seconds to wait before expiring log messages in the database. (Given in seconds. Default is None, and disables this feature)LOGSTASH_ENCODING:LOGSTASH_MESSAGE_TYPE:LOGSTASH_MESSAGE_SUBTYPE:LOGSTASH_EXTRA:Using Django settingsEnvironment vars:WORKSPACE: Django base directory.DJANGO_SETTINGS_MODULE: Django settings module.
Package: gunicorn-packaged-by-james
GunicornGunicorn ‘Green Unicorn’ is a Python WSGI HTTP Server for UNIX. It’s a pre-fork
worker model ported from Ruby’sUnicornproject. The Gunicorn server is broadly
compatible with various web frameworks, simply implemented, light on server
resource usage, and fairly speedy.Feel free to join us in#gunicornonFreenode.DocumentationThe documentation is hosted athttps://docs.gunicorn.org.InstallationGunicorn requiresPython 3.x >= 3.5.Install from PyPI:$ pip install gunicornUsageBasic usage:$ gunicorn [OPTIONS] APP_MODULEWhereAPP_MODULEis of the pattern$(MODULE_NAME):$(VARIABLE_NAME). The
module name can be a full dotted path. The variable name refers to a WSGI
callable that should be found in the specified module.Example with test app:$ cd examples
$ gunicorn --workers=2 test:appContributingSeeour complete contributor’s guidefor more details.LicenseGunicorn is released under the MIT License. See theLICENSEfile for more
details.
Package: gunicorn-pipe
GunicornGunicorn ‘Green Unicorn’ is a Python WSGI HTTP Server for UNIX. It’s a pre-fork
worker model ported from Ruby’sUnicornproject. The Gunicorn server is broadly
compatible with various web frameworks, simply implemented, light on server
resource usage, and fairly speedy.Feel free to join us in#gunicornonFreenode.DocumentationThe documentation is hosted athttp://docs.gunicorn.org.InstallationGunicorn requiresPython 2.x >= 2.6orPython 3.x >= 3.2.Install from PyPI:$ pip install gunicornUsageBasic usage:$ gunicorn [OPTIONS] APP_MODULEWhereAPP_MODULEis of the pattern$(MODULE_NAME):$(VARIABLE_NAME). The
module name can be a full dotted path. The variable name refers to a WSGI
callable that should be found in the specified module.Example with test app:$ cd examples
$ gunicorn --workers=2 test:appLicenseGunicorn is released under the MIT License. See theLICENSEfile for more
details.
Package: gunicorn-service
startup gunicorn as service====Add python file as service in /etc/init.d/example: /etc/init.d/myproj#!/usr/local/bin/pythonimport sys, osfrom  gunicorn_service import ServiceSetting, gunicorn_service## work dir setting in /home/project/myproj.py# and work dir contains wsgi as startup module#p = ServiceSetting(   config="/home/project/myproj.py"name=os.path.basename(__file__),exe="/usr/local/bin/gunicorn" )gunicorn_service( p )myproj.pysettings            = "Game.settings.local"bind                = "0.0.0.0:55555"backlog             = 512user                = "root"workers             = 1worker_connections  = 2048daemon              = Truemax_requests        = 40000chdir               = "/hoem/Server/Game"worker_class        = "gevent"access_logfile      = "/var/log/access.log"error_logfile       = "/var/log/error.log"use service start| stop | stat, and try chkconfig myproj onuse one config to startup standalone or startup as a service..Fix.. start with pid, and restart..
Package: gunicorn-torify
Gunicorn TorifyTurn any Gunicorn server into a Tor Onion ServiceInstallationIt's available onPyPI! Just use pip to install$pipinstallgunicorn-torifyYou must haveTorinstalled to use gunicorn-torify.
This might look like$pacman-Stor# Arch$aptinstalltor# Debian/Ubuntu$apkaddtor# AlpineUsageJust add these imports to yourGunicorn config file(or create some python file such as./gunicorn-conf.pywith the line):fromgunicorn_torifyimporton_starting,on_exitWhen starting Gunicorn, be sure to include the--config ./gunicorn-conf.pyflag.PersistenceBy default, the Onion Service will store its secret keys in./secrets/tor.
To override this you can set theTOR_SERVICE_DIRenvironment variable before running for the first time.
According to thetor docsthis directory contains private keys and should be treated carefully.If deploying in Docker, it's important to persist this directory (otherwise your onion address could change) either with a named volume or a mapped directory.
An example deployment could be done with$dockervolumecreatemy-onion-service
$dockerrun-vmy-onion-service:/app/secrets/torafiorillo/gunicorn-torify:flaskContributingTo setup the development environment, it's convenient to usepyenvand thepyenv virtualenvplugin.
For example$pyenvvirtualenv3.8.1gunicorn-torify-3.8
$pyenvactivategunicorn-torify-3.8
$pipinstall-rrequirements_dev.txt
Package: gunicorn-uvicorn-runner
gunicorn-uvicorn-runnerRun either gunicorn or uvicorn depending on whether reloading is needed.Getting startedInstall a recent Python 3.x version (if you don't already have one).Create a Python web project (if you don't already have one) - for example aFastAPIbased project.Installgunicorn-uvicorn-runneras a dependency usingPoetry, pip, or similar:poetryaddgunicorn-uvicorn-runnerUse it:fromgunicorn_uvicorn_runnerimportrun_gunicorn_or_uvicornif__name__=="__main__":run_gunicorn_or_uvicorn("myproject.main:app","1.2.3.4",8042,True)DevelopingTo clone the repo:gitclonegit@github.com:Jaza/gunicorn-uvicorn-runner.gitTo automatically fix code style issues:./scripts/format.shTo verify code style and static typing:./scripts/verify.shTo run tests:./scripts/test.shBuildingTo build the library:poetrybuildBuilt bySeertech.
Package: gunicorn_worker_healthcheck
gunicorn_worker_healthcheckHTTP endpoint that counts ready gunicorn workersWhen using the defaultsyncgunicorn worker, using an HTTP endpoint of the application itself
(i.e. that is also handled by the same mechanism, namely the gunicorn workers, as normal application traffic)
to check whether the application is able to handle traffic
(and to e.g. remove it from the load balancing rotation on failure)
can lead to negative feedback loops in high load situations:The workers may become so backed up with application requests that they are unable to respond to the healthcheck requests in a timely manner.
Thus, this application is removed from serving traffic,
leaving even less applications to serve the incoming traffic,
thus increasing the chance that they, too, will become backed up
-- repeat until no applications are available for serving traffic at all.This package provides an alternative healthcheck endpoint that
a) is served by a separate thread, independent of the main application traffic
b) only checks whether the application and gunicorn startup process has completed
(i.e. any/all gunicorn worker processes have reported to be ready).UsagePut this into your config file (usuallygunicorn.conf.py):import gunicorn_worker_healthcheck

healthcheck_bind = '127.0.0.1:8001'
gunicorn_worker_healthcheck.start(globals())This starts an HTTP server in a thread;
on request it counts the number of workers that have notified they are ready
(using thepost_worker_inithookto write a pid file).
If the required number of workers are ready, it returns HTTP 200, else 500.Configurationhealthcheck_bindhost:port on which to listen for healthcheck requests (default: None, i.e. healthcheck is disabled)healthcheck_require_workerscount of workers that must be ready for the healthcheck to report success (default: 1)healthcheck_directorydirectory in which to store the state files, one per worker (default:'', i.e. the current directory)healthcheck_filenameformat string how to name the state files, must contain one placeholder{}for the pid (default:'.gunicorn.worker.{}')gunicorn_worker_healthcheck Changes1.0.0 (2023-05-19)Initial release (initial)
Package: guniflask
Overviewguniflask是自动化生成基于flask + gunicorn的服务端项目基础代码的构建工具。Getting Started安装guniflask项目生成工具:$ pip install -U guniflask-cli新建一个空文件夹foo并进入到foo中:$ mkdir foo && cd foo运行如下命令:$ guniflask init当出现提示时按Enter键即可选择默认设置。
提示项目创建成功后，安装项目所需依赖:$ pip install -r requirements/app.txt调试模式启动项目:$ bash bin/manage debugDocumentationhttps://guniflask.readthedocs.io/
Package: gunikite
🐎 GuniKitegunikiteis a utility class for running Gunicorn servers from a virtual environment. It helps you find the location of the Gunicorn executable within the virtual environment and run it with specified parameters.InstallationYou can installgunikiteusing pip:pipinstallgunikiteUsagefromgunikiteimportGunicornRunner# Create a GunicornRunner instancegunicorn_runner=GunicornRunner(worker=4,host="localhost",port=8080,module_name="myapp",app_class_name="app",enable_reload=True)# Run Gunicorn with the specified parametersgunicorn_runner.run_gunicorn()
Package: gunit
GUnitApp for executing C/C++ unit tests using GDB.Documentation:https://github.com/estcube/GUnit/wikiInstallationThe easiest way to install Gunit is through pip:https://pypi.org/project/gunit/pipinstallgunitExampleFor example if OpenOCD is used as GDB server and we are testing on an ARM chip.
Please note that you need to have the openOCD server running in the background.Secondly, all the outputs will be put intogunitdirectory.
To specify where the directory will be generated, definebuild_dirargument for the constructor.
By default, it will be your current working directory.fromgunitimportGUnit# Create a GUnit object for OpenOCDgunit=GUnit.openOCD("localhost:9000",executable='arm-none-eabi-gdb')# Execute the tests in the compiled filegunit.test("test.elf")# Construct a JUnit test reportgunit.junit()Here you can see a simple example of the .cpp file that could be used with the python example above.#include"GUnit.hpp"gunit::testt1("test1",// Name of the test case[](){// Lambda expressiongunit::affirm(20)>10;// The test case to check});gunit::testt2("test2",[](){gunit::affirm(10)>20;gunit::affirm(11)>20;});gunit::testt3("test3",[](){std::listl1=std::list<int>();l1.push_back(10);l1.push_back(12);l1.push_back(14);std::listl2=std::list<int>();l2.push_back(10);l2.push_back(12);l2.push_back(14);gunit::affirm(l1)==l2;});gunit::testt4("test4",[](){std::listl1=std::list<int>();l1.push_back(10);l1.push_back(12);l1.push_back(14);std::listl2=std::list<int>();l2.push_back(10);l2.push_back(22);l2.push_back(34);gunit::affirm(l1)==l2;});gunit::testt5("test5",[](){structa{intb;charc;chard;chare;charf;};structaone(10,'a','e','i','o');structatwo(10,'a','e','i','o');gunit::affirm(one)==two;});gunit::testt6("test6",[](){structa{intb;charc;chard;chare;charf;};structaone(10,'a','e','i','o');structatwo(22,'x','e','o','m');gunit::affirm(one)==two;});gunit::testt7("test7",[](){gunit::affirm(10)>5;gunit::affirm(10)>=10;gunit::affirm(10)<=10;gunit::affirm(10)<=15;gunit::affirm(1.0)==1.0;gunit::affirm(2.0)!=1.0;});intmain(){gunit::suite::run();// The test are added into the global test list on creation of the test structgunit::end();// Signal the end of the unit testwhile(1);}
Package: gunlink
_  _         _    
                     | |(_)       | |   
  __ _  _   _  _ __  | | _  _ __  | | __
 / _` || | | || '_ \ | || || '_ \ | |/ /
| (_| || |_| || | | || || || | | ||   < 
 \__, | \__,_||_| |_||_||_||_| |_||_|\_\
  __/ |                                 
 |___/A package that allows to handle URLInstallationRequests is available on PyPI:$pythonsetup.pyinstallor$python-mpipinstallgunlinkor ,simply$pipinstallgunlinkGunlink officially supports Python 2.7 & 3.6+.Cloning the repositorygit clone https://github.com/Brijeshkrishna/gunlink.gitHow to use:>>>fromgunlinkimportlink>>>gun=link('https://github.com/Brijeshkrishna')>>>gun.is_valid_linkTrueLicenseGunshot is licensed and distributed under the MIT license.Contact meif you're looking for an exception to the terms.ContributorsIf want to Contributor to gunshot contact me .
Package: gunpowder
A library to facilitate machine learning on large, multi-dimensional images.gunpowderallows you to assemble a pipeline fromdata loadingoverpre-processing,random batch sampling,data augmentation,pre-caching,training/prediction, tostorage of resultson arbitrarily large volumes of
multi-dimensional images.gunpowderis not tied to a particular learning
framework, and thus complements libraries liketorch,tensorflow.The full documentation can be foundhere.gunpowderwas originally written by Jan Funke and is inspired byPyGreenteaby William Grisaitis,
Fabian Tschopp, and Srini Turaga.
Package: gun-scraper
GunScraperA simple scraper for finding guns, according to search criteria, from Swedish gun shops.Currently three shops are supported:Torsbo HandelsJG JaktJaktmarken.se/Marks Jakt och FiskecenterSetupIn order to install and setup GunScraper, follow the steps below:Create a virtual environmentInstall GunScraper and dependencies:pip install gun_scraperDownload the configuration templatemisc/config.yamlUpdate the configurationDownloadmisc/runner.shand edit it with the path to the virtual environment
and config fileCreate a Cron Job to runrunner.shat desired intervalExample Cron Job, running every 12th hour:0 */12 * * * <path-to-repo>/GunScraper/runner.sh >/tmp/stdout.log 2>/tmp/stderr.logConfigTheconfig.yamlfollows the following syntax:scraper:filters:# Dictionary defining which filters to applycaliber:# Possible values: 22lr, 22WMR or 308winhandedness:# Possible values: leftsites:-# List defining which sites to scrape. Supported values: 'torsbo', 'jg' and 'jaktmarken'email:sender:# email address that will appear as sender of the notification emailsreceiver:# email that will receive notification emailssmtp_server:# hostname of smtp server used to send notificationsssl_port:# SSL port of the 'smtp_server'username:# username for the 'smtp_server'password:# password for the 'smtp_server'alive_msg_interval:# interval (in hours) to send notification in case no guns matching search criteria is founddata_folder:# folder to store persistent data inlogs_folder:# folder to store log output in
Package: gunstar
.. gunstar documentation master file, created bysphinx-quickstart on Mon Aug 19 20:26:18 2013.You can adapt this file completely to your liking, but it should at leastcontain the root `toctree` directive.Gunstar: Another Python Framework===================================Gunstar is a WSGI micro web framework.`Github Repo <http://github.com/allisson/gunstar/>`_.=================Features=================* `Based on WebOb <http://docs.webob.org/en/latest/>`_.* Simple url routing.* `Jinja2 templates <http://jinja.pocoo.org/docs/>`_.* Session interface with signed cookies.* `Signals with blinker <http://pythonhosted.org/blinker/>`_.* Unit testing support.* `Supports Python 2.6, 2.7, 3.3 and PyPy <http://travis-ci.org/allisson/gunstar>`_.=================Example=================Hello World App::# -*- coding: utf-8 -*-from gunstar.app import Applicationfrom gunstar.http import RequestHandlerclass IndexHandler(RequestHandler):def get(self):self.response.write('Hello World')routes = (('/', IndexHandler, 'index_named_url'),)app = Application(routes=routes)if __name__ == '__main__':from wsgiref.simple_server import make_serverserver = make_server('127.0.0.1', 8080, app)server.serve_forever()=================Contents=================.. toctree:::maxdepth: 2installationquickstartconfigurationroutingapplicationhandlerssessionsignalstesting==================Indices and tables==================* :ref:`genindex`* :ref:`modindex`* :ref:`search`
Package: gunther
GuntherA multicast beaconMIT LicenseCopyright (c) 2018 Kevin J. WalchkoPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: guorbit-utils
Note before installation: None of these commands have been properly tested. Make sure you installed the package in a virtual environment.For installing the utilities repo as a package use the following commands in the terminal:
Note: you need to have a working ssh key to access github from your current machine.
you need to have wheel installed.python setup.py bdist_wheel sdistAfter build run the following command to install, the built package.pip install .
Package: guozhi
jucie-python-sdk项目介绍果汁云IOT的Python SDK
主项目:https://gitee.com/haonan108/juice-cloudJAVA-SDK:https://gitee.com/haonan108/juice-java-sdk安装教程安装python环境(>2.6)pip install guozhi使用说明以下可直接连接到guozhiyun平台from juice.MqttClient import MqttClient 
from juice.handler.extend.sensor.SoudSetHandler import SoudSetHandler
from juice.handler.extend.device.TempGetHandler import TempGetHandler

get_handler_dict = {'temp': TempGetHandler()}  # 读取设备温度
set_handler_dict = {'soud': SoudSetHandler()}  # 设置蜂鸣器(传感器)状态

if __name__ == '__main__':
    # 填入产品code、设备code、密钥(需在www.guozhiyun.cn上申请)
    mqtt = MqttClient('product_code', 'device_code', 'secret')
    mqtt.get_message = get_handler_dict
    mqtt.set_message = set_handler_dict
    mqtt.init()扩展Handler,需要继承PropGetHandler或PropSetHandler,并实现handle方法,可参考SoudSetHandler,TempGetHandler
Package: gupload
gupload - Google Drive CLI UploaderOur motivation to create theguploadtool was the deployment of the GitLab CI artifacts to our Google Drive disk. The tool is not limited to this use-case though. It is a simple Python 3 command-line utility ingesting file names and their respective path arguments. Those are uploaded to Google Drive via Google service account (recommended approach by Google) and an optionally specified folder (through its ID).The secret file is accessed via the environmental variableGOOGLE_APPLICATION_CREDENTIALSand it should be set prior the program execution:$ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.jsonRequirementsPython 3 + PIPEnabled Google Drive API (you can do it in the Google Cloud Console)Google service account (you can do it in the Google Cloud Console)Credential JSON file to the service accountConfigured environmental variableGOOGLE_APPLICATION_CREDENTIALSto the service account credentialsInstallationInstall/upgrade the tool from PyPI using:$ pip3 install --upgrade guploadUsage$ gupload --help
Usage: gupload [OPTIONS] [FILES]...

Options:
--to ID                    Target folder identifier.  [required]
-f, --file <NAME PATH>...  Input file(s) to be uploaded.
-n, --nono                 No action: print names of files to be upload, but
                            don't upload.
--version                  Show the version and exit.
--help                     Show this message and exit.Example:Upload and rename$ gupload --folder 1OQ3lq2O1zqZ01vUgzvg1iyXXtBJRl6pW --file a.out ../a.out --file changelog.txt ../changelog.txtOutput:Uploading file: a.out
Uploading file: changelog.txtUpload all zip files$ gupload --folder 1OQ3lq2O1zqZ01vUgzvg1iyXXtBJRl6pW *.zipOutput:Uploading file: a.zip
Uploading file: b.zipCombination$ gupload --folder 1OQ3lq2O1zqZ01vUgzvg1iyXXtBJRl6pW --file changelog.txt ../changelog.txt *.zipOutput:Uploading file: changelog.txt
Uploading file: a.zip
Uploading file: b.zipContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsPavel Hübner- Initial workKarel Blavka- ExtensionLicenseThis project is licensed under theMIT License- see theLICENSEfile for details.
Package: guppy
Guppy-PE is a library and programming environment for Python2,
currently providing in particular the Heapy subsystem, which supports
object and heap memory sizing, profiling and debugging. It also
includes a prototypical specification language, the Guppy
Specification Language (GSL), which can be used to formally specify
aspects of Python programs and generate tests and documentation from a
common source.Note that his package is for Python2 only. There is a fork that is
ported and recommended for Python3 at:https://github.com/zhuyifei1999/guppy3The guppy top-level package contains the following subpackages:docDocumentation files. These are in a package so they get installed
at a well-defined place, especially to support interactive help.etcSupport modules. Contains especially the Glue protocol module.gslThe Guppy Specification Language implementation. This can
be used to create documents and tests from a common source.heapyThe heap analysis toolset. It can be used to find information
about the objects in the heap and display the information
in various ways.setsBitsets and ‘nodesets’ implemented in C.
Package: guppylang
GuppyGuppy is a quantum programming language that is fully embedded into Python.
It allows you to write high-level hybrid quantum programs with classical control flow and mid-circuit measurements using Pythonic syntax:fromguppylangimportguppy,Qubit,quantumguppy.load(quantum)# Teleports the state in `src` to `tgt`.@guppydefteleport(src:Qubit,tgt:Qubit)->Qubit:# Create ancilla and entangle it with src and tgttmp=Qubit()tmp,tgt=cx(h(tmp),tgt)src,tmp=cx(src,tmp)# Apply classical correctionsifmeasure(h(src)):tgt=z(tgt)ifmeasure(tmp):tgt=x(tgt)returntgtMore examples and tutorials are availablehere.InstallGuppy can be installed viapip. Requires Python >= 3.10.pipinstallguppylangUsageSee theGetting Startedguide and the otherexamples.DevelopmentThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.PrerequisitesPython >= 3.10PoetryRust>= 1.75.0  (only needed for tests)InstallingRun the following to setup your virtual environment and install dependencies:poetryinstall--withvalidationNote that the--with validationflag is optional and only needed to run integration tests.You can then activate the virtual environment and work within it with:poetryshellConsider usingdirenvto
automate this when entering and leaving a directory.To run a single command in the shell, just prefix it withpoetry run.Pre-commitInstall the pre-commit hook by running:poetryrunpre-commitinstallTestingRun tests usingpoetryrunpytest-vYou have to install extra dependencies to test automatic circuit conversion frompytket:poetryinstall--withpytket
poetryrunpytest-v# Now rerun testsIntegration test cases can be exported to a directory usingpoetryrunpytest--export-test-cases=guppy-exportswhich will create a directory./guppy-exportspopulated with hugr modules serialised in JSON.LicenseThis project is licensed under Apache License, Version 2.0 (LICENCEorhttp://www.apache.org/licenses/LICENSE-2.0).