Saravanan666/pypi-org huggingface dataset:
Package: google-chat-handler
Google Chat HandlerPython logging handler to push the logs to google chat root using the webhook
url. Just create a room or use existing room and create a webhook url of a bot
and pass the URL to this GoogleChatHandler library.Installation Instruction!Activate your Virtual Environment.pip install google_chat_handlerFeaturesGoogle chat handler library give us the GoogleChatHandler class that we have to use
and attach the handler to any logger of class logging. It is also compatible with flask and django logger.UsageImport Google Chat Handlerfrom google_chat_handler import GoogleChatHandlerInitialize the chat handlerhandler = GoogleChatHandler('https://chat.googleapis.com/v1/spaces/xxxxxxx')Set the level of the handlerlet say if we want to push only error logs to google chat as a alerthandler.setLevel(logging.ERROR)Add the handler to the existing loggerlogger.addHandler(handler)Now use the google chat handlerlogger.error("This message will appear in google chat")Exampleimportloggingfromgoogle_chat_handlerimportGoogleChatHandler# logger of your project# Get default loggerlogger=logging.getLogger()# set default level of the loggerlogger.setLevel(logging.DEBUG)# Create google_chat_handler for google chat google_chat_handlerhandler=GoogleChatHandler(webhook_url="https://chat.googleapis.com/v1/spaces/XXXXXXXXX")# Set level of the Google chat google_chat_handler for which loglevel we have to send logs to googlehandler.setLevel(logging.ERROR)# Add the google_chat_handler to the loggerlogger.addHandler(handler)logger.info("normal logger info")logger.debug("normal logger debug")# Only below log will be pushed to google chatlogger.error("google chat logger error")
Package: google-civic-information-api
google-civic-information-api-pygoogle-civic-information-api-py is a Python wrapper forGoogle's Civic Information API.InstallationInstalling with Pip from Pypipipinstallgoogle-civic-information-apiInstalling with Pip Locallygitclonehttps://github.com/k0pak4/google-civic-information-api-py.gitcdgoogle-civic-information-api-py
pipinstall.UsageThe google-civic-information-api has three modules: divisions, elections, and representatives. Each module has a few functions, examples of each are provided below.divisionsimportosfromgoogle_civic_information_apiimportdivisionscivic_api_key=os.environ["TEST_CIVIC_INFO_API_KEY"]# Search Divisions by Addresssearch_results=divisions.search(civic_api_key,"District of Columbia")print(search_results.json())electionsimportosfromgoogle_civic_information_apiimportelectionscivic_api_key=os.environ["TEST_CIVIC_INFO_API_KEY"]# Search all Electionselections_results=elections.elections(civic_api_key)print(elections_results.json())representativesimportosfromgoogle_civic_information_apiimportcivic_api_key=os.environ["TEST_CIVIC_INFO_API_KEY"]# Retrieve all country level representatives from D.C. by searching by Addressdc_results=representatives.representative_info_by_address(civic_api_key,"20001",recursive=True,levels="country")print(dc_results.json())# Retrieve all country level representatives from D.C. by searching by OCD Divisiondc_results=representatives.representative_info_by_division(civic_api_key,"ocd-division/country:us/district:dc",recursive=True,levels="country")print(dc_results.json())ContributingRefer to theContributing Guidefor details on opening issues, pull requests, and development considerations.SecurityRefer to theSecurity Policyfor details on supported versions, reporting vulnerabilities, and security considerations.LicenseBSD 3-Clause License
Package: google-closure-compiler-api
This image allows you to Compile your JS code usingGoogle Closure Compiler APIin CLIInstallpip3 install google_closure_compiler_apiUsageusage: compiler.py [-h] [--js JS] [--js_output_file JS_OUTPUT_FILE] [--compilation_level {WHITESPACE_ONLY,SIMPLE_OPTIMIZATIONS,ADVANCED_OPTIMIZATIONS}]

optional arguments:
  -h, --help            show this help message and exit
  --js JS               Input file
  --js_output_file JS_OUTPUT_FILE
                        Output file
  --compilation_level {WHITESPACE_ONLY,SIMPLE_OPTIMIZATIONS,ADVANCED_OPTIMIZATIONS}
                        Compilation levelDefault values–js: /dev/stdin (input your code)–js_output_file: /dev/stdout (Prints compiled code in the shell)–compilation_level: WHITESPACE_ONLYDocker usagedocker run --rm -ti -v /path/to/my/file.js:/root/myfile.js femtopixel/google-closure-compiler --js /root/myfile.js
