Saravanan666/pypi-org huggingface dataset:
Package: gapper
Gradescope Autograder Packer (gapper)What's gapper?GAP is a tool that allows you to create a Gradescope autograder from a decorator so that you can ditch the cumbersomegradescope-utils. It's inspired byagaand reconstructed from the ground up to be easier to use and maintain.ShowcaseGenerate and Upload Vimeo VideoUpload with GUI Vimeo VideoUpload with GUI 2 Vimeo VideoUsage and DemonstrationInstallationInstall from PyPIpipinstallgapper~=1.3.0For detailed instruction, please readthe documentation pageUsagePlease refer to theget started tutorialanddetailed usagefor detailed usage.The API reference can be foundhere.Questions? Tips?Please use theDiscussionsto post any questions or tips you found along the way!
Package: gappinfo
Google_Play_App_InfoA simple api to fetch Playstore App information.With this python script you will be able to get an app information in a jiffy.Prerequisitespython3DependenciesInstall the following three python modules before executing Google_Play_App_Inforebeautifulsoup4requestspip install re

pip install bs4

pip install requestsORQuickly resolve dependencies using:pip install -r requirements.txtUsagepython main.pyScreenshotsOutputAuthorGautham PrakashMy other projects:github.com/gauthamp10ContributorsAjo VadakkanJithin KoshyThanks to all contributors who helped me with my projectLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: gappr10
AboutA very niche project, but if you own and use the Garmin Approach R10, your range data (the Garmin Range) is available for download.  This is relevant because you have access to the metrics collected for each shot by the device, which is likely the same data used by other integrated apps like Awesome Golf and E6.To me, this is important because it highlights the capabilities of the device, and for those of us nerds that like to dive into data, this represents an amazing plagyround.AmbitionsSimply request your data, save it to your machine, and point the library at the downloaded file.Club stats and visualizations around each.....Environment Helppyenv virtualenvpyenv localpyenv activatepyenv deactivateI think?  Converting to pyenv from conda so still feeling my way through runtimes and local projects that don't collide.
Package: gappy
### Install Package```pip3 install gappy```compatible python version: 3.4+### How to use#### Run with flaskExample:```import gappyfrom flask import Flaskfrom flask import requestTOKEN = '<your token>'bot = gappy.Bot(TOKEN)app = Flask(__name__)@app.route('/', methods=['POST'])def parse_request():msg = request.formcontent_type = msg['type']chat_id = msg['chat_id']data = msg['data']bot.send_text(chat_id, data)return 'OK'if __name__ == '__main__':app.run()```
Package: gaps
GAPSGeneralized Assignment Problem SolverThis code aims to implement an efficient solver for the generalized assignment problem.The generalized assignment problemThe generalized assignment problem is described quite wellon Wikipedia.This code actually allows for further generalization, multiple agents to perform a single task (regulated by a task budget).The implementationThe implementation is a simple depth-first search algorithm. Therefore, it does not work well for very large problems.The depth-first search expands most promising nodes first. True maximum assignment is guaranteed when algorithm is allowed to complete. Otherwise, the assignment printed last may be used as a best guess.The code makes use offrozendictto keep track of the set of assignments.Running the codeSolving your assignment problem is easy. Just specify your assignment problem (refer to main method inassign.pyfor an example), then run it. An example problem specification is given, to make clear what syntax is expected.The code offers a few features:Optional 'hard assignment' initializes the assignment with certain agents assigned to certain tasksOptional 'fair' parameter maximizes the profits related to the least profitable task (and thus equalizes the profits among tasks).Optional 'complete' parameter requires agents and tasks to fully use their budgets.'verbose' option prettily prints the assignment information after the code finishes. May be turned off.
Package: gapsplit
GapSplit is a sampling algorithm designed to generate uniform, high-coverage sample points on any metabolic modelregardless of convexity (i.e. logical/integer constraints).Functionssample(fname, n_points, lower_bounds=None, upper_bounds=None, n_update=100, n_secondary=0)Generate samples from a given input model.INPUT:fname - strString representing path to model file (see gurobipy.read() for acceptable file types).n_points - intNumber of desired sample points.lower_bounds - list/ndarray, optionalFVA minimums for model. Generated if not provided.upper_bounds - list/ndarray, optionalFVA maximums for model. Generated if not provided.n_update - int, optionalRefresh rate (in points) for console output of current model coverage and sample count.n_secondary - int, optionalNumber of additional gaps targeted for splitting.OUTPUT:samples - ndarrayn_points by n_reactions array of sample points.Dependenciesgurobipy: 7.0 and up (requires download and license from gurobi.com - license provided free for academic users)numpy: 1.14.5
Package: gapy
Gapy is a thin service account client for Google Analytics.Get set upFirst you need to create either aservice accountor client ID in yourGoogle API Console. If you’re
authenticating as a service account you’ll need to download your private key.If you’re authenticating as a web or installed application you’ll need to
download your client secrets file. Use theGoogle Developers Consoleto do this:Create a Project for thte application, and add the Analytics API to the Enabled APIs list.In “Credentials”, click “Create new Client ID”.Choose “Installed Application” and type should be “Other”.Once it’s generated your ID, click the new “Download JSON” button and save this file as client_secrets.json.Then just create a gapy client and start querying.storage_pathis the location where you want gapy to keep thestorage.dbfile that it will generate the first time it runs.Ids, metrics and dimensions can be provided as lists or single values.importgapy.client# For a service accountclient=gapy.client.from_private_key("your account name",private_key="your private key",storage_path="path/to/storage.db")# For a web or installed applicationclient=gapy.client.from_secrets_file("/path/to/client_secrets.json",storage_path="/path/to/storage.db"))reach_data=client.query.get("12345",datetime(2012,1,1),datetime(2012,2,2),['ga:visits','ga:visitors'],'ga:date')Google API documentationThis library is a layer over the Google Python API. If you wish to work on it, it may be necessary to consultthe Google Analytics API documentation.
Package: gaql
GAQL CLIA CLI for runningGoogleAds queries.UsageInstallingpip install gaqlpipx install gaql(recommended)QueryingThe default mode. Runs either as a REPL, or as a one off command-gaql[ACCOUNT_ID]-runinREPLmode
-gaql[ACCOUNT_ID][WORDS*]-runasinglequery.Notedependingonyourshellyoumayneedtoquotesomequeriesifyourunlikethis.

