Saravanan666/pypi-org huggingface dataset:
Package: gotthard
Gotthard is a command line tool to simplify connecting to a PostgreSQL instance via abastionhost.
This tool is created in the context ofzalando-stups, however it could be used without it.InstallationConfigurationUsageStups: Requesting access to oddConnecting to a local SpiloHow does it actually workExamplesExport a databaseGet the size of an RDS databaseDuplicate a Spilo database to your machineInstallation$sudopip3install--upgradegotthardConfigurationGotthard does not have its own configuration. It uses thepiu configurationfile.UsageGotthard can provide help with the commands itself:$gotthard--helpGotthard can run in two basic modes: in the foreground and in the background.When running in the background, gotthard establishes a tunnel and keeps the tunnel running in the background.$gotthardshipping.logistics.db.example.comWhen running in the foreground, the tunnel is established and the command you specify is executed.
Once your command finishes, the tunnel is closed. If you need to pass options to the command, you
will have to add the--to signify that the following options should not be interpreted by gotthard.$gotthardshipping.logistics.db.example.compsql$gotthardshipping.logistics.db.example.com--psql-UmyusernameStups: Requesting access to oddWhen using even & odd, the command will only succeed if you have been granted access to the odd host you are
trying to connect to. You can request access manually, but you can also have gotthard take care of this. When
specifying a reason, gotthard will actually execute apiurequest-accessfor you.$gotthardshipping.logistics.db.example.com--reason="Investigating INCIDENT-123"psqlConnecting to a local SpiloIf you want to connect to aSpilothat is running in the same network as your odd-host, you can use
the name of the Spilo appliance to connect.
This does however require you to be logged in to your AWS account, as we need to query your account.$gotthardshippinglogisticspsqlHow does it actually workThe way Gotthard works is by setting up an ssh tunnel to the bastion host.
It chooses the local port specified a free local port to tunnel the requests to remote side to port 5432.When running in the background, it’s task is done: It will report back the details of the tunnel.When running in the foregroed, Gotthard will export the PostgreSQL relatedEnvironment Variablesto the process
it needs to run. Most PostgreSQL client tools will use these environment variables to connect, most of your python or
perl scripts should adhere to these variables as well.$gotthardshippinglogisticsenv|grepPGPGUSER=usernamePGHOST=localhostPGDATABASE=postgresPGPORT=52296PGSSLMODE=requireExamplesExport a database$gotthardshipping.logistics.db.example.com--reason="FEATURE-123"--pg_dump-dfancydb-Fc-ffancydb.dumpGet the size of an RDS database$query="SELECT pg_database_size(CURRENT_CATALOG)"$gotthardexample.us-west-2.rds.amazonaws.com--psql-Urds_admin-dfeaturedb-c"$query"Duplicate a Spilo database to your machineThis actually requires you to have replication privileges.$gotthardshippinglogistics--pg_basebackup-D/postgres/mydata
Package: gottwall-backend-redis
gottwall-backend-redis is a Redis storage forGottWall metrics aggregation platformINSTALLATIONTo use gottwall-backend-redis  usepiporeasy_install:pip installgottwall-backend-redisoreasy_installgottwall-backend-redisUSAGETo configure GottWall withgottwall-backend-redisyou need specify backend in GottWall config.BACKENDS={'gw_backend_redis.RedisBackend':{'HOST':"127.0.0.1",'PORT':6379,'PASSWORD':None,'DB':2,"CHANNEL":"gottwall"},}CONTRIBUTEWe need you help.Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.Forkthe repositoryon Github to start making your changes to thedevelopbranch (or branch off of it).Write a test which shows that the bug was fixed or that the feature works as expected.Send a pull request and bug the maintainer until it gets merged and published.
Package: gottwall-storage-redis
gottwall-storage-redis is a Redis storage  forGottWall metrics aggregation platformINSTALLATIONTo use gottwall-storage-redis  usepiporeasy_install:pip installgottwall-storage-redisoreasy_installgottwall-storage-redisUSAGETo configure GottWall withgottwall-storage-redisyou need specify backend in GottWall config.STORAGE="gw_storage_redis.RedisStorage"STORAGE_SETTINGS={"HOST":"localhost","PORT":6379,"PASSWORD":"","DB":2}CONTRIBUTEWe need you help.Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.Forkthe repositoryon Github to start making your changes to thedevelopbranch (or branch off of it).Write a test which shows that the bug was fixed or that the feature works as expected.Send a pull request and bug the maintainer until it gets merged and published.
Package: goturn-pytorch
Installation:Download this repositorynavigate to the root of the repository and runpip install goturn_pytorchUsage:To create the model,from GoTurn import Modelgoturn = Model()To create a pretrained model,from GoTurn import Modelgoturn =Model(pretrained="path_to_weights.pkl")Theweights.pklfile is located at the root of the repository.Future updates:Add library to PyPi and CondaAutomatic downloading of weightsLicense:This project is released underMIT License.Author:This project is created and maintained byAakaash Jois.
Package: gotwo
Interactive light-weight tool to connect server by sshIt's only a lite tool.PrincipleRead configration from$HOME/.ssh/config.Installationonly supports python3.pipinstallgotwoorpython3-mpipinstallgotwo-ihttps://pypi.python.org/simpleUsages➜~goto_______________/___|/_\__/_\||_||||||||||||_|||_||||||_||\____|\___/|_|\___/🌻Up/Down-Moveselectionup/down
🌴Enter-Sshtocurrentselection
🌵Ctrl+c-Quit
🚀Connectingto...
HostNameAddressUserbcc6.2.7.3rootdahe125.6.1.2daheecs210.15.3.6root
Package: gougleai
Gougle AI APIpythonThe Gougle AI API include Gougle AI models.ModelsModel NameModel IDModel TypeGLT-1gougleai.models.glt.glt1Chat Completion and Text CompletionGLT-1.0.5 Betagougleai.models.glt.glt105Chat Completion and Text CompletionGIC-1gougleai.models.gic.gic1Image GenerationGIC-1.0.5 Betagougleai.models.gic.gic105Image GenerationDocsSeeDOCS.mdfor the docs.More spécificationsTo see more than about Gougle AI API, you can readhttps://www.github.com/gougle-official/gougleaiforallorhttps://www.github.com/gougle-official/gougleai-javascriptforjavascript.
Package: goupil
Goupil(Gamma transpOrtUtility, aPproximate but revertIbLe)DocumentationDocumentation for Goupil can be found online atRead the Docs.LicenseThe Goupil library is  under theGNU LGPLv3license (see the providedCOPYINGandCOPYING.LESSERfiles), except forinterfaceswhich are MIT-licensed.
Package: gourde
gourdeFlask(-Twisted/Gunicorn) microframework for microservices with Prometheus and Sentry support.The goal is to remove most of the boilerplate necessary to start a simple HTTP application.
This provides:Sane arguments (--host,--port,--debug,--log-level)Support to have a production ready uwsgi container (--twistedor--gunicorn)Prometheus support with default metrics (gourde.metrics: Seeprometheus_flask_exporter)Optional sentry support if theSENTRY_DSNenv var is set.If you have a 'static' directory in your module, just put a favicon.ico inside!Installationpipinstallgourde# To use a production ready wsgi server install one of the following extra requirementspipinstallgourde[twisted]pipinstallgourde[gunicorn]Quick-startfromgourdeimportGourdegourde=Gourde(__name__)app=gourde.app# This is a flask.Flask() app.@app.route('/example')defindex():return'Example'defmain():gourde.run()if__name__=='__main__':main()Want to know more? Look atexample/app.py, you can run it withgourde-example.
Package: go-utils
GO-UtilsThis Package is designed to provide utilities for interfacing with GLOBE Observer Data, particularly the Mosquito Habitat Mapper and Landcover Datasets.InstallationRunpip install go-utilsto install this package.ContributingForkthis RepoClone the Repo onto your computerCreate a branch (git checkout -b new-feature)Make ChangesRun necessary quality assurance tools (Formatter,Linter,Unit Tests,Documentation).Add your changes (git commit -am "Commit Message"orgit add .followed bygit commit -m "Commit Message")Push your changes to the repo (git push origin new-feature)Create a pull requestDo note you can locally build the package withpip install -e .and run unit tests withpytest -s go_utils.There are also several tools used by this repository to ensure code quality:FormatterThis codebase uses theblack formatterto check code format.Runpip install blackto get the package.After making changes, runblack ./.This will automatically format your code to Python standards.Import SortingTo make sure imports are sorted,isortis used.Runpip install isortto get the package.After making changes, runisort ./ --profile black(the profile black ensures no conflicts with the black formatter)LinterThis codebase usesflake8to lint code.Runpip install flake8to get the package.After making changes, runflake8.The linter will notify you of any code that isn't up to Python standards.Unit TestsThis codebase usespytestto run unit tests for the code.Runpip install pytestto get the package.After making changes, you can runpytestto run all unit tests. SeeAdvanced Usagefor more information.These tests will make sure the code performs as expected.Advanced UsageTo run tests relevant to a specific function/area, there are several markers that can be used:landcover: tests for Landcover proceduresmosquito: tests for Mosquito Habitat Mapper proceduresutil: tests for utility functionsdownloadtest: tests for functions that download GLOBE data over the internet.cleanup: tests for functions involved in the cleanup procedureTo specifically call a subset of tests, the-mflag must be used (e.g.pytest -m "landcover"). Using theorkeyword can be used to include multiple subsets (e.g.pytest -m "landcover or mosquito"), but do note that the current markers aren't mutually exclusive (theandkeyword accomplishes this). Using thenotkeyword can be used to exclude subsets (e.g.pytest -m "not downloadtest"), this is particularly useful for excluding the download tests as those tend to take a considerable amount of time.Previewing DocumentationThe documentation for this package is built by thepdoc module.Runpip install pdocto get the package.To preview the documentation, runpdoc -t doc_template --docformat numpy go_utils.This will locally host an updated documentation website which lets you preview any changes you may have made to the documentation.
Package: goutte
goutteDigitalOcean doesn't propose any way of automating snapshots.
There aresome SaaSthat can take care of it but paying to execute some API requests seemed a bit off.That's why we developed a simple script which can run with cron jobs or in CI services like Travis for free.
We use it daily to manageour backups.It includes:Snapshoting dropletsSnapshoting volumesRetention policyPruning snapshotsRequirementsPython ^3.6A DigitalOcean accountInstallationInstall it directly from pip:pip3install--usergoutteConfiguration fileGoutte takes its configuration from a pretty straightforward toml file.
We provided and example ingoutte.example.toml.retention=10# Number of backups to keep per droplet/volume[droplets]names=[# Array of droplets you want to snapshot'server01','server02','server03',][volumes]names=[# Array of volumes you want to snapshot'db01','redis01','redis02',]UsageGoutte takes two arguments which can also be set via environment variables:#HelpDescriptionEnvironment variable1CONFIGPath to the toml configuration fileGOUTTE_CONFIG2DO_TOKENYour DigitalOcean API tokenGOUTTE_DO_TOKENUsage:goutte[OPTIONS]CONFIGDO_TOKENDigitalOceansnapshotsautomation.