Package: google_closure_fabric
# Installationpip install google_closure_fabricor for latest dev version:pip install https://github.com/batsuev/google-closure-fabric/archive/develop.zip# BoilerplateYou can create new project using gclosureboilerplate script. Sample:mkdir my-projectcd my-projectgclosureboilerplate .fab bootstrapfab buildfab serveOpen http://localhost:8000/ and enjoy. Or http://localhost:8000/index.min.html for compiled version.All changes in sources will rebuild automatically.# Boilerplate project structure* my-project/* src/* js/* css/* templates/* dist/* pages/* libs-google/* fabfile.py`src/js` - folder with javascript source code.`src/css` - css sources.`src/templates` - soy templates.`dist` - compiled output.`pages` - html files.`libs-google` - folder for all google libs.`fabfile.py` - fabric file with all required tasks.# Google Closure libraries and toolsRunning `fab bootstrap` in project folder will install all libraries to `libs-google` folder.plovr installation is disabled in this example.That will be installed:* Google Closure Stylesheets (http://code.google.com/p/closure-stylesheets/)* Google Closure Templates (https://developers.google.com/closure/templates/)* Google Closure Compiler (https://developers.google.com/closure/compiler/)* Google Closure Library (https://developers.google.com/closure/library/)* Plovr (http://plovr.com)# fabfile.pyimport google_closure_fabric, osPROJECT_PATH = os.path.dirname(__file__)SRC = 'src/js'def __get_css_builder():css = google_closure_fabric.StylesheetsBuilder(PROJECT_PATH)css.add_stylesheet('src/css/app.css')css.set_output_file('dist/css/app.min.css')return cssdef __get_deps_builder():deps = google_closure_fabric.DepsBuilder(PROJECT_PATH)deps.set_source(SRC)return depsdef __get_templates_builder():soy = google_closure_fabric.TemplatesBuilder(PROJECT_PATH)soy.add_template('src/templates/app.soy')soy.set_output_path_format('src/js/templates/app.soy.js')return soydef __get_js_builder():js_builder = google_closure_fabric.JSBuilder(PROJECT_PATH)js_builder.set_output_file('dist/js/app.min.js')js_builder.set_sources_folder('src/js')js_builder.set_main_file('app.js')return js_builderdef __get_linter():linter = google_closure_fabric.Linter(PROJECT_PATH, strict=True, ignore_80_symbols=True)linter.add_sources('src/js')linter.add_exclude('src/js/templates/app.soy.js')linter.add_exclude('src/js/soy.js')linter.add_exclude('src/js/deps.js')return linterdef bootstrap():google_closure_fabric.bootstrap(PROJECT_PATH,dir_name='libs-google',plovr=False)def serve():deps = __get_deps_builder()deps.set_custom_path_prefix('../'+SRC)google_closure_fabric.serve(PROJECT_PATH,html_folder='pages',deps_builder=deps,stylesheets_builder=__get_css_builder(),templates_builder=__get_templates_builder(),js_builder=__get_js_builder())def autofix():__get_linter().autofix()def build():deps = __get_deps_builder()deps.set_custom_path_prefix(SRC)deps.set_output_file('src/js/deps.js')deps.build()__get_linter().lint()__get_css_builder().build()__get_templates_builder().build()__get_js_builder().build()
Package: google-cloud
Python idiomatic client forGoogle Cloud Platformservices.WARNING: The google-cloud Python package is deprecated. On June 18, 2018,
this package will no longer install any other packages. Please install theproduct-specific google-cloud-* packagesneeded for your application.HomepageAPI DocumentationRead The Docs DocumentationLicenseApache 2.0 - Seethe LICENSEfor more information.
Package: google-cloud-access-approval
Access Approval: enables controlling access to your organization’s data by Google personnel.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Access Approval.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-access-approvalWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-access-approvalNext StepsRead theClient Library Documentationfor Access Approval
to see other available methods on the client.Read theAccess Approval Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-advisorynotifications
Advisory Notifications: Advisory Notifications provides well-targeted, timely, and compliant communications about critical security and privacy events in the Google Cloud console and allows you to securely investigate the event, take action, and get support.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Advisory Notifications.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-advisorynotificationsWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-advisorynotificationsNext StepsRead theClient Library Documentationfor Advisory Notifications
to see other available methods on the client.Read theAdvisory Notifications Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-alloydb
AlloyDB:Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the AlloyDB.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-alloydbWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-alloydbNext StepsRead theClient Library Documentationfor AlloyDB
to see other available methods on the client.Read theAlloyDB Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-alloydb-connectors
AlloyDB connectors: provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the AlloyDB connectors.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-alloydb-connectorsWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-alloydb-connectorsNext StepsRead theClient Library Documentationfor AlloyDB connectors
to see other available methods on the client.Read theAlloyDB connectors Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-api-gateway
API Gateway: enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the API Gateway.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-api-gatewayWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-api-gatewayNext StepsRead theClient Library Documentationfor API Gateway
to see other available methods on the client.Read theAPI Gateway Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-apigee-connect
Apigee Connect: allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Apigee Connect.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-apigee-connectWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-apigee-connectNext StepsRead theClient Library Documentationfor Apigee Connect
to see other available methods on the client.Read theApigee Connect Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-apigee-registry
Apigee Registry API: allows teams to upload and share machine-readable descriptions of APIs that are in use and in development.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Apigee Registry API.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-apigee-registryWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-apigee-registryNext StepsRead theClient Library Documentationfor Apigee Registry API
to see other available methods on the client.Read theApigee Registry API Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-api-keys
API Keys:Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the API Keys.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-api-keysWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-api-keysNext StepsRead theClient Library Documentationfor API Keys
to see other available methods on the client.Read theAPI Keys Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-appengine-admin
App Engine Admin: allows you to manage your App Engine applications.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the App Engine Admin.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-appengine-adminWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-appengine-adminNext StepsRead theClient Library Documentationfor App Engine Admin
to see other available methods on the client.Read theApp Engine Admin Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.