Saravanan666/pypi-org huggingface dataset:
Package: ga-secret-generator
ga-secret-generator is a small tool for generating totp secrets for use with
google authenticator.Installationpip install ga-secret-generatorga-secret-generator relies on python 3, so on some system you’ll need to
replace pip with pip3Usageusage: ga-secret-generator [-h] [-n] [-o OUTPUT_FILE] [-s SECRET] keyname

generates google authenticator totp secret as text and optionally as QR code

positional arguments:
  keyname               keyname, as displayed in google authenticator

optional arguments:
  -h, --help            show this help message and exit
  -n, --no-qr           omit generating a QR code image
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        where to store the QR code image (default: qr-
                        code.png)
  -s SECRET, --secret SECRET
                        use existing secret instead of generating one
Package: ga-segment-pusher
Google Analytics Segment Pusher===============================version number: 0.0.1author: Rok MihevcOverview--------A python package to push user segmentation mapped to google analytics ID to google analytics.Installation / Usage--------------------To install use pip:$ pip install ga_segment_pusherOr clone the repo:$ git clone https://github.com/rok/ga_segment_pusher.git$ python setup.py installContributing------------TBDExample-------```pythonimport ga_segment_pusherkey_file_location = 'credentials.json'csv_file_location = 'segments.csv'upload_params = {'account_id': 'XXXXXXXX','web_property_id': 'UA-XXXXXXXX-1','custom_data_source_id': 'XXXXXXXXXXXXXXXXXXXXXX'}analytics = ga_segment_pusher.get_service(key_file_location)ga_segment_pusher.upload_csv(csv_file_location, analytics, **upload_params)```
Package: gasify
gasifyA library for handling data from experiments, primarily focused upon gas sensing results. Contains methods for calculation of humidity, gas concentrations, gas mixtures, gas correction factors, and handling of various engineering and scientific units (extended frompint).Formally known asexperimentutil(un-released).AcknowledgmentsDeveloped atSwinburne University of Technology. If used in an academic project, please consider citing this work as it helps attract funding and track research outputs:C. J. Harrison and M. Shafiei. gasify. (2022). [Online]. doi: https://dx.doi.org/10.5281/zenodo.7033778This activity received funding fromARENAas part of ARENA’s Research and Development Program – Renewable Hydrogen for Export (Contract No. 2018/RND012). The views expressed herein are not necessarily the views of the Australian Government, and the Australian Government does not accept responsibility for any information or advice contained herein.
Package: gasket-wsgi
gasket-wsgi======A plug-in to the gasket architecture that provides WSGI support and XML display.## Install updated `dict2xml`You will need (in addition to pypi dependencies):* dict2xml, but the github version, not the pypi version:pip install git+https://github.com/quandyfactory/dict2xml.git#egg=dict2xmlContributors============* Jeremy G. Kahn <jeremy@trochee.net>* pmariani for web-based display tools
Package: gasp
GASP (Graphics API for Students of Python)GASP is built on Tkinter and Pygame graphics. It was not written from scratch but was instead derived directly
from the Livewires library, and is thus released under the same free software
license covering the original source:https://github.com/livewires/pythonGASP has been ported to Python 3.GASP is designed to enable absolute beginners to write 1980's
style arcade games as an introduction to python.Homepage:https://codeberg.org/GASP/GASP_CodeThere is an excellent coursebookhttp://openbookproject.net/pybiblio/gasp/which goes over learning to use GASP in your own applications.INSTALLATIONGASP should be available in PyPI. To install it:$ python3 -m pip install gaspTo also obtain the GASP games extension:$ python3 -m pip install gasp[games]USAGEGASP for beginners is built on Tkinter and is meant to be imported using:fromgaspimport*GASP games is built on Pygame and is meant to be imported using:fromgaspimportgamesBecause of this, to reference anything in beginners GASP, you can simply reference that object e.g.begin_graphics().
However, to reference an object in GASP games, you must preface it withgames.e.g.games.Screen()TESTSThetestsdirectory contains tests for GASP. For API level functional tests,
from inside the same directory where this README file is located, run:GASP API test:$ python3 -m doctest tests/test_gasp_api.rstGASP games API test:$ python3 -m doctest tests/test_games_api.rstIf your terminal is empty after running these commands, rest easy knowing GASP is perfect.To visually inspect the graphics rendering, run:$ python3 tests/test_graphics.pyLICENSEThis software is licensed under theGPL Licensefound in this
distribution.REQUIREMENTSGASP using Tkinter is designed to not require any further installations, so nothing beyond the Python Standard Library (https://docs.python.org/3/library/index.html) is needed.
However, GASP using Pygame requires the installation of Pygame. Please see the documentation for guidance on how to do that.
Package: gasprice
gaspriceestimates ethereum gas price based on recent blocks and provides a simple apihostedhttps://gasprice.poa.network(kindly deployed bypoa network)installationrequires python 3.6 and an ethereum full node. infura.io won't work as it doesn't allow setting upfilter.pipinstallgaspricethere is an example of systemd service if you want to run it as a service.usagegasprice

Options:-h,--host127.0.0.1-p,--port8000-s,--skip-warmupethereum rpc url can be set withETH_RPC_URLenvironment variable (defaulthttp://localhost:8545).api{"block_number":4813900,"block_time":14.9,"health":true,"slow":1,"standard":4,"fast":20,"instant":40}slow,standard,fastandinstantvalues represent minimal gas price of the latest 200 blocks. by default slow represents 30% probability, standard is 60%, fast is 90% and instant is 100%.
Package: gaspriceio
py-gaspriceioStructured Python wrapper forGasPrice.ioAPI.InstallationInstallpy-gaspriceio.Using pippip3installgaspriceioBuild from sourcegitclonehttps://github.com/nekusu/py-gaspriceio.gitcdpy-gaspriceio
pip3install-rrequirements.txt
sudomakeinstall# or `sudo python3 setup.py install`UsageQuick example:>>>fromgaspriceimport*>>>fromgaspriceimportutils>>>fromthreadingimportThread# Estimates>>>estimates_=estimates()>>>estimates_.base_fee64.318551651>>>estimates_.eth_price3828.13>>>estimates_.instant.fee_cap73.75040681610001# History (30 days)>>>history=history_by_hour()>>>history[0].estimates.base_fee70.531785439# Txpool Analysis>>>txpool=txpool_analysis()>>>txpool.base_fee54.18059689>>>utils.format_decimals(txpool.data[0].total_fees)'0.225 ETH'>>>txpool.data[0].analysis.transfer0.126# Lowest base fee>>>lowest_fee=utils.lowest_base_fee(history)>>>lowest_fee.estimates.base_fee50.18255170481667>>>str(lowest_fee.time)'2021-10-18 07:00:00'# Cheapest day>>>utils.cheapest_day_average(history)'Saturday'# Realtime estimates (websocket)>>>rt=realtime(print)>>>Thread(target=rt.run).start()<gasprice.shared.Estimatesobject(Instant:140,Fast:139,Eco:101)><gasprice.shared.Estimatesobject(Instant:129,Fast:128,Eco:95)><gasprice.shared.Estimatesobject(Instant:138,Fast:137,Eco:95)>>>>rt.close()For better understanding, I recommend reading theGasPrice API documentation. All variables/functions names were renamed fromcamelCasetosnake_case.LicenseMIT - Copyright (c) 2021
Package: gaspy
gaspyGumnut Assembler written in Python.gaspyis a python-based implementation of Peter Ashenden’s Gumnut assemblergasmwhich assembles the machine code to
be used with his 8-bit soft-coreGumnut. For more information refer toThe Designers Guide to VHDLhttps://www.sciencedirect.com/book/9780120887859/the-designers-guide-to-vhdlgaspywas forked from my very first implementation created at the laboratory for digital engineering at the University of
Applied Sciences Augsburg back in 2015.As of now,gaspysupport allgasminstructions and assembles the same machine code asgasm.DocumentationPlease refer tohttps://gaspy.readthedocs.io/en/latest/Changelog1.0.3FixedTypos in READMEMaking suretoxis using the package, not the source files for testingUpdated development docs1.0.2ChangedThe README file is now also using reStructuredText formatFixedequdirective is now working for ascii values (e.g.char_a: equ 'a')1.0.1AddedProper CLI for standalone usageDocumentation (still in progress, though)Introducedtoxfor handling testing, build, and publishing tasksIntroduced Github Actions for automated testingChangedReplacednosetestwithpytestas the choice for unit and
integration testingUpdated the existing tests forpytestFixedModule imports were fixed1.0.0The initial version which wasgaspywas forked from.
Package: gassist-text
gassist_textA Python library for interacting with Google Assistant API via textCreditsUseshttps://pypi.org/project/google-assistant-grpc/. See instructions there how to getcredentials.json.Code is essentially a copy ofhttps://github.com/googlesamples/assistant-sdk-python/blob/master/google-assistant-sdk/googlesamples/assistant/grpc/textinput.pywrapped in a package.Exampleimportjsonimportgoogle.oauth2.credentialswithopen('/path/to/credentials.json','r')asf:credentials=google.oauth2.credentials.Credentials(token=None,**json.load(f))fromgassist_textimportTextAssistantwithTextAssistant(credentials)asassistant:print(assistant.assist('tell me a joke')[0])print(assistant.assist('another one')[0])Limitations/Known issuesBroadcast commands don't work unless speakers and device that runs this library are in the same network and IPv6 is disabled in the routerMost queries for media controls don't worknot working: e.g. play music on kitchen speaker, stop kitchen speakerworking: e.g. play news on kitchen speaker, play rain sounds on bedroom speakerRoutines don't workQueries for personal results don't workDevelopment environmentpython3-mvenv.venvsource.venv/bin/activate# for Windows CMD:# .venv\Scripts\activate.bat# for Windows PowerShell:# .venv\Scripts\Activate.ps1# Install dependenciespython-mpipinstall--upgradepip
python-mpipinstall.# Generate embedded_assistant_pb2.py and embedded_assistant_pb2_grpc.pypython-mpipinstallgrpcio-tools
python-mgrpc_tools.protoc-Isrc--python_out=src--grpc_python_out=srcsrc/google/assistant/embedded/v1alpha2/embedded_assistant.proto# Run lintpython-mpipinstallflake8
flake8src/gassist_texttestsdemo.pybrowser_helpers.py--count--select=E9,F63,F7,F82--show-source--statistics
flake8src/gassist_texttestsdemo.pybrowser_helpers.py--count--exit-zero--max-complexity=10--max-line-length=127--statistics# Run testspython-mpipinstallpytest
pytest# Run command line interactive toolpython-mpipinstallclickbeautifulsoup4
pythondemo.py--display--audio_out# Build packagepython-mpipinstallbuild
python-mbuild
Package: gastepo
Description框架简介：Gastepo ~ 基于Schema DSL语法规约的接口自动化测试框架测试类型：接口自动化测试Feature开发语言：Python 3.7开发环境：PyCharm开发工具：测试框架：Pytest测试报告：Allure数据处理：Pandas请求工具：Requests响应获取：JsonPath断言工具：Hamcrest单元测试：Unittest、Coverage代码扫描：SonarQubeWeb服务：Flask、FastApi部署方式：Docker、JenkinsFrameworkSchemaDependency Schema[{"GET /v3_0/userInfo/searchContactUsers":{"to_path":{},"to_header":{},"to_param":{},"to_data":{"$['idCardNo']":{"GET /v3_0/getCardId":{"response":{"data":"$.data.cardId"}}}}}}]Assertion Schema[{"actual":"$.data[:].cardId","expect":[{"${fetchCardId(user)}":{"user":{"GET /v3_0/getUserName":{"response":{"data":"$.userName"}}}}}],"matcher":"has_item","alert":"未发现指定用户标签ID","multi":false}]Test Runner[pytest]addopts=-s -q --alluredir=./Common/Static/Result/Allure --disable-warningstestpaths=./Executor/Mentepython_files=*Runner.pypython_classes=Test*python_functions=test*Automation RuntimeStep_1：自动分析指定扫描文件夹中所有Postman接口集合并聚合生成表格用例文件。Step_2：自动化测试用例支持用例筛选及BDD方式执行，单条用例支持激活或禁用。Step_3：自动化测试用例使用Dependency Schema规约结构的接口请求数据依赖。Step_4：自动化测试用例使用Assertion Schema规约结构的接口信息高级断言。Step_5：自动化测试运行支持前置清空历史测试数据，包括测试结果、用例结果等。Step_6：自动化测试运行的所有接口通过dispatch路由分发，可自动识别请求信息并注入依赖数据。Step_7：自动化测试报告使用Allure，并支持表格用例自动更新、接口信息实时录制、报告实时截图。Step_8：自动化测试推送通知方式支持传统邮件推送和钉钉机器人消息提醒。Step_9：自动化测试部署方式支持Jenkins流水线及Docker容器托管运行方式。Test Reporteralluregenerate{json测试结果目录}-o{html测试报告目录}--cleanAllure Test ReportTest DeploymentDocker Containerdockerrun-itd--namegastepo-p端口号-v{配置文件映射卷}-v{数据文件映射卷}automation/gastepoJenkins Pipelinepipeline{agentanyoptions{可选项配置}stages{stage("Pull From GitLab"){拉取指定Git分支源码}stage("Set PATH"){设置Python3依赖信息}stage("Run Test"){执行自动化测试}stage("Generate Report"){报告生成及结果推送}post{success{println"[Done]: Gastepo Test Done"}}}Wiki:Get me onGitHubMeasure
Package: gastimator
GAStimatorImplementation of a Python MCMC gibbs-sampler with adaptive stepping.While this is a simple MCMC algorithm, it is robust and stable and well suited to high dimensional problems with many degrees of freedom and very sharp likelihood features. For instance kinematic modelling of datacubes with this code has been found to be orders of magnitude quicker than using more advanced affine-invariant MCMC methods.InstallYou can install GAStimator withpip install gastimator. Alternatively you can download the code here, navigate to the directory you unpack it too, and runpython setup.py install.It requires the following modules:numpymatplotlibplotbinjoblibDocumentationTo get you started, see the walk through here:https://github.com/TimothyADavis/GAStimator/blob/master/documentation/GAStimator_Documentation.ipynbAuthor & LicenseCopyright 2019 Timothy A. DavisBuilt byTimothy A. Davis <https://github.com/TimothyADavis>. Licensed under
the GNU General Public License v3 (GPLv3) license (seeLICENSE).
Package: gastimeter
Gastimetergastimeteris a simple tool to obtain readings from a gas meter by means of OCR (Optical Character Regonition). As OCR is not 100% accurate, the tool effectively provides a guestimate of the gas meter reading - hence the name.InstallationClone the repository and installgastimeterusing pip - optionally in a virtually environment.git clone https://github.com/gkunz/gastimeter.git
  cd gastimeter
  pip3 install .Known issuesgastimeterusesOpenCVto capture images from a connected camera. If runninggastimeteron a RaspberryPi on Debian Bullseye (or higher), note thatOpenCV does not work (yet)with the new libcamera subsystem. There are two possible workarounds:Use the legacy camera subsystem based on V4L2Switch to the old camera subsystem using the following:sudo raspi-configSelectInterface OptionsSelectLegacy CameraNote that this camera subsystem is deprecated and will be removed in the future.Use libcamera toolingUselibcamera-jpegto capture an image and feed this intogastimeterusing the--imageoption.LicenseGastimator is licensed under theMIT license.
Package: gastop
QuickstartGASTOp is aGeneticAlgorithm forStructural design andTopologicalOptimization.
Given a set of boundary conditions such as applied loads and fixtures, it will design a structure to support those loads while minimizing weight and deflections and maximize factor of safety.InstallationInstall gastop by running:$pipinstallgastopUsageLook how easy it is to use:importgastopconfig_file_path="./path_to_config_file.txt"ga=gastop.GenAlg(config_file_path)ga.initialize_population(pop_size=1e4)best_truss,history=ga.run(num_generations=100,progress_display=1,num_threads=4)ContributeIssue Tracker:https://github.com/f0uriest/GASTOp/issuesSource Code:https://github.com/f0uriest/GASTOp/Documentation:https://gastop.readthedocs.io/LicenseThe project is licensed under the GNU GPLv3 license.
Package: ga-storage-manager
Storage Engine DocumentationThis project is a POC. Not production ready.TestsTo run the tests:$ pip install -r requirements/dev.txt
$ unit2 discoverInstallingIt's simple:$ pip install ga-storage-managerHow it worksIn order makega_storage_managerworks you must define at least some env vars:STORAGE_MANAGER_ENGINE (required): Defines storage manager's engine.FILESYSTEMis the only mode supported.How to use# -*- coding: utf-8 -*-
import os

from ga_storage_manager import StorageManager

db = StorageManager(storage_manager_engine=StorageManager.STORAGE_MANAGER_ENGINE_MODE_FILESYSTEM,
                    storage_manager_file_path=os.getenv('DATABASE_PATH',
                                                        os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                                                     os.getenv('DATABASE_NAME', "db.json"))))

db.save({"id": 34, "message": "You shall not pass!"})     
db.get(34)     # gets the data
db.list()      # returns all data
db.delete(34)  # deletes the data
Package: gasyncio
gasyncio - A minimalistic asyncio event loop based on the GLib main event loopSo far only a proof-of-concept.DefinesGAsyncIOEventLoopPolicyandGAsyncIOEventLoop.Useloop.run_application(app, argv)to runGio.Application.
While the application is running, theasyncioevent loop will function normally,
run by theGLibmain event loop.Useloop.run_without_glib_until_complete(future)for cleanup.The following should be semantically equivalent:policy = asyncio.set_event_loop_policy(gasyncio.GAsyncIOEventLoopPolicy())
loop = asyncio.get_event_loop()
loop.start_slave_loop()
App().run(sys.argv)
loop.stop_slave_loop()
loop.close()
asyncio.set_event_loop_policy(policy)
del loop, policyloop = gasyncio.GAsyncIOEventLoop()
loop.start_slave_loop()
App().run(sys.argv)
loop.stop_slave_loop()
loop.close()
del loopgasyncio.GAsyncIOEventLoop().run(App(), sys.argv)
Package: gatecoin-api
Gatecoin Python REST API clientThis is a simple Gatecoin python REST API client library that abstracts away the REST for the end user.InstallationThe library can be collected from PyPI like so:$ pip install gatecoin_apiUsageThe package exposes theGatecoinAPIclient class which has methods from the Gatecoin REST API. Public methods may be directly used, for trading methods API credentials need to be set:api=GatecoinAPI('private_key','public_key')orapi=GatecoinAPI()api.set_credentials('private_key','public_key')After that trading APIs may be used. Example usage of the Public API:api=GatecoinAPI()res=api.get_currency_pairs()print(res.response_status.message)# 'OK'print(res.currency_pairs[0].trading_code)# 'BTCEUR'print(res.currency_pairs[0].base_currency)# 'BTC'print(res.currency_pairs[0].price_decimal_places)# 1Implemented methodsTradingset_credentialsget_balancesget_balanceget_open_ordersget_open_ordercreate_ordercancel_ordercancel_all_ordersget_trade_historyPublicget_currency_pairsget_market_depthget_order_bookget_recent_transactionsDevelopmentTo develop or test using this package without installing from PyPI, you can clone the repository and set up the environment in a virtual envirnonment at the root of the working copy:$ virtualenv venv --python=python3Activate the virtual environment:$ source venv/bin/activateInstall development dependencies:$ pip install -r requirements.txtRun the interactive python shell and you can use the package as the example given below:$python>>>fromgatecoin_apiimportGatecoinAPIasGA>>>api=GA()>>>res=api.get_currency_pairs()>>>res.response_status.message'OK'>>>res.currency_pairs[0].trading_code'BTCEUR'>>>res.currency_pairs[0].base_currency'BTC'>>>res.currency_pairs[0].quote_currency'EUR'>>>res.currency_pairs[0].display_name'BTC / EUR'>>>res.currency_pairs[0].name'BTC / EUR'>>>res.currency_pairs[0].price_decimal_places1TestsTo setup correctly for tests, set valid development API keys and API base URL in your shell environment:exportGTC_TESTS_PRIVATE_KEY=<PRIVATE_KEY>exportGTC_TESTS_PUBLIC_KEY=<PUBLIC_KEY>exportGTC_API_BASE_URL=<API_BASE_URL>For Windows command line, please use thesetcommand:setGTC_TESTS_PRIVATE_KEY=<PRIVATE_KEY>setGTC_TESTS_PUBLIC_KEY=<PUBLIC_KEY>setGTC_API_BASE_URL=<API_BASE_URL>To run tests please execute:$ python setup.py testIf development keys are not set, trading scope tests will fail.
Package: gate-drift
GATE: Data Drift Detection for Machine Learning PipelinesGATE is a Python module that detects drift in partitions of data. GATE computes partition summaries, which are then fed into an anomaly detection algorithm to detect whether a new partition is anomalous. This minimizes false positive alerts when detecting drift in machine learning (ML) pipelines, where there may be many features and prediction columns.Support for EmbeddingsWe now support drift detection on embeddings, in addition to structured data. GATE considersboththe structured data and the embeddings when computing partition summaries and detecting drift. Check out theembeddings pagefor a walkthrough of how to use GATE with embeddings.InstallationGATE is available on PyPI and can be installed with pip:pipinstallgate-driftNote that GATE requires Python 3.8 or higher.UsageGATE is designed to be used withPandasdataframes. Check out thedocumentationfor a walkthrough of how to use GATE.Research ContributionsGATE was developed and is maintained by researchers at the UC BerkeleyEPIC Lab.An initial version of GATE was developed as part of a collaboration with Meta, and the research paper, "Moving Fast With Broken Data" by Shankar et al., is available onarXiv. This module slightly differs from the original implementation, but the core ideas around partition summaries and anomaly detection are the same.
Package: gateloop
GateLoopImplementation ofarxiv.org/abs/2311.01927in JAX based onlucidrains/gateloop-transformer.Installationpip install gateloopUsagefromgateloopimportGateLoopTransformerkey=jax.random.PRNGKey(0)model=GateLoopTransformer(num_tokens=1000,dim=512,depth=12)params=model.init(key,jnp.ones((1,10),jnp.int32))ids=jax.random.randint(key,(1,10),0,1000)logits=model.apply(params,ids)
Package: gatenlp-ml-tner
python-gatenlp-ml-tnerToken classification training and application using transformers via the tner package.See:https://github.com/asahi417/tner/https://pypi.org/project/tner/Installation:For now this package does NOT require the packages
it depends on in order to avoid dependency hell. See below
for how to install the required packages.create a new environment
(e.g.conda create -y -n gatenlp-tner python=3.7)
and activate itinstall the PyTorch version compatible with your machine
seePyTorch Installationinstall tner:latest release:python -m pip install -U tneror latest code from githubpython -m pip install -U git+https://github.com/asahi417/tner.gitinstall gatenlp, e.g.:python -m pip install -U gatenlp[all]
Package: gatepoint
An API Client for Discord Interactions written in Python.Key FeaturesModern Python API usingFastAPIfor Discord.Optimised to work in serverless environments.API Client over Real-time connection.InstallingPython 3.8 or higher is requiredTo install the library without full voice support, you can just run the following command:# Linux/macOSpython3-mpipinstall-Ugatepoint# Windowspy-3-mpipinstall-UgatepointTo install the development version, do the following:$gitclonehttps://github.com/Senarc-Studios/gatepoint$cdgatepoint$python3-mpipinstall-U.Quick ExampleimportgatepointInteractionAPI=gatepoint.GatewayClient(api_version=11,secret_key="SECRET",public_key="PUBLIC",token="TOKEN")@InteractionAPI.command(name="ping",description="Pong!")asyncdefping(interaction):awaitinteraction.reply('pong!')InteractionAPI.run()You can find more examples in the examples directory.LinksDocumentationOfficial Discord ServerDiscord API
Package: gatepy
gatepygatepyis a Python implementation of a logical gate.InstallationOpen console and run the following command:pip install gatepyDone.ExamplesAdderimportgatepydefadder(a,b):c=Falsea=list(format(a,"064b"))[::-1]b=list(format(b,"064b"))[::-1]out=[]foriinrange(64):S=int(gatepy.XOR(gatepy.XOR(int(a[i]),int(b[i])),c))c=gatepy.OR(gatepy.AND(gatepy.XOR(int(a[i]),int(b[i])),c),gatepy.AND(int(a[i]),int(b[i])),)out.append(str(S))returnint("".join(out[::-1]),2)print(adder(1,2))Return:3