Options:--only[snapshot|prune]Onlysnapshotoronlyprune--debugEnabledebuglogging--versionShowtheversionandexit.--helpShowthismessageandexit.Running "snapshot only" for a configuration file containing one droplet and one volume:$gouttegoutte.toml$do_token--onlysnapshot13:32:48-INFO-Startinggouttev1.0.113:32:52-INFO-sgp1-website-01-Snapshot(goutte-sgp1-website-01-20181220-56bde)13:32:59-INFO-sgp1-mariadb-01-Snapshot(goutte-sgp1-mariadb-01-20181220-3673d)Run with DockerWe have a Docker image ready for you to use on Docker Hub.
It will read by default the configuration under/goutte/goutte.tomldockerrun\-eGOUTTE_DO_TOKEN=${do_token}\-v$(pwd)/goutte.toml:/goutte/goutte.toml\tomochain:goutteAutomating with TravisYou can easily automate it via cron job but the easiest way would be by leveraging free CI tools like Travis.You can create a repo which contains yourgoutte.tomlconfiguration and the following travis file.travis.yml:language: python
python: 3.6

install:
  - pip install goutte

script:
  - goutte goutte.toml # Don't forget to set GOUTTE_DO_TOKEN in Travis configEnable the repo in Travis and then go to the configurationAdd the environment variable GOUTTE_DO_TOKEN with the value of your DigitalOcean API keyEnable daily cron jobYou're good to go, goutte will run everyday and take care of the snapshots.Note: You can have different retentions for different volumes by having multiple configurations.# ...
