Saravanan666/pypi-org huggingface dataset:
Package: google-apputils
Google Application Utilities for Python=======================================This project is a small collection of utilities for building Pythonapplications.  It includes some of the same set of utilities used to build andrun internal Python apps at Google.Features:* Simple application startup integrated with python-gflags.* Subcommands for command-line applications.* Option to drop into pdb on uncaught exceptions.* Helper functions for dealing with files.* High-level profiling tools.* Timezone-aware wrappers for datetime.datetime classes.* Improved TestCase with the same methods as unittest2, plus helpful flags fortest startup.* google_test setuptools command for running tests.* Helper module for creating application stubs.Installation============To install the package, simply run:python setup.py installGoogle-Style Tests==================Google-style tests (those run with basetest.main()) differ from setuptools-styletests in that test modules are designed to be run as __main__. Setting up yourproject to use Google-style tests is easy:1. Create one or more test modules named '*_test.py' in a directory. Each testmodule should have a main block that runs basetest.main():# In tests/my_test.pyfrom google.apputils import basetestclass MyTest(basetest.TestCase):def testSomething(self):self.assertTrue('my test')if __name__ == '__main__':basetest.main()2. Add a setup requirement on google-apputils and set the test_dir option:# In setup.pysetup(...setup_requires = ['google-apputils>=0.2'],test_dir = 'tests',)3. Run your tests:python setup.py google_testGoogle-Style Stub Scripts=========================Google-style binaries (run with app.run()) are intended to be executed directlyat the top level, so you should not use a setuptools console_script entry pointto point at your main(). You can use distutils-style scripts if you want.Another alternative is to use google.apputils.run_script_module, which is ahandy wrapper to execute a module directly as if it were a script:1. Create a module like 'stubs.py' in your project:# In my/stubs.pyfrom google.apputils import run_script_moduledef RunMyScript():import my.scriptrun_script_module.RunScriptModule(my.script)def RunMyOtherScript():import my.other_scriptrun_script_module.RunScriptModule(my.other_script)2. Set up entry points in setup.py that point to the functions in your stubsmodule:# In setup.pysetup(...entry_points = {'console_scripts': ['my_script = my.stubs:RunMyScript','my_other_script = my.stubs.RunMyOtherScript',],},)There are also useful flags you can pass to your scripts to help you debug yourbinaries; run your binary with --helpstub to see the full list.
Package: google-area120-tables
Area 120 Tables: provides programmatic methods to the Area 120 Tables API.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 Area 120 Tables.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-area120-tablesWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-area120-tablesNext StepsRead theClient Library Documentationfor Area 120 Tables
to see other available methods on the client.Read theArea 120 Tables 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-assistant-library
WarningThe Google Assistant Library for Python isdeprecated.This package contains high levelPythonbindings for theGoogle Assistant Library.It is part of theGoogle Assistant SDK for devices.It includes the following features:“Ok Google” or “Hey Google” hotword detectionAudio recordingAssistant response playbackTimer and alarm featuresVolume ducking and controlConversation state managementPlayback of podcasts and newsBroadcast voice messagesSeeIntroduction to the Google Assistant Libraryfor a step by step guide on how to get started with the library on Raspberry Pi 3.Supported configurationPython>= 2.7Architecture:linux-arm7landlinux-x86_64InstallingYou can install usingpip.:pip install --upgrade google-assistant-libraryAuthorizationFollow the steps toconfigure the Actions Console project and the Google account.Follow the steps toregister a new device model and download the client secrets file.Generate credentials usinggoogle-oauth-tool.:pip install --upgrade google-auth-oauthlib[tool]
google-oauthlib-tool --client-secrets path/to/client_secret_XXXXX.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --scope https://www.googleapis.com/auth/gcm --save --headlessUsageRun the demo:google-assistant-demoSay “Ok Google” or “Hey Google” followed by a voice query. The demo should
play back the Assistant’s response and log events to the screen.Register the device and run the demo with device actions:google-assistant-demo --project-id PROJECT_ID --device-model-id DEVICE_MODELReferenceReference samplefor the Google Assistant Library for PythonGoogle Assistant LibraryreferenceLicenseSeeLICENSEandLICENSE.third_party.
Package: googleassistant-respeakerd
Adapt google assistant's gRPC sample app for working with respeakerdHome-page: https://github.com/respeaker/googleassistant_respeakerdAuthor: Jack ShaoAuthor-email: jacky.shaoxg@gmail.comLicense: Apache Software License 2.0Description:Adapt google assistant's gRPC sample app for working with respeakerdKeywords: google assistant,respeakerPlatform: UNKNOWNClassifier: Development Status :: 2 - Pre-AlphaClassifier: Intended Audience :: DevelopersClassifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)Classifier: Natural Language :: EnglishClassifier: Programming Language :: Python :: 2Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5
Package: google-auth
This library simplifies using Google’s various server-to-server authentication
mechanisms to access Google APIs.InstallingYou can install usingpip:$ pip install google-authFor more information on setting up your Python development environment, please refer toPython Development Environment Setup Guidefor Google Cloud Platform.Extrasgoogle-auth has few extras that you can install. For example:$ pip install google-auth[pyopenssl]Note that the extras pyopenssl and enterprise_cert should not be used together because they use conflicting versions ofcryptography.Supported Python VersionsPython >= 3.7NOTE:
Python 3.7 was marked asunsupportedby the python community in June 2023.
We recommend that all developers upgrade to Python 3.8 and newer as soon as
they can. Support for Python 3.7 will be removed from this library after
January 1 2024. Previous releases that support Python 3.7 will continue to be available
for download, but releases after January 1 2024 will only target Python 3.8 and
newer.Unsupported Python VersionsPython == 2.7:  The last version of this library with support for Python 2.7
wasgoogle.auth == 1.34.0.Python 3.5:   The last version of this library with support for Python 3.5
wasgoogle.auth == 1.23.0.Python 3.6:   The last version of this library with support for Python 3.6
wasgoogle.auth == 2.22.0.DocumentationGoogle Auth Python Library has usage and reference documentation athttps://googleapis.dev/python/google-auth/latest/index.html.Current Maintainersgoogleapis-auth@google.comAuthors@theacodes(Thea Flowers)@dhermes(Danny Hermes)@lukesneeringer(Luke Sneeringer)@busunkim96(Bu Sun Kim)ContributingContributions to this library are always welcome and highly encouraged.SeeCONTRIBUTING.rstfor more information on how to get started.LicenseApache 2.0 - Seethe LICENSEfor more information.
Package: google-auth-httplib2
This library provides anhttplib2transport forgoogle-auth.Notehttplibhas lots of problems such as lack of threadsafety
and insecure usage of TLS. Using it is highly discouraged. This
library is intended to help existing users ofoauth2clientmigrate togoogle-auth.InstallingYou can install usingpip:$ pip install google-auth-httplib2LicenseApache 2.0 - Seethe LICENSEfor more information.
Package: google-auth-oauthlib
This library providesoauthlibintegration withgoogle-auth.InstallingYou can install usingpip:$ pip install google-auth-oauthlibDocumentationThe latest documentation is available atgoogle-auth-oauthlib.googleapis.dev.Supported Python VersionsPython >= 3.6Unsupported Python VersionsPython == 2.7, Python == 3.5.The last version of this library compatible with Python 2.7 and 3.5 isgoogle-auth-oauthlib==0.4.1.LicenseApache 2.0 - Seethe LICENSEfor more information.
Package: google-auth-plugins
Google Auth Plugins Python LibraryThis library (built on top ofGoogle's official SDK) aims to provide features not implemented by the standard library for whatever reason.Common reason is that the latter is not a priority in the SDK's roadmap.⚠️This project doesn't want or plan to replace the official SDK but rather to be a space for experimentation providing beta features (because security does have to wait).I hope that the features available in this repo will be integrated in the official library for the common good.IndexMain difference with google-authInstallationUsageDomain-wide delegation credentialsTestsMain difference with google-authFor security reasons, this project willalwaysdrop support for a python version as soon as security support ends.As an example, the version2.16.1ofgoogle-authlaunched on2023-02-17still supports python3.6^1.Installationgoogle-auth-pluginsrequires Python 3.7 or newer, and can be installed directly viapip:python3 -m venv venv && source venv/bin/activatepython -m pip install google-auth-pluginsUsageDomain-wide delegation credentialsA bit of contextAs stated in thisissuecurrently it's not possible to produce a delegated credentials via an impersonated identity.To put it another way,today the only way to obtain those credentials is with a service account key 🤯.Given the importance of this kind of service accounts it seems relevant to limit as much as possible long-term credentials in order to protect against leaks.Domain-wide delegation credentialsallows that.Please find below an example:importgoogle.authfromgoogle_auth_pluginsimportdwd_credentialstarget_scopes=['https://www.googleapis.com/auth/calendar.readonly']subject="john.doe@pamplemousse.com"# The impersonated service account must grant `Service Account Token Creator` to the identity represented by source_credentialssource_credentials,_=google.auth.default()delegated_credentials=dwd_credentials.Credentials(subject=subject,source_credentials=source_credentials,target_principal='dwd-impersonated-account@_project_.iam.gserviceaccount.com',target_scopes=target_scopes,)Alternatively, ifsource_credentialsis the service account with domain-wide delegation, you can skiptarget_principaldefinition.source_credentials,_=google.auth.default()delegated_credentials=dwd_credentials.Credentials(subject=subject,source_credentials=source_credentials,target_scopes=target_scopes,)Finally, you can switch delegated credentials as defined below:alice_delegated_creds=dwd_credentials.Credentials(subject="alice@example.com",source_credentials=source_credentials,target_scopes=target_scopes,)bob_delegated_creds=alice_delegated_creds.with_subject("bob@example.com")Note: this module is heavily inspired byJohannes Passingblog post 🚀.Testsmaketest
Package: googlebardpy
Google BardInstallationPypipipinstallgooglebardpyCodebergpipinstall--index-urlhttps://codeberg.org/api/packages/Bavarder/pypi/simple/googlebardpyUsageGet the tokenGo tobard.google.comOpen developer toolsGo to ApplicationGo to CookiesCopy the content of__Secure-1PSIDUse the chatbotsecure_1psid="..."chat=BardChat(secure_1psid)chat.ask("Hello, who are you ?")
Package: google-books-api-wrapper
Google Books API Wrapper for PythonThis package wraps theGoogle Books APIin an easy to use Python interface. Use it to find comprehensive data on all books that peak your interest.Begin by installing the package:pipinstallgoogle-books-api-wrapperthen import the required configuration object,fromgoogle_books_api_wrapper.apiimportGoogleBooksAPIYou can now use this object tosearchandretreivebooks,>>>client=GoogleBooksAPI()>>>client.get_book_by_title("IT")Book(title=It,authors=['Stephen King'])>>>client.get_book_by_isbn13("9780670813025")Book(title=It,authors=['Stephen King'])>>>client.get_book_by_isbn10("0670813028")Book(title=It,authors=['Stephen King'])>>>simon_schuster_books=client.get_books_by_publisher("Simon & Schuster")>>>simon_schuster_books.get_all_results()[:3][Book(title=Simon&Schuster's Guide to Dogs, authors=['GinoPugnetti']), Book(title=Frankenstein, authors=['MaryShelley']), Book(title=Why We Buy, authors=['PacoUnderhill'])]>>>fiction_books=client.get_books_by_subject("Fiction")>>>fiction_books.get_all_results()[:3][Book(title=LordoftheFlies,authors=['William Golding']),Book(title=AmishSnowWhite,authors=['Rachel Stoltzfus']),Book(title=TheOdysseyofHomer,authors=['Richmond Lattimore'])]>>>stephen_king_books=client.get_books_by_author("Stephen King")>>>stephen_king_books.total_results#Read Below about book return limit40>>>stephen_king_books.get_all_results()[:3][Book(title=It,authors=['Stephen King']),Book(title=1922,authors=['Stephen King']),Book(title=Elevation,authors=['Stephen King'])]
Package: google-bucket-fetcher
google_bucket_fetcherA Python package to access bucjet data from Google Cloud StorageFree software: MIT licenseDocumentation:https://google-bucket-fetcher.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.3 (2022-11-23)0.1.2 (2022-11-19)0.1.0 (2022-11-19)First release on PyPI.
Package: google-businesscommunications
Google's Business Communications: Python ClientBusiness Communicationsis an API for creating, managing, and launching agents for Google's Verified SMS and Business Messages platforms.DocumentationThe documentation for the Business Commmunications API can be foundhere.Supported Python VersionsPython 3.5, 3.6 and 3.7, and 3.8 are fully supported and tested.QuickstartBefore you beginRegister with Business Messages.Once registered, follow the instructions toenable the APIs for your project.InstallationInstall this library in avirtualenvusing pip. virtualenv is a tool to
create isolated Python environments. The basic problem it addresses is one of
dependencies and versions, and indirectly permissions.With virtualenv, it's possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Mac/Linuxpip install virtualenv
python -m venv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip installWindowspip install virtualenv
python -m venv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe installUsing the client libraryfromoauth2client.service_accountimportServiceAccountCredentialsfrombusinesscommunications.businesscommunications_v1_clientimportBusinesscommunicationsV1frombusinesscommunications.businesscommunications_v1_messagesimport(Brand)SCOPES=['https://www.googleapis.com/auth/businesscommunications']# Initialize the API authentication credentialscredentials=ServiceAccountCredentials.from_json_keyfile_name('your-service-account-key-file-location',scopes=SCOPES)# Create the clientclient=BusinesscommunicationsV1(credentials=credentials)# Create the service for brandsbrands_service=BusinesscommunicationsV1.BrandsService(client)# Create a new brand with the name "Test Brand"brand=brands_service.Create(Brand(displayName='Test Brand'))# Print created brand objectprint(brand)SamplesSeecode examplesto see example
usage for most API features. The samples'README.mdhas instructions for running the samples.SampleSource CodeBrand CRUD Operationssource codeAgent CRUD Operationssource codeLocation CRUD Operationssource codeContributingContributions welcome! See theContributing Guide.LicenseApache Version 2.0SeeLICENSE
Package: google-calendar-analytics
Google Calendar AnalyticsDocumentationSource codeThis Python program allows you to perform analytics on your Google Calendar events. With this program, you can visualize
the total duration of your events, compare the length of events across different time periods, and gain insights into
which events take up the most time.FeaturesAsync support for faster data retrieval and chart generationExtract events from your Google CalendarCompute the total duration of events in a specified time rangeVisualize the duration of events in a pie chart, bar chart, line chart and moreLimit the number of events displayed in the chartsWide chart customization. For example, dark mode and transparent backgroundQuick StartTo use the Google Calendar Analytics program, first install the dependencies by running the following command:pipinstallgoogle-calendar-analyticsYou can then import the AnalyzerFacade class and use it to analyze your data:How to get credentials from Google?Google documentationimportasynciofromdatetimeimportdatetimefromgoogle.oauth2.credentialsimportCredentialsfromgoogle_calendar_analyticsimportAnalyzerFacade# (You can get it from Google OAuth2 in you web app or from link above)creds={"token":"ya29.a0AVvZVsoH4qZcrGK25VwsXspJv-r9K-","refresh_token":"1//0hwlhrtalKgeRCgYIARAAGBESNwF-","token_uri":"https://oauth2.googleapis.com/token","client_id":"395np.apps.googleusercontent.com","client_secret":"GOCSPXFqoucE03VRVz","scopes":["https://www.googleapis.com/auth/calendar"],"expiry":"2023-02-18T15:30:15.674219Z"}creds=Credentials.from_authorized_user_info(creds)Once you have created the credentials, you can create an instance of the AnalyzerFacade class and use it to analyze your data:# Choose time range for analysisstart_time=datetime(2023,3,1)end_time=datetime(2023,3,18)asyncdefmain():asyncwithAnalyzerFacade(creds=creds)asanalyzer:plot=awaitanalyzer.analyze_one(start_time,end_time,event_name="Programming",plot_type="Line")plot.show()if__name__=="__main__":asyncio.run(main())What's about multiple plots?asyncdefmain():asyncwithAnalyzerFacade(creds=creds)asanalyzer:coroutines=[]coroutines.append(analyzer.analyze_one(start_time,end_time,event_name="Programming",plot_type="Line")coroutines.append(analyzer.analyze_one(start_time,end_time,event_name="Reading",plot_type="Line"))coroutines.append(analyzer.analyze_many(start_time,end_time,plot_type="Pie"))coroutines.append(analyzer.analyze_many(start_time,end_time,plot_type="Bar"))result=awaitasyncio.gather(*coroutines)forplotinresult:plot.show()ContributionIf you would like to contribute to this project, please feel free to submit a pull request. Some areas where
contributions are particularly welcome include:Adding new featuresImproving existing featuresDebugging and fixing bugsAdding tests to ensure the program is working as expectedAnalytics example:Pie plotBar plotLine plotMulty line plot
Package: google-calendar-api-client-python
===============python-google-calendar-api===============.. image:: https://travis-ci.org/kacchan822/python-google-calendar-api.svg?branch=master:target: https://travis-ci.org/kacchan822/python-google-calendar-api:alt: Travis CI.. image:: https://coveralls.io/repos/github/kacchan822/python-google-calendar-api/badge.svg?branch=master:target: https://coveralls.io/github/kacchan822/python-google-calendar-api?branch=master:alt: COVERALLS.. image:: https://codeclimate.com/github/kacchan822/python-google-calendar-api/badges/gpa.svg:target: https://codeclimate.com/github/kacchan822/python-google-calendar-api:alt: Code Climate.. image:: https://codeclimate.com/github/kacchan822/python-google-calendar-api/badges/issue_count.svg:target: https://codeclimate.com/github/kacchan822/python-google-calendar-api:alt: Issue Count.. image:: https://img.shields.io/badge/license-MIT-blue.svg:target: https://raw.githubusercontent.com/kacchan822/python-google-calendar-api/master/LICENSE:alt: LICENSE MIT**python-google-calendar-api** is Google Calendar api client for python3.Requirement============* Python >= 3.5Quick start============1. Install by pip ::# install from github master branchpip install -U https://github.com/kacchan822/python-google-calendar-api/archive/master.tar.gz2. Usage ::import datetimefrom google_calendar_api.client import GoogleCalendarClientCALENDAR_ID = 'XXXXXXXXXXXXXXXXX@group.calendar.google.com'client = GoogleCalendarClient(calendar_id=CALENDAR_ID, client_secrete_file='/path/to/client_secret.json')events = client.get_events()for event in events:start = event['start'].get('dateTime', event['start'].get('date'))print(start, event['summary'])Acknowledgements=================
Package: google-calendar-interface
An easy interface for Google CalendarInstallpip install google_calendar_interfaceThis project is a work in progress. Please excuse any unprofessionalismExample Usagefrom gs_oauth_tools import AuthManager
import datetime
import time
import webbrowser

MY_ID = '4105'

authManager = AuthManager(googleJSONpath=r'C:\Users\gmiller\PycharmProjects\gs_oauth\google_test_creds.json')
user = authManager.GetUserByID(MY_ID)

if not user:
    d = authManager.CreateNewUser(MY_ID, 'Google')
    webbrowser.open(d.get('verification_uri'))
    print('d=', d)

    while not user:
        user = authManager.GetUserByID(MY_ID)
        time.sleep(1)

    print('user=', user)

google = GoogleCalendar(
    calendarName='Grants Test New Calendar',
    getAccessTokenCallback=user.GetAccessToken,
    debug=True,
)

google.NewCalendarItem = lambda _, event: print('NewCalendarItem', event)
google.CalendarItemChanged = lambda _, event: print('CalendarItemChanged', event)
google.CalendarItemDeleted = lambda _, event: print('CalendarItemDeleted', event)

google.UpdateCalendar()

if len(google.GetNowCalItems()) == 0:
    google.CreateCalendarEvent(
        subject=time.asctime(),
        body='body',
        startDT=datetime.datetime.now(),
        endDT=datetime.datetime.now() + datetime.timedelta(minutes=5),
    )

while True:
    google.UpdateCalendar()
    time.sleep(10)
Package: googlechatbot
Google ChatA small package to simplify the creation of Google Chat BotsExamplesText MessagesTo send a simple text message to a Google Chat webhookfromgooglechatbotimportGoogleChatBotwebhook_url="https://chat.googleapis.com/v1/..."bot=GoogleChatBot(webhook_url)bot.send_text_message("test message")CardsTo simplify card creation there is a builderfromgooglechatbotimportCardBuilder,GoogleChatBotwebhook_url="https://chat.googleapis.com/v1/..."bot=GoogleChatBot(webhook_url)builder=CardBuilder()builder.add_header("Title","Subtitle","https://example.com/images/image.png")builder.create_section("My section")builder.add_keyvalue_widget("Key","Value","STAR")card=builder.build()resp=bot.send_card_message(card)