flags:
--helpshowthehelpmessage;basicallythebelow
-f|--format<csv|json|jsonl|proto>specifyanoutputformat
-o|--output<file>specifyanoutputfile.Basedontheextension,formatisinferred.NonREPLusageonlyExamples, using 1-000-000-000 as our demo account id:# opens a REPL with json lines as the output formatgaql-fjsonl1-000-000-000# runs the query against the given account, outputting to the terminal the results as json linesgaql-fjsonl1-000-000-000'SELECT campaign.id FROM campaign'# runs the query against the given account, outputting to 'campaigns.jsonl' the result as json linesgaql-ocampaigns.jsonl1-000-000-000'SELECT campaign.id FROM campaign'tip: by defaultLIMIT 100will be added to your queries. To override this behavior, simply define your ownLIMIT X.tip: the autocomplete will return only valid fields for the selected entity if you fill out theFROM <entity>part
first.Other toolsUsed for useful common queries. Currently only supports getting all accounts under an MCC, to help when managing multiple accounts. The MCC is taken from thelogin_customer_idfield.gaql-tools queries clientsNotescredentials come from the environment > the google .yaml file > a user provided credential filecredentials, settings, and history are stored in./config/gaql/*. The credential file will only be present if you create it through a prompt (i.e you aren't using the ENV, or the YAML file Google specifies)Ideas / TODOtables as an output formatautocomplete for account ids (with caching)DevelopmentWe're usingpoetryfor local development, package management, and publishing.pyenvis
recommended for Python version management, andpipxfor installation.Build commands:make develop - install a development version. run via `poetry run gaql <args>`
make publish - build and distribute to PyPi
make clean   - remove the existing build files
make format  - run black over the code
make lint    - lint and format the codeSecurityFor sensitive security matters please contactsecurity@getyourguide.com.Legalgaql-cli is licensed under the Apache License, Version 2.0. SeeLICENSEfor the full text.
Package: gaql-builder
GAQL BuilderGenerating GAQL (Google Ads Query Language) tool, this isnot official library.
If you want to build GAQL string much easier, you can use this tool, but it would not be validated entirely for all of posible combinations.Please follow the building rule viaofficial documentation.RequirementsPython 2.7.13+ / 3.5.3+pipInstallation$pip3installgaql-builderProject Structure.
├── gaql_builder/                 # Core folder
│   ├── __init__.py
│   └── main.py                   # Core library code
├── tests/                        # Test cases
├── .travis.yml                   # CI configuration
├── setup.py                      # Setup script
├── setup.cfg                     # Setup configuration
├── __init__.py                   # Root init
├── requirements.txt              # Install packages text file
└── README.md                     # Read-me fileUsageIf you want to generate the following query string,SELECT
 campaign.id,
 campaign.name
FROM
 campaign
WHERE
 campaign.resource_name = 'customers/1234567/campaigns/987654'you can use functional call to make it out.builder=GAQLBuilder()builder.select(['campaign.id','campaign.name'])builder.resource_from('campaign')builder.where("campaign.resource_name = 'customers/1234567/campaigns/987654'")builder.to_string()also, you can useadd_wherefunction to add condition.builder=GAQLBuilder()builder.select(['campaign.id','campaign.name'])builder.resource_from('campaign')builder.add_where(field='campaign.resource_name',operator='=',value="'customers/1234567/campaigns/987654'")LicenseMIT
Package: gaqqie-door
gaqqie-door: a client library for users to access the quantum computer cloud platform gaqqie-sky in gaqqie suiteThis is a beta version.What isgaqqie-door?gaqqie-dooris a client library for users to access the quantum computer cloud platformgaqqie-skyingaqqiesuite.For more information ongaqqie, seethis.Installationpipinstallgaqqie-doorHow to use gaqqie-doorThe currently supported quantum programming language is Qiskit.fromqiskitimportQuantumCircuit,executefromgaqqie_doorimportQiskitGaqqiecircuit=QuantumCircuit(2,2)circuit.h(0)circuit.cx(0,1)circuit.measure([0,1],[0,1])url="https://<api-id>.execute-api.<region>.amazonaws.com/<stage>"# rewrite to the endpoint URL of the user APIQiskitGaqqie.enable_account(url)backend=QiskitGaqqie.get_backend("qiskit_simulator")job=execute(circuit,backend)result=job.result()print(f"result job_id={job.job_id()}, counts={result.get_counts()}")Sample output:result job_id=6abff77e-4fda-4880-b3a5-ea8f49ff7cf0, counts={'00': 482, '11': 542}
Package: gaqqie-rainbow
gaqqie-rainbow: a library for providers to access the quantum computer cloud platform gaqqie-sky in gaqqie suiteThis is a beta version.What isgaqqie-rainbow?gaqqie-rainbowis a library for providers to access the quantum computer cloud platformgaqqie-skyingaqqiesuite.For more information ongaqqie, seethis.Installationpipinstallgaqqie-rainbowHow to use gaqqie-rainbowThe currently supported quantum programming language is Qiskit.importjsonfromqiskitimportAer,executefromqiskit.assemblerimportdisassemblefromqiskit.qobjimportQasmQobjfromgaqqie_rainbowimportGaqqiefromgaqqie_rainbow.restimportResulturl="https://<api-id>.execute-api.<region>.amazonaws.com/<stage>"# rewrite to the endpoint URL of the provier APIapp=Gaqqie(url)@app.receive_job(device_name="qiskit_simulator",interval=10)defreceive_job(job):job_id=job.idprint(f"receive_job job_id={job_id}")# parse circuitqobj_json=json.loads(job.instructions)qobj=QasmQobj.from_dict(qobj_json)circuit=disassemble(qobj)# execute circuitbackend=Aer.get_backend("qasm_simulator")aer_job=execute(circuit[0][0],backend)# parse resultresult=aer_job.result()print(f"result      job_id={job_id}, counts={result.get_counts()}")result_dict=result.to_dict()result_dict["backend_name"]=job.device_nameresult_json=json.dumps(result_dict,indent=2)# register resultjob_result=Result(job_id=job_id,status="SUCCEEDED",results=result_json)response=app.register_result(job_result)app.join()Sample output:receive_job job_id=6abff77e-4fda-4880-b3a5-ea8f49ff7cf0
result      job_id=6abff77e-4fda-4880-b3a5-ea8f49ff7cf0, counts={'00': 482, '11': 542}
Package: garageops
Garage OpsCodeSocialFeedbackIf you have general comments or want to ask a question, pleasecreate a discussion on GitHub. If you've found an issue or want to suggest a new feature, pleaseopen an issue on GitHub.ContributingContributions are welcome!Pre-commitThis repository usespre-committo catch simple issues before they are checked into the repository.Before contributing, please make sure toinstall pre-commitand then runpre-commit installinside this repository to set up the git hook scripts. Once the git hooks are installed, they will be run automatically before eachgit commit.See.pre-commit-config.yamlfor a full list of the git hooks that are run.License InformationThis repository is compliant with version 3.0 of theREUSE Specification.License files are contained in theLICENSES/directory and additional license & copyright information can be found in.reuse/dep5.Run the following for detailed copyright & license information on individual files:pipinstallreuse
reusespdx
Package: garages-amsterdam
Python - Garages Amsterdam ClientAsynchronous Python client for the garage occupancy in Amsterdam (The Netherlands).AboutA python package with which you can read the occupancy of a parking garage in Amsterdam (The Netherlands). Both for day visitors (short-term parking) and season ticket holders (long-term parking).NOTE: Not all parking garages have data for long-term parking.Installationpipinstallgarages-amsterdamUsageimportasynciofromgarages_amsterdamimportGaragesAmsterdamasyncdefmain():"""Show example on using the Garage Amsterdam API client."""asyncwithGaragesAmsterdam()asclient:all_garages:list[Garage]=awaitclient.all_garages()garage:Garage=awaitclient.garage(garage_id="ID_OF_GARAGE")print(all_garages)print(garage)if__name__=="__main__":asyncio.run(main())DataYou can read the following data with this package:Name of the parking garageAPI State (okorproblem)Free space shortFree space longShort capacityLong capacityAvailability percentage (based on short capacity)LongitudeLatitudeContributingThis is an active open-source project. We are always open to people who want to
use the code or contribute to it.We've set up a separate document for ourcontribution guidelines.Thank you for being involved! :heart_eyes:Setting up development environmentThis Python project is fully managed using thePoetrydependency
manager.You need at least:Python 3.9+PoetryInstall all packages, including all development requirements:poetryinstallPoetry creates by default an virtual environment where it installs all
necessary pip packages, to enter or exit the venv run the following commands:poetryshellexitSetup the pre-commit check, you must run this inside the virtual environment:pre-commitinstallNow you're all set to get started!As this repository uses thepre-commitframework, all changes
are linted and tested with each commit. You can run all checks and tests
manually, using the following command:poetryrunpre-commitrun--all-filesTo run just the Python tests:poetryrunpytestLicenseMIT LicenseCopyright (c) 2020-2022 Klaas SchoutePermission 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: garb
GARB - Google Analytics Request BuilderGARB is a small library that provides a comfortable way of building a Request
Body for Google Analytics Reporting API v4.InstallationUsing pipInstallgarbusingpip:pip install garbFrom SourceAlternatively, you can installgarbfrom source:git clone https://github.com/czuhajster/garbLicenseGARB is licensed underMIT License.
Package: garbage-translator
Garbage TranslatorInstallpip install garbage-translatorUsagefromgarbage_translatorimportGarbageTranslatorasGTgt=GT.from_list(["hellà","dankness","mi","olt","frend"])>>>gt.translate("hello darkness my old friend!",garbigility=50)"hellà dankness mi olt frend!"How to have funimportnltkfromgarbage_translatorimportGarbageTranslatorasGTnltk.download('cess_esp')# download spanish corpus (or whatever language you like)gt=GT.from_list(list(nltk.corpus.cess_esp.words()))text="The Mexico–United States barrier is a series of vertical barriers along"\" the Mexico–United States border aimed at preventing illegal crossings "\"from Mexico into the United States. The barrier is not one contiguous structure"\", but a discontinuous series of physical obstructions variously classified as 'fences' or 'walls'.">>>gt.translate(text,garbigility=20)"""The méxico–United States barrier is a seres of vertical barriers along the méxico–United States bordes aimed atpreventing ilegal crossings from méxico into the United States. The barrier is not one contiguous structure, but adiscontinuous seres of physical obstructions variously classified as 'fences' or 'walls'.""">>>gt.translate(text,garbigility=30)"""The méxico–United States barrio is a seres of vertical barrios along the méxico–United States bordes aimed at presentanllegan crossings from méxico instó the United States. The barrio is not one continuo estructura, but a discontinuousseres of physical obstructions variously clasificó as 'fences' or 'walls'.""">>>gt.translate(text,garbigility=40)"""Te Mérito–Usted Staples barrio is a seis of vecinal barrio abono te Mérito–Usted Staples borrar anime at pretendidollegan crossings from Mérito instó te Usted Staples. Te barrio is notó once consigo estructuras, buk a discóticas seisof musical instrucción varios clarifica as 'fauces' or 'allí'.""">>>gt.translate(text,garbigility=50)"""Te Maxis–Unión Santos barriendo ir a sordos os vestir batir abono te Maxis–Unión Santos bondad anime a prevemos irrealconsigo farol Maxis invitó te Unión Santos. Te barriendo ir notó once conteo sepultura, buk a disponibles sordos ospublica obligaciones valioso calificó así 'francos' o 'allí'."""APIclassGarbageTranslator:@classmethoddeffrom_list(cls,corpus:List[str])->"GarbageTranslator":""":param corpus: words of target language"""...deftranslate(self,paragraph:str,garbigility:int)->str:""":param paragraph: original text:param garbigility: from 0 to 100. How garbageous you like your translation to be.:return: garbage text:raise ValueError: if garbigility is outside interval (0, 100]"""...
Package: garbagetruck
GarbageTruckA small tool to periodically move old files into the local file system trash.Free software: MIT licenseFull documentation (including how to install):https://garbagetruck.readthedocs.io.FeaturesUseGarbageTruckto build and maintain scheduled cleanup of files in various directories that tend
to collect files over time.GarbageTruckwill send any files older than a relative period to the
local file system trash using the current user’s crontab to schedule checks for old files fromcron. This makes the utility safe in that any files moved to the trash could be restored simply
without worrying about immediate loss (until the trash is emptied, of course).For example, let’s say one never cleans out their downloaded files. Here’s how to set aGarbageTruckjob to periodically move files older than six months into the trash:$ garbagetruck set --older-than '6 months' --check-every day 'Clean out old downloads' ~/Downloads/This will set up a schedule (usingcron) to look for files each day that are older than three
montsh and have them moved into the correct trash (courtesy ofsend2trash). The details can be
shown like this:$ garbagetruck -l debug list
[2016-09-03T15:55:32-0700 #31693] INFO     garbagetruck Job 57d1db0a8b8427c3041ac1af89b0a348: name="Clean out old downloads" dirs=["/Users/brad/Downloads"] files_older_than="3 months" check_every="day"
[2016-09-03T15:55:32-0700 #31693] DEBUG    garbagetruck * 1 * * * /Users/brad/.virtualenvs/garbage_truck/bin/garbagetruck run 57d1db0a8b8427c3041ac1af89b0a348 # GarbageTruck: Clean out old downloadsEach call to thesetcommand will replace the same named job. Alternatively, if the job is no
longer useful, remove it like this:$ garbagetruck remove 'Clean out old downloads'To check on a job, any problems and results will be logged to one of the following locations:OS X will use~/Library/Logs/garbagetruck.log.Other systems will rely on whatclick_app_dirreturns.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-09-02)First release on PyPI.
Package: garb-alarm-clock
garb-alarm-clockPython Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://garb-alarm-clock.readthedocs.io.Features浣跨敤 garb_alarm_clock 鎵撳紑锛屽彲浠ョ湅鍒颁富鐣岄潰CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2021-04-17)First release on PyPI.
Package: garbas.forum
OverviewKnown IssuesFuture plansdelete / edit option for ownerdelete option for administratortest in IE6/7, opera, safariexample forum profile with preloaded forumtopic_workflow (normal, sticky, locked) - there should be also status
picturesforum status images - need to add pictures for close and anonymousimplement garbas.countvisitsHistory0.1b9 - 10/09/2008subscribe/unsubscribe option added [garbas]FIX: forum_info index was storing full url (with domain) [garbas]FIX: cancel button was not working on add_post and add_topic forms [garbas]0.1b8 - 10/03/2008rewrite before rc1 [garbas]tests added [garbas]0.1b7 - 09/03/2008fixed reindexing of subforums [garbas]first/slovenian translation added, now we have a base for other
translations [garbas]0.1b6 - 08/31/2008decoding problem with displaying categories [garbas]index last_post_date default value must not be None [garbas]0.1b5 - 08/31/2008workflow fixed [garbas]index type fix [garbas]0.1b4 - 08/29/2008enable description for forum [garbas]0.1b3 - 08/19/2008validation for posting is now working [garbas]subject at reply post is not needed [garbas]style for buttons fixed [garbas]style for pagination [garbas]0.1b2 - 08/17/2008template fix (div inside a, added divs for easier theming) [garbas]captcha is seen always seen when posting new post [garbas]0.1b1 - 08/15/2008initial release [garbas]