script:
  - goutte 10days.toml
  - goutte 1day.tomlYou can see how we set it up for ourselfhere.
Package: gouvlu
gouvlu![Crowdin](https://crowdin.com/project/udata-gouvlu)Official udata theme of the Open Data Portal of LuxembourgUsageInstall the theme package in you udata environement:pipinstallgouvluThen, define the installed theme as current in youudata.cfg:THEME='gouvlu'configuration parametersSome features are optionnal and can be enabled with the followingudata.cfgparametersGOUVLU_GOVBAR = True/False: Toggle the govbarDevelopmentThere is adocker-composeconfiguration to get started fast.
Just run:docker-composeupThen go to <http://localhost:7000> to connect to the development server
with live reload.Local setupIf you want to execute some development tasks like extracting the translations or running the test suite, you need to install the dependencies localy (in a virtualenv).virtualenvvenvsourcevenv/bin/activatepipinstall-rrequirements/develop.pipIf you want to build assets, you also need node.js. The prefered way is withnvm:nvmusenpminstallinvassets_buildOk, you are ready, you can now execute some Development commands.inv-lAvailabletasks:allRuntests,reportsandpackagingassets-buildBuildstaticassetsassets-watchBuildassetsonchangecleanCleanupallbuildartifactscoverRuntestssuitewithcoveragedistPackagefordistributioni18nExtracttranslatablestringsi18ncCompiletranslationspydistPerformpythonpackaging(withoutcompilingassets)qaRunaqualityreporttestRuntestssuiteLet’s execute an entire build:invTranslationsThis project istranslated on crowdin.To update the source string, you need to extract them with theinv i18ncommand and push the result on this repository.
Crowding will detect the new string as soon as they are available on themasterbranch.Crowdin will submit a pull-request each time some translation is submitted by the contributors.Releasinggouvluusesbumprto perform release.
Simply execute:# Install bumpr if not already installedpipinstallbumpr# Dry run to preview changesbumpr-dv# Perform releasebumprBumpr will execute test, package everything, update changelog, handle tagging and push to upstream repository…
You just have to wait for the build to succeed and your release is available.Changelog1.1.12 (2019-05-27)Nothing yet1.1.11 (2019-05-15)Nothing yet1.1.10 (2019-05-08)Nothing yet1.1.9 (2019-05-07)Nothing yet1.1.8 (2019-05-07)Nothing yet1.1.7 (2018-11-13)Nothing yet1.1.6 (2018-10-23)Nothing yet1.1.5 (2018-10-23)Nothing yet1.1.4 (2018-10-23)Nothing yet1.1.3 (2018-10-22)Nothing yet1.1.2 (2018-10-22)Use an assets manifest for improved caching#102Expose theme assets for udata 1.6#1021.1.1 (2018-09-11)Upgrade to udata 1.5.31.1.0 (2018-07-31)Upgrade to udata 1.41.0.8 (2018-07-04)Fix worker bugUpdate IGSS Harvester Source1.0.7 (2018-06-27)Nothing yet1.0.5 (2018-06-27)Add Roadmap page#881.0.4 (2018-05-08)Add CSV Harvester#861.0.3 (2018-04-25)Add the missing topics themeOEmbed cards theming#80Fix the translatable header#811.0.2Update udata to latest release
Package: govdata
govdataClient-library to fetch data from GovData/OpenData-sources via DKAN-REST-API.
Take a look athttps://www.govdata.de/to determine if your city of interest provides some data.installpython-mpipinstallgovdataexample usagefromgovdataimportDKANPortalClientimportrequests# get opendata-city-clientcityclient=DKANPortalClient(city="braunschweig",apiversion=3)# get all available packages (topics)packagelist=cityclient.get_packages()# request data for package from packagelistfirst_package_id_from_list=packagelist[0]package_meta=cityclient.get_package_metadata(package_id=first_package_id_from_list)resources_for_package=package_meta["resources"]run testspytest--cov=govdatateststestcoveragecollecting ... 
 tests/test_govdata.py ✓✓✓✓✓✓✓✓                                                                                                                                          100% ██████████

---------- coverage: platform ###, python 3.8.10-final-0 -----------
Name                                                          Stmts   Miss  Cover
---------------------------------------------------------------------------------
/###/.local/lib/python3.8/site-packages/govdata.py     106     56    47%
---------------------------------------------------------------------------------
TOTAL                                                           106     56    47%
Package: govdelivery
govdeliveryA quite incomplete client for the GovDelivery Communications Cloud API v1.Currently, you can subscribe a user; manage their topics, categories, and
question responses; and get the list of available topics.The GovDelivery Communications Cloud API is described here:https://developer.govdelivery.com/api/comm_cloud_v1/Default.htmStatusOfficially supports both Python 2.7 and Python 3.6.Installationpip install govdeliveryRunning the testsTo lint the code and execute the unit tests,
we recommend usingtox.Install tox in a virtualenv or in your global Python environment by runningpip install tox.Alternately, we also like usingpipxfor installing and running system-wide tools like tox.Run all the tests in one go withtox.If you want to run just the linting tools (flake8 and isort), you can runtox -e lint.If you want to run tests in just Python 2 or just Python 3, you can runtox -e py27ortox -e py36.Changelog1.3 – 2019-11-25Add Python 3 supportImprove test coverage and add tox support for easy test runningFix a few assorted bugs1.2 – 2018-09-17Support updating a subscriber's response to a select question (as opposed to
a free response question)1.1 – 2017-11-06Allow SMS subscriptionsAllow notifications to be enabled on certain method calls1.0 – 2017-01-31Initial public release.Open source licensing infoTERMS.mdLICENSECFPB Source Code Policy
Package: govee-api2
Govee APISimple and minimal Govee Home API client to control Govee smart devices.Free software: Apache 2.0 LicenseDocumentation:https://govee_api.readthedocs.io.pip install -r requirements_dev.txtMessage to GoveeWe all love your products but unfortunately there is no public API. Thus, we cannot control the devices we have purchased
in our own smart home environments. I have created this library so that I can control my devices easily without the Govee
app and to help others doing this. Nobody wants to harm you, your server infrastructure or anything or anybody else. In case
you cannot accept my code to be public, please send me an e-mail toreiser.thomas@gmail.comand I will immediately shut down
this repository and will delete all artifacts from PyPi.FeaturesControl Govee IOT smart devices (Bulbs, LED strips)Approved device supportDevice SKUApproved sinceBulbs-none yet-LED stripsH61591.0.0H61631.0.0String lights-none yet-Please test your own devices with the API and tell me the results!
In case something did not work, please provide me the RAW JSON data received via thenew device+device updateevents.Not yet implementedBluetooth supportDetect which device is capable of IOT/MQTT control and which device requires Bluetooth controlString light supportUsageSeedocs/usage.rstortestclient.pyHistory1.2.0 (2020-05-13)Fix PyPi deployment (IoT certificates were missing)1.1.0 (2020-05-12)Change brightness from int (0 - 255) to float (0.0 - 1.0)Added logic to fetch device status on startupBugfixes1.0.0 (2020-05-08)Initial version
Package: govee-api-ble
govee-api-bleA Python API for Govee H6127 RGB lighting stripsPython PIP Package Site!This project is still in progress! If you have any issue, post an issue. If you have a fix, make a pull requestThis project currently uses os.system and will only work on UNIX systems! I'm working on a fix for this, but in the meantime, this is what """works"""!Huge thanks toBeauJBurroughsfor their amazing research! Without them this would not be possible :-)Requirements and SetupFor this package you will needA UNIX Device (Preferably a Raspberry Pi)Python 3.6<=BlueZ with gattool
To install, simply typepip install govee-api-bleInitializationYou will first need the MAC address for your light stripThis can easily be found by doinghcitool scanon a Raspberry Pi or by looking in your settings on the Govee appTo other devices, the strip will most likely be named ihoment-h6127 since that is the manufacturer's old name.To initialize an object, add to your code:fromgovee_api_bleimportGoveeDevicemy_device=GoveeDevice(FA:KE:MA:CH:ER:E0)Replacing the argument with your device's MAC addressUsagePower On/Off Examplemy_device.setPower(status)Accepts boolean value to turn device on/offfromgovee_api_bleimportGoveeDevice# Initialize the devicemy_device=GoveeDevice(FA:KE:MA:CH:ER:E0)my_device.setPower(True)# Turns device onmy_device.setPower(False)# Turns device offSet Device Color Examplemy_device.setColor([r,g,b])Accepts three RGB values as a listfromgovee_api_bleimportGoveeDevice# Initialize the devicemy_device=GoveeDevice(FA:KE:MA:CH:ER:E0)my_device.setColor([0,0,255])# Sets entire light strip to blueSet Device Brightness Examplemy_device.setBrightness(level)Accepts int between 0-100 and sets device brightness to numberfromgovee_api_bleimportGoveeDevice# Initialize the devicemy_device=GoveeDevice(FA:KE:MA:CH:ER:E0)my_device.setBrightness(50)# Sets brightness to 50%Set Device Scene Examplemy_device.setScene(setting)Accepts string, uses name of any scene setting that can be found in the Govee appfromgovee_api_bleimportGoveeDevice# Initalize the devicemy_device=GoveeDevice(FA:KE:MA:CH:ER:E0)my_device.setScene("blinking")# Sets scene to blinking modeSet Music Mode Examplemy_device.setColorMusic(setting,[r,g,b])Accepts string using name of the music mode, which can be found in the Govee appAlso accepts three RGB values as a list for the spectrum modeAt the moment, rolling mode does not workfromgovee_api_bleimportGoveeDevice# Initalize the devicemy_device=GoveeDevice(FA:KE:MA:CH:ER:E0)my_device.setColorMusic("rhythm")# Sets music mode to rhythmmy_device.setColorMusic("spectrum",[0,0,255])# Sets music mode to spectrum with the color blueHelp with Development!Runpip install setuptools wheelFork and clone the repositoryCreate a branch with a descriptive nameRun tests & debug before pullingCommit and start a pull request!